<virtuakhost> dele ser sådan ud:
# VirtualHost: Allows the daemon to respond to requests for more than one
# server address, if your server machine is configured to accept IP packets
# for multiple addresses. This can be accomplished with the ifconfig
# alias flag, or through kernel patches like VIF.
# Any httpd.conf or srm.conf directive may go into a VirtualHost command.
# See also the BindAddress entry.
#<VirtualHost host.some_domain.com>
#ServerAdmin webmaster@host.some_domain.com
#DocumentRoot /www/docs/host.some_domain.com
#ServerName host.some_domain.com
#ErrorLog logs/host.some_domain.com-error_log
#TransferLog logs/host.some_domain.com-access_log
#</VirtualHost>
Include /etc/httpd/conf/vhosts/site1
Include /etc/httpd/conf/vhosts/site3
Include /etc/httpd/conf/vhosts/site4
Include /etc/httpd/conf/vhosts/site5
Include /etc/httpd/conf/vhosts/site6
Include /etc/httpd/conf/vhosts/site2
Include /etc/httpd/conf/vhosts/site7
Include /etc/httpd/conf/vhosts/site8
Include /etc/httpd/conf/vhosts/site9
Include /etc/httpd/conf/vhosts/site10
Include /etc/httpd/conf/vhosts/site11
Include /etc/httpd/conf/vhosts/site12
Include /etc/httpd/conf/vhosts/site13
Include /etc/httpd/conf/vhosts/site14
Include /etc/httpd/conf/vhosts/site15
Include /etc/httpd/conf/vhosts/site16
Include /etc/httpd/conf/vhosts/site17
Include /etc/httpd/conf/vhosts/site18
Hvor hver af ovenstående angiver et site.
include filen for site3 (
www.glo.dk)
ser sådan ud:
# owned by VirtualHost
NameVirtualHost 195.140.132.166
# FrontPage needs the following four things to be here
# otherwise all the vhosts need to go in httpd.conf, which could
# get very large since there could be thousands of vhosts
Port 80
ServerRoot /etc/httpd
ResourceConfig /etc/httpd/conf/srm.conf
AccessConfig /etc/httpd/conf/access.conf
<VirtualHost 195.140.132.166>
ServerName
www.glo.dkServerAdmin admin
DocumentRoot /home/.sites/106/site3/web
ErrorDocument 401 /error/401-authorization.html
ErrorDocument 403 /error/403-forbidden.html
ErrorDocument 404 /error/404-file-not-found.html
ErrorDocument 500 /error/500-internal-server-error.html
RewriteEngine on
RewriteCond %{HTTP_HOST} !^195.140.132.166(:80)?$
RewriteCond %{HTTP_HOST} !^
www.glo.dk(:80)?$ [NC]
RewriteRule ^/(.*)
http://www.glo.dk/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/.sites/106/site3/users/$1/web/$3
# BEGIN WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
# END WebScripting SECTION. DO NOT EDIT MARKS OR IN BETWEEN.
</VirtualHost>