]>
Commit | Line | Data |
---|---|---|
902d3154 SZ |
1 | # VirtualHost: Allows the daemon to respond to requests for more than one |
2 | # server address, if your server machine is configured to accept IP packets | |
3 | # for multiple addresses. This can be accomplished with the ifconfig | |
4 | # alias flag, or through kernel patches like VIF. | |
5 | ||
6 | NameVirtualHost 192.168.0.1:80 | |
7 | NameVirtualHost [::192.168.0.1]:80 | |
8 | ||
9 | <VirtualHost _default_:80> | |
10 | ServerName www.company.com | |
11 | ServerAdmin webmaster@company.com | |
12 | DocumentRoot /home/httpd/html | |
13 | </VirtualHost> | |
14 | ||
15 | <VirtualHost 192.168.0.1:80 [::192.168.0.1]:80> | |
16 | ServerName www.company.com | |
17 | ServerAdmin webmaster@company.com | |
18 | DocumentRoot /home/httpd/html | |
19 | </VirtualHost> | |
20 | ||
21 | <VirtualHost 192.168.0.1:80 [::192.168.0.1]:80> | |
22 | ServerName sourceforge.company.com | |
23 | ServerAdmin webmaster@sourceforge.company.com | |
24 | DocumentRoot /home/httpd/SourceForge/www | |
25 | ErrorLog /var/log/httpd/sf.err | |
26 | TransferLog /var/log/httpd/sf.log | |
27 | </VirtualHost> |