You are not logged in Log in Join
You are here: Home » Members » vernier » Debian » ApacheVirtual

Log in
Name

Password

 
 

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>
&lt;LocationMatch "^[^/]">
 Deny from all
&lt;/LocationMatch>
</pre><pre>
&lt;VirtualHost *>   # or _default_:* 
 ServerName your.domain.name
 ServerAlias *.your.domain.name
 Include "/etc/apache/rules.conf":ApacheRules
&lt;/VirtualHost>
</pre><pre>
&lt;VirtualHost *>  
 ServerName another.domain.name.hosted.on.this.site
 ServerAlias *.another.domain.name
 Include /etc/apache/another_rules.conf
&lt;/VirtualHost>
</pre><pre>
NameVirtualHost *:443
&lt;VirtualHost *:443> # to allow https:  (SSL)
 Include "/etc/apache/rules.conf":ApacheRules 
 &lt;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
 &lt;/IfModule>
&lt;/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