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
2answers
78 views

Granting a developer cPanel access but disabling downloads

I need to hire a dev to do some work on my site, however as it is a very large one and valueable at the same time, i don't want to risk a dev stealing the work and mechanisms behind it. I will need ...
0
votes
0answers
7 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 ...
2
votes
2answers
889 views

How to hide awstats url parameters

currently in order to access statistics on my site I access this link: www.example.com/awstats/awstats.pl?config=awstatsconffile.org all is working fine, but what I want to achieve is simply this: ...
1
vote
1answer
13 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 ...
1
vote
1answer
447 views

htaccess sitemap.xml rewrite to /sitemaps/$_SERVER[“MYVAR”]/sitemap.xml

I am trying to update htaccess to write as following: htaccess sitemap.xml rewrite to /sitemaps/$_SERVER["MYVAR"]/sitemap.xml This rewrite should only occur if sitemap.xml is requested in root (...
1
vote
1answer
24 views

Can a later DocumentRoot directive override an earlier DocumentRoot directive?

Because I use cPanel, the WHM developers are trying to restrict my subdomain creation to any folder within my user account of /home/username. In order to improve processing speed, I created a ram ...
1
vote
1answer
37 views

Speed of prefork+ruid2 with more connections on limited memory

Currently I am using Apache in a server with WHM/Cpanel and I'm currently using Prefork MPM with Mod Ruid2 to process PHP pages. While the setup allows it to run very fast, I'm limited to processing ...
3
votes
1answer
52 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 ...
0
votes
1answer
5 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 ...
3
votes
4answers
4k views

Enable gzip compression on Bluehost?

My website is loading large (~3mb) SVG file with jQuery. It takes quite a while therefore I decided to enable gzip compression. I have a hosting account with Bluehost which supports custom .htaccess ...
0
votes
0answers
10 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
12 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
0answers
19 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 ...
2
votes
1answer
441 views

Apache htaccess - modify query string with mod_rewrite

I've recently changed scripting on my website, and this has resulted in a few 404 errors as some very old queries are no longer being redirected correctly. I've been trying to create a rewrite rule ...
1
vote
1answer
19 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 ...
12
votes
5answers
36k views

How to Change the www root directory on WampServer

How can i change the root directory of the currently installed wampserver to some other directory.
3
votes
2answers
22 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 ...
0
votes
1answer
17 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....
2
votes
2answers
108 views

Parse Python script on Apache virtual host

I have an up and running Apache server working with PHP on a Centos 6 server. Apache was installed using yum -y install httpd mod_ssl. I now wish to add Python. I installed Python as follows: wget ...
1
vote
1answer
32 views

Why does Apache parse .htaccess if accessed through the main page and not through a VirtualHost?

I have two websites. One is hosted on /var/www (www.example.com) and the other is /var/www/test (test.example.com). The second is a VirtualHost. I wrote a .htaccess (I'm using it to mod_rewrite), put ...
2
votes
1answer
47 views

Trying to unload unnecessary modules from apache but don't know which

I have apache 2.2 with whm/cpanel installed on my server. When I look at the loaded modules list, I see: core_module (static) authn_file_module (static) authn_default_module (static) ...
4
votes
2answers
408 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
31 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
25 views

phpMyAdmin can't fint 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 ...
1
vote
0answers
5 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 ...
0
votes
2answers
5k views

Amazon EC2: How do I create a subdomain on an instance?

I have apache2 and tomcat installed on Amazon ec2 instance running Ubuntu. tomcat is serving the application and I want to create subdomains for example.com and abc.example.com to serve to different ...
2
votes
0answers
15 views

File system permission for MediaWiki uploads?

We are an open source project and we have an Apache web server with a MediaWiki. Its a stand alone installation, so we don't have the complications of shared hosting a varying userids. After 20 years ...
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
34 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 ...
0
votes
0answers
32 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
23 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
187 views

mod_proxy(_html) and a buggy Webserver (delivers text/html for JSON data)

We've got a Webserver that answers to AJAX requests by sending JSON Data to the client. Problem is that the JSON Data has the content-type "text/html" instead of "application/json" (it's an Oracle ...
4
votes
4answers
2k views

Using env variables with RewriteRule and ErrorDocument

I'm having problems with the following config on my Apache server to Rewrite some URLs. SetEnv PATH_TO_DIR /directory RewriteRule ^%{PATH_TO_DIR}/([a-zA-Z0-9_\-]+)/([a-zA-Z0-9_\-\.]+)/?$ /index.php?...
1
vote
0answers
37 views

mod_rewrite cause errors in apache error.log

In Opencart I have enabled SEO URLS, which is working fine, unless that I see errors in apache log: [Thu Apr 16 22:53:38 2015] [error] [client xy] File does not exist: /home/html/xy.eu/public_html/...
4
votes
3answers
2k views

htaccess redirect non-www to www with SSL/HTTPS

I want a rewrite rule that redirects everything to https:// AND www. For example https://example.com should be going to https://www.example.com This is what I have: RewriteEngine On RewriteCond %{...
3
votes
4answers
254 views

How to change document root of main domain in cPanel shared host?

I am in a shared host that I have basic cli access. Inside public_html/ I host several addon domains, each in its own dir. Is it possible to make my main domain's document root inside another folder ...
3
votes
3answers
92 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
28 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
1answer
38 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
97 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
57 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. (...
1
vote
4answers
203 views

Redirect everything from old domain to new domain

I need to (permanent) redirect all of the following: www.domain.com www.domain.com/folder sub.domain.com sub.domain.com/folder Basically all URLS that are reachable without being intended to: www....
5
votes
1answer
81 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 ...
3
votes
1answer
92 views

After rewriting URL page not found

I want to rewrite my current URL that is http://localhost/sitename/landing-page/?from=Algeria&to=Afghanistan&submit=Submit to http://localhost/sitename/removals-from-Algeria-to-Afghanistan ...
3
votes
1answer
74 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 ...
0
votes
0answers
7 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'...
6
votes
5answers
1k views

Tool for clickstream anlyzing of Apache logs?

Are there any good tools to analyze the clickstream of individual users in Apache web server logs? For example, I'd like to be able to click on a visitors IP address and see all pages the user ...
4
votes
1answer
27 views

Mulitcore or Clock Speed

For programs like Apache, do they work better with more threads, or due to their asynchronous handling of requests make it so they handle better with a higher clock speed?
0
votes
1answer
26 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 ...