FrontPage
»
Setup_School_Servers
»
ApacheVirtual
# this goes in /etc/apache/virtual.conf and should be Included at the bottom of httpd.conf
Alias /web/ /var/www/ # used for direct access to apache root Alias /www/ /var/www/ # used for direct access to apache root Alias /img/ /var/www/img/ # used for externally produced images
NameVirtualHost *
<LocationMatch "^[^/]"> Deny from all </LocationMatch>
<VirtualHost > # or _default_: ServerName your.domain.name ServerAlias *.your.domain.name Include /etc/apache/rules.conf </VirtualHost>
<VirtualHost > ServerName another.domain.name.hosted.on.this.site ServerAlias .another.domain.name Include /etc/apache/another_rules.conf </VirtualHost>
NameVirtualHost :443 <VirtualHost :443> # to allow https: (SSL) Include /etc/apache/rules.conf <IfModule mod_ssl.c> SSLEngine on SSLCertificateFile /etc/apache/ssl.crt/server.crt SSLCertificateKeyFile /etc/apache/ssl.key/server.key SetEnvIf User-Agent ".MSIE." nokeepalive ssl-unclean-shutdown </IfModule> </VirtualHost>