Historically this is the main apache configuration file. In recent installations, the main file can also be called apache2.conf

learn more… | top users | synonyms

0
votes
1answer
1k views

Installing distcache on CentOS 6.3

I'm trying to re-build our server based on CentOS 6.3 and i can't seem to find the distcache rpm. I have it on my 5.8 CentOS: [root@server]# yum list distcache Loaded plugins: fastestmirror, ...
3
votes
1answer
71 views

How do you http-auth all sites on a server?

I'm setting up a development server and need to apply these basic rules to all virtual hosts on the server in the /var/www/html directory. AuthType Basic AuthName "Development Area" AuthUserFile ...
0
votes
1answer
210 views

Apache is serving from the first virtualhost for all subdomains and main domain

Objective: To have multiple sub-domains working successfully with a wildcard SSL certificate. The sub domains do not have separate dedicated cpanel account, and hence share the same dedicated IP ...
4
votes
1answer
439 views

Apache HTTPd : How is possible to display “Too many connections”

I want to limit the number of client allowed on my apache httpd server (mpm_prefork). When the number of client is reached, I want to display a custom error message such as "Error 503 : Too many ...
-2
votes
3answers
446 views

Apache as backend server doesnt kill childs

I have apache as backend server for nginx. Here is my config for prefork MPM which i use: StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 10 ...
1
vote
2answers
173 views

httpd running as _www instead of www as it used to [closed]

OSX Mountain Lion and Apache 2.2.22. I have always had the httpd.conf set as: User www Group www and it was running as such. Until today. Rebooted the server for another reason and when I tried to ...
1
vote
2answers
344 views

Is it possible to add wildcard serveralias to virtualhost without modifying httpd.conf manually? [closed]

Is it possible to add wildcard serveralias (example: *.somesite.com) in an apache server without modifying httpd.conf manually? I use a DNS different from my hosting server and i have added asterisk A ...
-3
votes
2answers
126 views

index.html opens up fine but index.php saying 404 not find page [duplicate]

Possible Duplicate: How to configure php5 on apache2.2? I have bought new apache server 142.4.4.15 It opens up index.html but cannot open index.php I have php, apache and mysql installed on ...
3
votes
1answer
126 views

Apache2 Basic Auth: user@ip, user2@ip2 - Is this possible?

I am looking at running an external service for clients to use here in my office while clients are working remotely at their office. Assumptions: Both my office IP and clients office IP are static. ...
0
votes
3answers
137 views

httpd 2.4 missing directives

I just setup httpd 2.4 on an Amazone AMI and I noticed in the httpd.conf file there are alot of directives missing compared to a 2.2 conf file. For example: ServerTokens, Timeout, Server Signature, ...
1
vote
2answers
3k views

Apache httpd LDAP integration

I am configuring a CollabNet Subversion integration. I have the following collabnet_subversion.conf file: <Location /svn> DAV svn SVNParentPath /mnt/svn/new_repos SVNListParentPath on ...
1
vote
1answer
115 views

Redirecting to port 3000 if accessed by a certain domain in IIS

I'm running IIS on port 80 & Apache on port 3000. How can I have IIS to redirect requests with a certain domain name to the Apache on 3000? For example, requests to "x.com" would eventually lead ...
1
vote
1answer
535 views

Virtual Host forces to download files

I have been struggling with this for more than 5 hours now, and I can't seem to find the fix to my problem. Basically, I set up virtual host on my Fedora Core server (on custom port 55555). Any time I ...
0
votes
1answer
92 views

Loading Module Into Apache - mod_wsgi

Loading Module Into Apache Once the Apache module has been installed into your Apache installation's module directory, it is still necessary to configure Apache to actually load the module. ...
0
votes
1answer
1k views

In Apache config, should it be “UserDir disabled” or “UserDir disable”?

I'm comparing two Apache config files (httpd.conf), one on a CentOS 6.2 VM with Apache 2.2.15 and one on a RedHat 5.8 server with Apache 2.2.3, and I see a strange difference. UserDir disabled ...
0
votes
1answer
560 views

ErrorDocument 404 not found in non-existent subdomain

I am trying to get the apache server to issue a custom 404 error for invalid subdomains. The following is the relevant part of the httpd configuration: Alias /err/ "/var/www/error/" ErrorDocument 404 ...
0
votes
1answer
703 views

