HTTPD.conf question

CodeHeads ch at code-heads.com
Fri Nov 11 19:27:54 UTC 2005


> # Virtual host default
> <VirtualHost www.default.com>
>      ServerName www.default.com
>     DirectoryIndex index.php index.html index.htm index.shtml
>     LogLevel debug
>      HostNameLookups off
> </VirtualHost>
> 
> # Virtual host michael
> <VirtualHost www.michael.com>
>      DocumentRoot /home/michael/public_html/www
>      ServerAdmin mshaw at dowco.com
>      ServerName www.michael.com
>     DirectoryIndex index.html index.htm index.shtml
> </VirtualHost>
> 
> Then have things setup in your /etc/hosts files or DNS for those names
> pointing to the same IP address.
> 
> This allows you to use one IP address for all the sites.  They get
> directed to the correct document root based on the name used in the
> browser.
> 
> 
A simpler way is:
<VirtualHost *:80>
      DocumentRoot /home/michael/public_html/www
      ServerAdmin mshaw at dowco.com
      ServerName www.michael.com
     DirectoryIndex index.html index.htm index.shtml
</VirtualHost>

~WILL~




More information about the fedora-list mailing list