|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Virtual hosting and httpd.conf
Hi, I've started hosting a few sites through name virtual hosting on my server, and the Virtual host section in my httpd.conf file is starting to get quite big. Is there a way to have the virtual host info in another file and specify Apache to look for the file? I guess it would be sorta like the server side include tag in a web page.
Any ideas? Thanx |
|
#2
|
|||
|
|||
|
Yes, start here -> http://httpd.apache.org/docs/mod/core.html#include
In the past, you would do Include /full/path/to/vhost.list from the bottom-most of your httpd.conf. This caused a problem with vhost.list gets too huge. Since Apache 1.3.13, it introduced a new feature if the target is a dir instead of a file, it will parse all files recursively. So be caution not to put vhost.list the top level dir and don't put any unrelated config files under the subdirs of /full/path/to/. There is no special switch to turn recursive on or off. Or you can just make sure there is no subdir under the dir where vhost.list resides. For security concern, make sure that dir is writable only by root user. (drwx------ 700) is fine. vhost.list itself just need to be 600. Last edited by freebsd : May 26th, 2001 at 05:18 AM. |
|
#3
|
|||
|
|||
|
Depending on how your virtualhosts are arranged, you might want to check this section in the apache-docs.
It looks very promissing and I'm planning to use it aswell ![]() It will certainly make your httpd.conf filesize smaller..... The downside is, that you're not able to make seperate log-files for every VirtualHost......but with a large number of VirtualHosts seperate logging would cause a performance-decrease anyway. Fortunately the Apache-devvers found an interesting solution (log-splitting) for the Log-problem, so check it out ![]() Last edited by JointFillah : May 26th, 2001 at 07:47 AM. |
|
#4
|
|||
|
|||
|
Awesome
Thanx a lot guys.
![]() |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Virtual hosting and httpd.conf |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|