Multiple Domains
on Virtual Servers |
||||||||||||||||
|
Virtual Hosting Setup
Modifying your httpd.conf file # point businessweb.com to subdirectory businessweb or, if you have installed Microsoft FrontPage 98 use "VirtualHost" instead of "Host" (as shown below): # point businessweb.com to subdirectory businessweb Of course, you would substitute your domain name and subdirectory in the place of the "businessweb.com" and "businessweb" occurrences.
Advanced Virtual Hosting Configurations You may also want to visit the below resources for more detailed information: http://hoohoo.ncsa.uiuc.edu/docs/setup/httpd/Overview.html For example, we can include the definition of a "Not Found Document" (ErrorDocument 404) in the "businessweb.com" Host definition. # point businessweb.com to subdirectory businessweb or, if you have installed Microsoft FrontPage 98 use "VirtualHost" instead of "Host" (as shown below): # point businessweb.com to subdirectory businessweb Note the file location is specified with respect to the DocumentRoot.... so the actual file location of the "notfound.html" is at: /usr/home/yourserver/usr/local/etc/httpd/businessweb/errors/ Another great feature is the ability to create separate log files for your Virtual hosts. In the host directives of your httpd.conf file, add lines to define your new log files like this: TransferLog logs/localhost_access_log So the complete example would look like: # point businessweb.com to subdirectory businessweb or, if you have installed Microsoft FrontPage 98 use "VirtualHost" instead of "Host" (as shown below): # point businessweb.com to subdirectory businessweb This will allow you to isolate the logs for a specific Virtual Host rather than having them all lumped into the master log files. Enhancements on Apache 1.2.6+ [top] |
|||||||||||||||
|
Contents Copyright 1997-2003 We-Host Web Hosting. See our copyright page for additional copyright and disclaimer information. Last Updated: 11 June, 2000 · Email support web site errors to webmaster@we-host.com |
||||||||||||||||
![]()