You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2006/11/27 00:56:27 UTC
[Httpd Wiki] Update of "Recipes/ExampleVhosts" by pctony
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The following page has been changed by pctony:
http://wiki.apache.org/httpd/Recipes/ExampleVhosts
The comment on the change is:
added new tutorial
------------------------------------------------------------------------------
</VirtualHost>
}}}
+ == Basic Setup, multiple virtual hosts, on Port 80 ==
+
+ {{{
+ <VirtualHost *:80>
+ ServerName www.foo.com
+
+ # if you want this vhost to listen to extra names, uncomment the next line
+ # ServerAlias foo.com www.bar.com bar.com
+
+ DocumentRoot /var/www/www.foo.com/htdocs
+ </VirtualHost>
+
+ <VirtualHost *:80>
+ ServerName mail.foo.com
+
+ DocumentRoot /var/www/mail.foo.com/htdocs
+ </VirtualHost>
+
+ }}}
+
== Basic VirtualHost with Custom Log files, and authentication ==
{{{
<VirtualHost *:80>