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
74 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 ...
1
vote
0answers
8 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 ...
3
votes
4answers
160 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 ...
2
votes
2answers
861 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
384 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
32 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
33 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
3answers
68 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
23 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
33 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): ...
2
votes
1answer
368 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 ...
4
votes
2answers
63 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
20 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. ...
2
votes
1answer
79 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
4answers
202 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: ...
1
vote
1answer
22 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
38 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) ...
5
votes
1answer
73 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
70 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
60 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
18 views

508 Loop Detected (WebDAV; RFC 5842) [closed]

How can a 508 Loop Detected (WebDAV; RFC 5842) http error can be solved on a website with a apache webserver installed?
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 ...
4
votes
1answer
24 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
21 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 ...
1
vote
0answers
22 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. ...
6
votes
1answer
3k views

.htaccess rule to redirect from 404 to search results

When a user (or a bot) request on non existing page, I want to redirect him to the search results. I prefere to do it with the .htaccess file using something like: ErrorDocument 404 ...
2
votes
2answers
101 views

How to redirect all that URLs that does not end with “feed” to https?

I want to use Apache's mod_rewrite to redirect all URLs that does not end with /feed to a secure URL (identical, but starting with https), and leave all that ends with /feed unaltered: I want this: ...
3
votes
1answer
29 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
0answers
16 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 ...
2
votes
2answers
61 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 ...
0
votes
1answer
30 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
177 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 ...
1
vote
0answers
16 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 ...
1
vote
0answers
21 views

How to implement wildcard Loadbalancer SSL certificate on Tomcat [closed]

I have a SSL certificate with the extension .crt, this is wildcard certificate and we have web server that runs on Apache tomcat. We have enabled HTTPS by default with the following connector: ...
41
votes
7answers
120k views

What is the best Apache logs Analyzer? [closed]

What real-time log analyzer can you suggest for Apache access and error logs? There is a list of web analytics software on WikiPedia, but it would be great to hear opinions from people with ...
4
votes
1answer
145 views

SSL enforced but receiving some parts of the site are not using SSL warning

I had been trying to enforce SSL for my site but although the SSL certificate is signed properly by networksolutions, each time the pages are loaded it still displays an SSl warning in browser ...
2
votes
1answer
28 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
35 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
9 views

Redirect old domain to new domain masking [duplicate]

HOW To Redirect www.OLDDOMAIN.com to www.NEWDOMAIN.com with masking.
4
votes
1answer
44 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 ...
3
votes
2answers
147 views

Limit access to rewritten uri based on IP address

I'd like to limit access to a Drupal 7 registration page (/user/register) from certain IP addresses. I've tried to set the apache directive, but it's still letting me access it from an IP that isn't ...
1
vote
1answer
118 views

Apache 2.2 Not Identifying Safari with HTTP_USER_AGENT

I have a web server that has to meet PCI compliance requirements. Their latest round of policy changes have removed support for Safari, after having removed support for Windows XP based IE clients. ...
1
vote
2answers
73 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or ...
1
vote
0answers
35 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
2answers
5k views

.htaccess directory to subdomain

I have been trying to make a subdomain from a directory (made by .htaccess) to be used as the main page starting like http://domain.com/sub/2/3/4.html and turning into ...
4
votes
1answer
41 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
2answers
365 views

Virtual host in Apache Zend

I'd like to ask you if you can tell me why I can't get Vhost in Apache to work my Vhostconf is: NameVirtualHost *:80 <VirtualHost _default_:80> ServerAdmin ...
3
votes
1answer
52 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 ...
2
votes
0answers
34 views

Change WAMP root directory for Apache so uses a shared folder from another virtual machine

I have installed Windows on a VMWare workstation and installed WAMP on it. Also I have installed WAMP on the main system. So I have shared c:/wamp/www folder from main system to that Virtual machine. ...