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
69
votes
4 answers

_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: ServerName example1.com DocumentRoot…
Mohit Jain
  • 953
  • 2
  • 10
  • 15
53
votes
2 answers

difference between _default_:* and *:* in VirtualHost Context

I want to know the difference between "default:*" and "*:*" in VirtualHost Context. #... ServerName host.example.com #... #... ServerName host.example.com …
Luigi Giuseppe
  • 631
  • 1
  • 6
  • 4
48
votes
5 answers

How can I tell which config file Apache is using?

I'm trying to set up virtual hosts on Mac OS X. I've been modifying httpd.conf and restarting the server, but haven't had any luck in getting it to work. Furthermore, I notice that it's not serving files in the DocumentRoot mentioned in httpd.conf…
Claudiu
  • 1,207
  • 5
  • 21
  • 28
45
votes
2 answers

Difference between and Apache directives

I have Zend Server installed and noticed something like the following was added to my httpd.conf file: Order Allow,Deny Allow from 127.0.0.1 Alias /ZendServer "C:\Program…
rfgamaral
  • 960
  • 2
  • 11
  • 18
41
votes
5 answers

How to find out which httpd.conf apache is using at runtime

I've always struggled to find this: How can you ask apache which httpd.conf file it used to load up? It becomes difficult when you have a number of instances of apache running, or if you haven't looked at the machine for a long time, and there are…
Ali
28
votes
9 answers

Apache2 Proxy timeout

I have Apache2 with PHP + PHP-FPM configured according to: http://wiki.apache.org/httpd/PHP-FPM I am writing a script that will take a long time to execute on an internal Vhost, but keep getting timed out, everything runs flawlessly if the script…
wyqydsyq
  • 395
  • 1
  • 3
  • 9
28
votes
4 answers

Include files in Apache HTTP Server Version 2.2 httpd.conf

I have a large httpd.conf file, most of which is virtual hosts. Is there a way to make a file, say virtual_hosts.conf, and include it from httpd.conf? I've googled a bit, but can't seem to find much as far as includes, just module loading.
Josh
  • 425
  • 1
  • 5
  • 13
23
votes
2 answers

Apache: What is the 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 ways to handle thousands of urls? How much is it…
ucker
  • 245
  • 2
  • 5
21
votes
3 answers

Make apache only accessible via 127.0.0.1, is this possible?

I've set up my Apache server, and the PHP/MySQL works well! But the issue is, how do I keep this private, since it's a development-only server? The only reason for keeping the content private is if a script went wrong, I don't want Apache errors…
linthurst53
  • 211
  • 1
  • 2
  • 3
19
votes
1 answer

Display Apache Configuration

Is there any way to display the effective configuration values that Apache is using? I have a cPanel server that uses multiple include files and there are some server-wide settings that are defined in multiple places. I'd like to find a way of…
Dave Forgac
  • 3,546
  • 7
  • 37
  • 48
17
votes
8 answers

How to disable the default document root in Apache?

I host some websites on my server running Apache Httpd. Each website has it's own domain or sub-domain and virtual host. Therefore, I need no default document root. Is it possible to disable DocumentRoot in /etc/httpd/conf/httpd.conf?
danijar
  • 403
  • 2
  • 4
  • 14
14
votes
4 answers

Load time impact of htaccess

There are in general two possibilities of handling stuff on Apache: make configurations for folders one by one using htaccess file to fully resign htaccess and put all the rules into the httpd.conf Usage of htaccess is a load time issue. I want to…
Evgeniy
  • 255
  • 2
  • 10
9
votes
2 answers

Apache Header Module Loaded but can't set headers in htaccess

I have Apache 2.2.29 (unix) setup and running on my new dev machine (mac). I am trying to set CORS headers for an API project - something that I have done many times. The htaccess file for the project looks like this:
Dan Lake
  • 91
  • 1
  • 1
  • 4
9
votes
2 answers

Use the ServerName as a variable in httpd.conf file

My current httpd.conf file looks something like this: DocumentRoot /var/www/html/www.example1.com ServerName www.example1.com SSLEngine on SSLCertificateFile /var/www/ssl/www.example1.com/certificate.crt …
RonSper
  • 193
  • 1
  • 1
  • 4
9
votes
3 answers

How can I block a user agent from all sites on my server?

I originally this posted at webmasters.stackexchange.com, but was told I'd get a better reception here. For the last few days, I've been suffering from what appears to be a (presumably inadvertent) DDOS attack. I've been getting so many requests…
Tom Wright
  • 914
  • 3
  • 12
  • 25
1
2 3
41 42