History for ApacheVirtual
??changed:- # this goes in /etc/apache/virtual.conf and should be Included at the bottom of httpd.conf <pre> 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 </pre> <pre> NameVirtualHost * </pre><pre> <LocationMatch "^[^/]"> Deny from all </LocationMatch> </pre><pre> <VirtualHost *> # or _default_:* ServerName your.domain.name ServerAlias *.your.domain.name Include "/etc/apache/rules.conf":ApacheRules </VirtualHost> </pre><pre> <VirtualHost *> ServerName another.domain.name.hosted.on.this.site ServerAlias *.another.domain.name Include /etc/apache/another_rules.conf </VirtualHost> </pre><pre> NameVirtualHost *:443 <VirtualHost *:443> # to allow https: (SSL) Include "/etc/apache/rules.conf":ApacheRules <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> </pre> <h2>Resources</h2> - http://www.zope.org/Members/shaw/HowTo/ApacheFrontEnd - http://www.zope.org/Members/anser/apache_zserver - http://www.zope.org/Members/michel/HowTos/ApacheRewriting - http://www.zope.org/Members/jec/virtual_howto_html