ssl_error_bad_cert_domain when accessing site by its ip address on https

i finally got my certificate verified from a trusted CA. now, i have edited my etc/httpd/conf.d/ssl.conf to locate my new certificate. i already included the ssl.conf in my etc/httpd/conf/httpd.conf. ...
0
votes
1answer
108 views

How to test virtual host setting on local or intranet environment?

I have the following httpd configuration to allow subdomains and to redirect www url to non-www url: ServerName example.com:80 NameVirtualHost *:80 <VirtualHost *:80> ServerName example.com ...
1
vote
2answers
664 views

How can I configure apache to send an email on every HTTP error 500

I have some server applications running on apache2; Ruby on Rails, PHP and others. In all cases I would like apache to send me an email whenever apache responds a HTTP error 500 Internal server ...
0
votes
3answers
183 views

Dynamically determine htpasswd file

Is there any way to dynamically determine which htpasswd file to use at runtime? For example, the following (which does not work, just an example) inside a VirtualHost context: RewriteEngine on ...
3
votes
1answer
48 views

Does apache apply directives sequentially?

I am fresh new with apache and I could not easily google the answer. Will same directive found further inside httpd.conf override the former? For example: Timeout 400 Timeout 500 Is resultant ...
0
votes
1answer
346 views

Deny URLs with a parent .. in the path in apache

I was wondering if there was a simple way to make apache httpd deny (403) any URLs which contain a parent .. in the path. So far I have tried (ignoring the flase positives for simplicity) ...
12
votes
2answers
2k views

best way to handle thousands of permanent redirects

We've a list of 3000 301 redirects. We need assistance on What would the best place to put these? It seems putting these 3000 lines inside vhost in httpd.conf would be a mess. What are recommended ...
4
votes
1answer
176 views

Name Based Virtual Hosts in Apache

I'm having a little trouble configuring name based Virtual Hosts. I can start the server with "service apache2 start" with a blank httpd.conf file, and it will run with everything pointing to ...
0
votes
1answer
975 views

Configuring httpd.conf to handle wildcard domains with *multiple* scripts

I have a full-blown site like: http://www.example.com (uses index.php) http://www.example.com/scriptA.php http://www.example.com/scriptB.php I now want to have the possibility of setting up ...
4
votes
1answer
2k views

Apache mod_deflate not compressing javascript and css files?

"GET /Symfony/web/app.php/app/dashboard HTTP/1.1" 4513/37979 (11%) "GET /Symfony/web/css/application.css HTTP/1.1" -/- (-%) "GET /Symfony/web/js/application.js HTTP/1.1" -/- (-%) "GET ...
0
votes
1answer
232 views

How do I enable Clean URLs on Zend Server CE?

I installed Zend Server CE followed by Drupal. I would like to enable clean urls for the local site but I am not able. How do I do that? Also, any changes being made to the httpd.conf file are not ...
3
votes
1answer
334 views

Is it possible to rewrite some query strings to HTTPS and keep everything else on HTTP?

I'm rewriting query strings to pretty URIs, example: index.php?q=/en/contact becomes /en/contact and all works nicely.. # httpd.conf # HANDLE THE QUERY RewriteCond %{REQUEST_FILENAME} !-f ...
1
vote
1answer
3k views

PHP memory_limit local value does not match php.ini value

CentOS system. Summary: changed memory_limit in master and local php.ini and yet no change in the local value for a particular virtual host. Trying to improve performance, I set the memory_limit to ...
0
votes
3answers
10k views

HTTP Error: 413 Request Entity Too Large

What I have: I have an iPhone app that sends HTTP POST requests (XML format) to a web service written in PHP. This is on a hosted virtual private server so I can edit httpd.conf and other ...
34
votes
2answers
31k views

_default_ VirtualHost overlap on port 443, the first has precedence

I have two ruby on rails 3 applications running on same server, (ubuntu 10.04), both with SSL. Here is my apache config file: <VirtualHost *:80> ServerName example1.com DocumentRoot ...
0
votes
1answer
42 views

Apache Detects files as directories

I have a file 'result.txt' in my documentroot, now when I access: http://localhost/result/first It's accessing this instead: http://localhost/result.txt/first What could have I incorrectly ...
0
votes
1answer
682 views

Blocking referring domains via httpd.conf

