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>

Reply via email to