The Apache HTTP Server is an Open Source Web server, which originated from a series of patches to the NCSA HTTPd. Apache is the world's most popular Web server, which is run on 54.90% of all Web servers according to the Netcraft survey conducted July 2010.

learn more… | top users | synonyms (1)

1
vote
1answer
15 views

how to display directory structure in public_html?

I just set up apache and was able to get a site running. I want to use user directories in /home/*/public_html to display some data so a collaborator can download stuff I put on the user directory. I ...
1
vote
1answer
17 views

Redirecting all traffic to a script

I am on Centos 6.5 with Apache2 and Perl 5.23. I need to pass all traffic to the single perl script, check this request in a database, and show needed content (have both static and dynamic content). ...
1
vote
1answer
31 views

.htaccess redirect without changing url in users' address bar

My website redirects to /temp when visiting the root, I'd like it to appear as the root, without the /temp in the URL address bar. I have a simple .htaccess: Options +FollowSymlinks RewriteEngine On ...
3
votes
1answer
23 views

Add an exception to Joomla's .htaccess rewrite rules to allow an Owncloud subdirectory

i'm actually use Joomla in our website and i would like to add Owncloud. The .htaccess in the root let Joomla side works without trouble: RewriteEngine On RewriteCond %{REQUEST_URI} !^/Joomla3 ...
2
votes
1answer
31 views

My users are getting 302 Found page if they don't write https in address bar, how can I prevent this?

I host a forum website in DigitalOcean's cloud servers, using Ubuntu 16.04, Apache 2.4.20, PHP 7.0.8 and MySQL 5.7.12. I tried to troubleshoot with cURL about what is the problem, these are the ...
0
votes
0answers
28 views

Gzip compression not working

I have enabled mod_rewrite, mod_deflate, mod_headers and mod_setenvif in Apache and not mod_gzip, mod_filter. Tried <IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and ...
0
votes
0answers
11 views

debian 8 apache 2.4 SNI

I've installed Apache 2.4 on Debian 8. And I have two virtual hosts. When I load either of the sites then only one loads. I've had SNI configured and working with Apache 2.2 and haven't had any issue ...
1
vote
1answer
22 views

haproxy + Apache + virtual hosts -> wrong host is displayed

On CentOS 7.2.1511 Linux I have installed haproxy-1.5.14-3.el7.x86_64 and httpd-2.4.6-40.el7.centos.1.x86_64 packages. The /etc/haproxy/haproxy.cfg binds HAProxy to ports 80 and 443 and accepts HTTPS ...
0
votes
1answer
18 views

Would changing the expiry header for `analytics.js` from Google Analytics mess things up?

I'm using GTMetrix to help figure ways to speed up my page load times. One of the suggestions is to Leverage Browser Caching, which indicates wanting resources to expire 1 week or longer. One of the ...
0
votes
0answers
16 views

Appserv Windows Instalation Error! Blank Screen

I've been running Appserv for a number of years with little problems, but after installing Windows 10, and a recent automatic update my localhost just shows a blank screen. After trying many "...
1
vote
1answer
18 views

If I hide files in my web servers directory root, can users find them anyway?

More specifically, how can I theoretically find the files that is in a website's root directory? For example: My current imaginary website has 2 folders (labeled rescources and screenies) and 3 ...
3
votes
1answer
33 views

Can I set memory limits on cpanel acounts

I have one account on my vps that is hogging more than it's fair share of memory. How can I limit that account's memory usage? Setting memory_limit in the php.ini? It appears as if this sets the ...
0
votes
1answer
20 views

Specify or omit IP addresses for Apache virtual hosts?

I have a few virtual machines with apache 2.4 installed, and the base setup made by the hosting provider. They specify the IP address in every virtual host configuration: <VirtualHost 123.234.56....
3
votes
2answers
23 views

Configuration-time variables in apache configuration files

I have several virtual host configurations which are stored in files on their own and differ mostly in properties like DocumentRoot, logfile names, ports (for a RewriteRule) and the like. Sometimes ...
4
votes
2answers
417 views

Is it safe to give write permission to _www user account?

I want to use PHP to modify some of my files, but can someone else use this account to modify my files without my acknowledgment?
3
votes
1answer
32 views

Can Apache serve resources recursively if there's a 404 in the current directory?

Is there a possibility to serve resources hosted with Apache recursively across the directory hierarchy, using mod_rewrite or the like? Example#1: A server document css/php/html/... refers to the ...
1
vote
1answer
15 views

Best practice for temp directory used by MediaWiki?

This question appears to be related to File system permission for MediaWiki uploads? Tightening permissions has lead to "Error creating thumbnail" messages: MediaWiki has a page on the temp ...
5
votes
2answers
112 views

File system permission for MediaWiki?

We are an open source project and we have an Apache web server with a MediaWiki 1.25. Its a stand alone installation, so we don't have the complications of shared hosting a varying userids. After 20 ...
2
votes
1answer
27 views

Redirect ALL requests to host IP

I have a honeypot running on AP so if anyone connects and try's to browse it will redirect to the root page. I am using dnsmasq to do this with the following entry log-facility=/var/log/dnsmasq.log ...
0
votes
1answer
36 views

Request for an existing file causes 404 error

A customer cannot access a file that I put online for him, or the folder that it is in. Requests for both the folder (/bastide) and the file (/bastide/coupon%20d'engagement.pdf) return 404 errors. I ...
2
votes
1answer
23 views

Soft 404 problem with nginx frontend to apache2 modperl backend

Using nginx as a frontend to our modperl apache2 servers. We have a soft 404 problem at Google Search Console. The problem is that we have many pages expiring all the time, once they expire we add a ...
0
votes
0answers
37 views

Can't deploy web pages on AMPPS

I have few web pages on my computer (firstpage.html, secondpage.html). So after I have installed ampps, I moved them to htdocs folder, then write localhost/firstpage.html on browser. Browser tells: ...
3
votes
1answer
28 views

How to modify httpd.conf to add one more site in apache 2.4.6

How to modify httpd.conf to add one more site in apache 2.4.6? Here is my httpd.conf ServerRoot "/etc/httpd" Include conf.modules.d/*.conf Listen 80 User apache Group apache ServerAdmin root@...
2
votes
1answer
33 views

phpMyAdmin can't find tmp directory

I have a site hosted with BlueHost. I need to upload a rather large SQL file to the tmp directory so I can run an import. However, phpMyAdmin is giving me the following error: The directory you ...
3
votes
2answers
61 views

Redirecting specific URL from HTTPS to HTTP

Long time lurker, first time caller... I have a backend like admin.mysite.com which is able to use HTTPS (has a certificate installed, etc) - but that admin portal is a CMS backend for a number of ...
3
votes
1answer
29 views

Can html go in the ErrorDocument value internally in httpd.conf?

According to apache documentation, the final parameter of ErrorDocument can be specified as a path, URL or text to any error code. What I have done so far to eliminate any calls to the I/O file ...
3
votes
3answers
115 views

Force Browser to put .pdf or .jpg links in download queue instead of opening it directly

I have an apache server with access to a directory, eg /downloads/pdf/ How can I tell the sever when a user requests http://example.com/downloads/pdf/example.pdf not to open it directly, but ...
3
votes
1answer
41 views

Unknown files appearing in my website 404 error page list without a referring URL

I've been seeing lots of entries in my 404 error page lists in my shared hosting account, which are attempts to hit sub URLs on my 'static' website, such as (usually with no referring URL): /\xef\xbf\...
4
votes
2answers
109 views

ErrorDocument in dynamic SubFolder

I host different Websites in 1 web space. But I don't want to give the ErrorDocument an absolute SubFolder name. Is it possible to make website a variable? ErrorDocument 404 /website/error?error=404 ...
1
vote
1answer
78 views

What regex engine does mod_substitute use?

Any idea what regex engine mod_substitute uses? I'd like to do a little search and replace with it, and I need to escape some characters, so I wanted to see how that particular engine handles that. (...
5
votes
1answer
82 views

Looking for explanation of Apache behavior on manipulating headers

Tried to get an answer at ServerFault - they don't know, all real gurus are sitting here. The background of the issue: Googlebot creates non-existing URLs and tries to crawl them. On some URLs Apache ...
1
vote
1answer
10 views

Understanding the apache Timeout value

I'm trying to understand the timeout value in apache since I want to make my server run very fast. On my local server, I tried using an apache timeout of 5 seconds. I then attempted to execute the ...
1
vote
0answers
20 views

More apache processes = higher TTFB = lower money? why?

I just upgraded my server from 8 GB ram to 16 GB ram. I then adjusted my apache settings to serve more users at a time including mobile. Yes I'm still on prefork mode because I created a module and I'...
0
votes
1answer
32 views

Sporadic problems with some images [closed]

I have a website http://dermadoc.ch with several images that are no more displayed (mostly by IE versions) My server shows no errors but the browser just displays the broken image symbol. The ...
2
votes
0answers
49 views

Apache2 vhost SSL configuration running on Plesk [closed]

I have a problem with configuring ssl in apache 2 vhost configuration running plesk. My Server is running on a virtual machine with plesk 12. And basically I just want to setup ssl for the domain. ...
2
votes
0answers
35 views

Strange HTTP:Accept-Language behavior instead of Browser Language Detect [closed]

My qTranslate-X (v3.4.6.4) WordPress (v4.4.2) plugin can't "Detect the language of the browser and redirect accordingly.", so i needed to do a hack by .htaccess. Following solution found in Drupal's ....
3
votes
1answer
77 views

Is 21 seconds too little for a connection timeout instead of the Apache default of 300 seconds?

I currently have apache timeout incomplete requests after 21 seconds because I don't want bad bots holding up the available connection slots, and I feel people would rather wait 21 seconds for a slot ...
3
votes
1answer
40 views

Getting MAMP Pro Apache to Listen on Multiple TCP Ports

I'm running MAMP Pro (Currently 3.5). I would like to be able to run Apache's standard (non-SSL) TCP on multiple ports (80 and 8080) for testing. It doesn't seem to let me do this. Adding a new TCP ...
2
votes
2answers
90 views

Using one index file in all directories and subdirectories

I have an index.php file, which processes content of a directory it is located in and renders output to the browser. The problem is that the directory structure it is supposed to serve is rather ...
1
vote
0answers
28 views

Using SetEnvIf to not log overly accessed URLs

I'm trying to figure out how to craft my SetEnvIf's in my apache config so that the server hard disk isn't spinning 24/7 over log entries. What I want to do is disable logging for all domains and ...
0
votes
1answer
32 views

How to install SSL certificate (and enable HTTPS) on VPS via command line?

I am having a bit of an issue. I have purchased an SSL certificate from GoDaddy and have it and the private key uploaded on my server. I have followed this guide but nothing is working for me. My ...
3
votes
3answers
197 views

Redirect $.html to $/ mod_rewrite rule clash

I have already remapped URL's from for example /sub/test/ to test.html but I also want to redirect /sub/test.html to /sub/test/ but here seems to be a clash between the rules. .htaccess files is in ...
2
votes
1answer
36 views

Subdomain showing incorrect content when going through HTTPS

I have a domain on my server called example.com and I set up a subdomain called links.example.com. Whenever I go to links.example.com, the domain is pointing to the same directory, even though in the ...
3
votes
2answers
40 views

Is a real http to htttps rewrite possible or is this always going to be a redirect?

I noticed that there are some articles on the Internet that talk about using the apache mod_rewrite module to rewrite a client to server http connection to https. But rewrite does all the changes ...
0
votes
0answers
10 views

Redirect old domain to new domain masking [duplicate]

HOW To Redirect www.OLDDOMAIN.com to www.NEWDOMAIN.com with masking.
4
votes
1answer
160 views

Possible to split virtual host definitions into multiple apache conf files?

I have a single server that I use to host a whole bunch of smallish websites. It's recently come to my attention that a service called LetsEncrypt allows me to get an SSL certificate for free. The ...
1
vote
0answers
91 views

How do I configure Haproxy and Apache when adding SSL?

Currently I am using Haproxy to route my application which has a websocket back end and an Apache back end. I have configured Apache's virtual host to use SSL. Now I'm confused like do I have to ...
4
votes
1answer
57 views

Why am I getting a 301 redirect when I haven't told Apache to give one? Can WordPress push a 301 redirect?

I am setting up a development environment with XAMPP on Windows. Apache version is 2.4.17. My development url is www.hagertyforjudge.dev, also accessible at hagertyforjudge.dev. I am trying to solve ...
1
vote
1answer
48 views

Access Forbidden XAMPP

Ok so I've been having some trouble accessing a subfolder inside a project folder. I have the following structure: -htdocs -Project -admin The problem I'm havin is when I type localhost:...
3
votes
1answer
63 views

Trouble with 301 redirect of old naked domain to new domain

Using .htaccess I am trying to setup a simple 301 redirect which redirects both exampleA.com and www.exampleA.com (the old domain) to exampleB.com (the new domain). However, accessing www.exampleA.com ...