Re: HTTPD.conf question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




# 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@xxxxxxxxx
     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@xxxxxxxxx
     ServerName www.michael.com
    DirectoryIndex index.html index.htm index.shtml
</VirtualHost>

~WILL~


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux