Questions tagged [httpd.conf]

httpd.conf is a typical name for a web server configuration file. Historically this is the main Apache configuration file. It is also the configuration file for OpenBSD httpd.

httpd.conf is a typical name for a web server configuration file.

Historically, this is the main Apache configuration file, but has been adopted by other servers, including OpenBSD httpd.

In recent Apache installations, the main file can also be called apache2.conf.

616 questions
5
votes
1 answer

Do I need to restart/reload apache when adding a configuration file under /etc/httpd/conf.d

Do you need to restart/reload Apache when adding a configuration file under /etc/httpd/conf.d? I know that editing the httpd.conf need a restart or a reload but unsure if file placed in the conf.d need apache to get restarted. Thanks for the…
Adam Benayoun
  • 1,138
  • 2
  • 14
  • 26
5
votes
3 answers

Apache: Testing against multiple module

We can use Apache's IfModule directive to test presence or absence of a specific module. Apache also allows nested IfModule directives which can be used to test multiple modules, in other words we can implement logic AND. Is it also possible to…
Emre Yazici
  • 587
  • 6
  • 12
5
votes
2 answers

Apache MaxClients Issue

In my error logs I see: server reached MaxClients setting, consider raising the MaxClients setting My MaxClients setting is 150. However when I calculate what seems to be an optimal MaxClients setting I come up with: Mem used by 1 Apache process =…
Lothar_Grimpsenbacher
  • 1,677
  • 3
  • 19
  • 29
4
votes
3 answers

Apache 2.4 updated, now throws: Cannot define multiple Listeners on the same IP:port

I've just updated Apache to 2.4.3 on my AWS instance (running Linux AMI). After the update finished, Apache crashed with the following: Starting httpd: AH00526: Syntax error on line 5 of /etc/httpd/conf.d/ssl.conf: Cannot define multiple Listeners…
Edmond Tamas
  • 211
  • 2
  • 3
  • 7
4
votes
1 answer

Passing Apache variable into SetHandler directive

I'm trying to have dynamically determined Unix socket used for different separated PHP "apps" (different sockets lead to different PHP-FPM pools) on my Apache (2.4.18) server (using mod_proxy_fcgi):
Smuuf
  • 146
  • 7
4
votes
2 answers

Do I have 2 different Apache installations on my VPS

I'm new to server maintenance, and am running Apache 2.4 on Ubuntu 14.10 on a VPS I just set up yesterday. It seems as if I have two different Apaches installed at different places in the machine due to the following reasons. When I run sudo…
conradg
  • 83
  • 1
  • 5
4
votes
1 answer

Setting up IPv6 on Apache2

Currently I have the "ports.conf" with the following content: NameVirtualHost *:80 Listen 80 Listen 443 NameVirtualHost *:443 Listen 443 So to add IPv6 I have to…
kghbln
  • 411
  • 2
  • 10
  • 20
4
votes
1 answer

Apache: can ErrorLog be made to log also hostnames instead of IP addresses?

Having different Apache servers in a low-load intranet with almost only DHCP clients, we need to log hostnames instead of IP addresses. As the DHCP environment is quite dynamic, any later attempt to remap IPs to hostnames would most likely yield…
Christian
  • 295
  • 1
  • 7
4
votes
2 answers

How to set different mod_mime rules for reverse proxy?

By default, httpd contains the following configuration: # # TypesConfig points to the file containing the list of mappings from # filename extension to MIME-type. # TypesConfig conf/mime.types …
Gili
  • 295
  • 1
  • 4
  • 20
4
votes
1 answer

How multiple sections work in Apache configuration (httpd.conf)?

For example, if my '/etc/apache2/httpd.conf' looks like this: AllowOverride None AllowOverride FileInfo The latter AllowOverride rule overrides its predecessor for the /home…
its_me
  • 225
  • 1
  • 7
  • 23
4
votes
1 answer

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 connections". The customisation is possible using :…
Cyrus31
  • 51
  • 4
4
votes
1 answer

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 /var/www, as expected. When I fill httpd.conf with: #…
4
votes
1 answer

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 /Symfony/web/js/highcharts.js HTTP/1.1" -/- (-%) "GET…
gremo
  • 339
  • 1
  • 4
  • 20
4
votes
1 answer

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. Some websites link to that article but somehow…
nn4l
  • 1,336
  • 5
  • 23
  • 40
4
votes
2 answers

Blocking by user-agent string in httpd.conf not effective

I'd like to block some spiders and bad bots by user-agent text string for all of my virtual hosts via httpd.conf but have yet to find success. Below are the contents of my http.conf file. Any ideas why this isn't working? env_module is…