freebsd web hosting

To add a virtual host, you must add information to the httpd.conf file.

Adding Apache httpd.conf Lines
From the httpd.conf file, add the following:

# point utahjrs.org to subdirectory utahjrs
<VirtualHost www.utahjrs.org utahjrs.org>
ServerName www.utahjrs.org
ServerAdmin webmaster@utahjrs.org
DocumentRoot /usr/local/etc/httpd/vhosts/utahjrs
</VirtualHost>

Setting up Additional Options for Virtual HostsA Virtual Host Example (utahjrs.org)
The following lines were added:

# point utahjrs.org to subdirectory utahjrs
<VirtualHost www.utahjrs.org utahjrs.org>
ServerName www.utahjrs.org
ServerAdmin utahjrs@utahjrs.org
DocumentRoot /usr/local/etc/httpd/vhosts/utahjrs
TransferLog logs/utahjrs_access
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/htdocs/utahjrs/cgi-bin/
ErrorDocument 404 /errors/notfound.html
</VirtualHost>

For More Information
For additional information about the topics discussed in this chapter, see the following page on the Enetrics Communications web site that discusses subhosts.
Hosting  ::  Web Design  :: Server Administration  ::  Tech Support  ::  Contacts
Data Centers  ::  Tier I Global IP Network  ::  SLA/Contracts  ::  Search  ::  Account Login