I'm using the following code to block referrer spam on a site which is receiving a huge volume of spam traffic. I'm told that it is more efficient in terms of server load to use httpd.conf, but I'm ...
2
votes
1answer
459 views

mod_rewrite in .htaccess causes header not to be applied - why?

Excerpt from <VirtualHost *:80> section in httpd.conf (goal: set Cache-Control for all JavaScript files): <LocationMatch "\.js"> Header set Cache-Control "max-age=290304000, public" ...
0
votes
2answers
56 views

Apache 2.2.15: Allow from CN require auth from Internet

How do I configure httpd.conf for directory /something to grant access to everybody from 10.0.0.0/8 withOUT password AND to require everybody else coming from whereever to basic authenticate The ...
0
votes
1answer
2k views

Apache + CentOS 6 + Joomla: You don't have permission to access / on this server

My site was in /usr/local/apache/htdocs. Now i created new account in cpanel and move site to /home/account_name/public_html Group and owner for all files are "account_name" .htaccess and path ...
0
votes
2answers
847 views

Apache httpd.conf Only use SSL for subdomain and give 404 for other https URLs

I have a current configuration for my website mail client: NameVirtualHost *:443 <VirtualHost *:443> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt ...
0
votes
2answers
842 views

Apache without any error page

How to set up apache to serve no error page content? I don't want the default behavior, blank or custom page. I want return no content except headers, that all browsers must display own native error ...
1
vote
1answer
99 views

How to setup Apache so some websites across multiple sub-domains are always using https

I realise there are lots of different variations on this question on serverfault but I haven't had any luck with combining answers to match our situation. We have a CentOS 6.2 web server running ...
0
votes
2answers
894 views

Configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses

I'd like to know how to configure Apache 2 to specify the same error documents for both 403 (Forbidden) and 404 (Page Not Found) responses. I assume there is a directive to add to httpd.conf, but not ...
0
votes
3answers
852 views

How to make subdirectory the document root of a web domain or localhost

I have a subdirectory abc in the document root /var/www/html I want to be able to run any file any_file.html within the subdirectory by typing in the browser: localhost/any_file instead of ...
0
votes
1answer
261 views

Apache Alias - removes POST data?

I have an alias in my httpd.conf where I'm redirecting a single PHP file to another PHP file located in a different dir. Though it appears as thought data POST'd to this file doesn't get carried ...
4
votes
1answer
4k views

how to rewrite '%25' in url

My website software replaces space characters with '+' characters in the URL, A proper link would look like 'http://www.schirmacher.de/display/INFO/How+to+reattach+a+disk+to+XenServer' for example. ...
6
votes
2answers
2k views

httpd.conf variables : What is the difference between ${var} and %{var}?

What is the difference between ${var} and %{var} in httpd.conf? How and when would one use ${} and %{}? http://httpd.apache.org/docs/2.4/configuring.html mentions : The values of variables ...
2
votes
2answers
1k views

500 internal server error php long running process

I am trying to run a long php process and it ends with the 500 internal server error. It executes fine for about 8 mins. I have rebooted the machine after changing the php settings. PHP Config: ...
0
votes
1answer
547 views

Apache on Lion Server with two IP addresses

I'm trying to run Apache and nginx on the same machine, on different IP addresses. It's a Mac Mini with one ethernet card. I configured two eth network devices. I tried to change the apache ...
0
votes
1answer
586 views

virtual host setup: can't access wordpress site without www

I would like to access my site both with and without using the www. Currently it only works with. Leaving out the www just goes to a blank page. Also, wp-admin just loads a blank page too. I have set ...
1
vote
1answer
241 views

apache httpd error: “mod_rewrite: can't access DBM RewriteMap file”

I'm running a fresh httpd install on Fedora linux and all my static content 403s. The error_log shows this: mod_rewrite: can't access DBM RewriteMap file How do I fix this? Thanks, Chris
0
votes
1answer
196 views

VirtualHost doesnt seem to be working

Good morning. I recently migrated my web server to new hardware and to the newest version of Apache. I was running Apache 2 before as well just to be clear. I seem to be having problems getting my ...
0
votes
3answers
2k views

Apache 2.4 and PHP 5.4 getting connection reset errors in the browser

In the weekend I upgraded my development web server to Apache 2.4 and PHP 5.4. In my web application which was previously working great on Apache 2.2 and PHP 5.3 it now starts getting these messages ...