Re: Virtual Host Performance Oddity

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



J. Greenlees wrote:
[...]

1) maybe not the problem, but you have (at least) 3 times this section :
<Directory /var/www/html>
All these directives overlap one another, so it's rather difficult to
figure out what is going on.

2) you define your VirtualHost sections in the main http.conf file.
That is ok, but then you also have this line, and after those
VirtualHost sections :
Include conf/vhosts.d/*.conf

That line will "include" in your config file, at this point, any
"*.conf" file that is present in the conf/vhosts.d directory.
Have you looked at them ?

I would suggest, at least, to move your own VirtualHost sections *after*
that line.

What you should really do, to keep things consistent in this kind of
Apache installation, is as follows :
Each of your VirtualHost sections should be in its own file, for example
conf/vhosts.d/dev_shawan.conf
conf/vhosts.d/dev_jaqui.conf
..
etc..
Then they will be added automatically (in alphabetical order) by the line
Include conf/vhosts.d/*.conf

(which should really be the last, or almost, of your main httpd.conf file.

Then also your other following statements will look more in context.

Also don't forget that anything that you define in your httpd.conf file, outside of a <VirtualHost> section (whether it is directly in the file itself or inserted via an Include), is in fact a *default* for *all* your VirtualHosts (meaning it is valid for each VirtualHost, unless redefined in the <VirtualHost> section itself.

All in all, because of these various things, your configuration right now is a bit "messy", which probably makes it hard to spot a real problem.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux