We-Host.com Main Web Site
Web Development
Support

Configuring a server for Virtual Hosting
httpd.conf

Location: <your root directory> /www/conf

ALWAYS TRANSFER IN ASCII FORMAT!
In order to modify your Virtual Server for hosting additional accounts, one of the possible ways you could do it would be to alter your httpd.conf file in the below format. This file may be either edited via Telnet, SSH, or other such program, on-line, or you may FTP it to your PC - edit the file then upload the revised format.

As the server reads this file without having to restart your web server, any changes are immediate. You will not need to email our support to request a server restart after modification.
# >>>>>>>>>>>>>
# >>>> CLIENT DOMAINS
# >>>>>>>>>>>>>

[EXAMPLE FOR CONFIGURING A SERVER WITHOUT MICROSOFT FRONT PAGE INSTALLED]
<Host www.
YOURDOMAIN.COM YOURDOMAIN.COM>
ServerName www.
YOURDOMAIN.COM
ServerAdmin webmaster@iwmi.com
DocumentRoot /usr/local/etc/httpd/htdocs/
FTP-DIRECTORY-ACCT/
TransferLog htdocs/
FTP-DIRECTORY-ACCT/logs/access_log
ErrorLog htdocs/dvdhunt/logs/error_log
AgentLog htdocs/dvdhunt/logs/agent_log
RefererLog htdocs/dvdhunt/logs/referer_log
ScriptAlias /cgi/ /usr/local/etc/httpd/htdocs/
FTP-DIRECTORY-ACCT/cgi/
ErrorDocument 404 /errors/index.html
</Host>

[EXAMPLE FOR CONFIGURING A SERVER WITH MICROSOFT FRONT PAGE INSTALLED]
<VirtualHost www.
YOURDOMAIN.COM YOURDOMAIN.COM>
ServerName www.
YOURDOMAIN.COM
ServerAdmin support@we-host.com
DocumentRoot /usr/local/etc/httpd/htdocs/
FTP-DIRECTORY-ACCT/
TransferLog htdocs/
FTP-DIRECTORY-ACCT/logs/access_log
ErrorLog htdocs/logs/error_log
AgentLog htdocs/logs/agent_log
RefererLog htdocs/logs/referer_log
ScriptAlias /cgi/ /usr/local/etc/httpd/htdocs/
FTP-DIRECTORY-ACCT/cgi/
ErrorDocument 404 /errors/index.html
</VirtualHost>


Note: Usually, but not always, the FTP-DIRECTORY-ACCT will be the same as the domain name, minus the extension. Example: xyz.com would have an ftp directory of xyz. You may however place your transfer logs in any directory on the sever you like such as /www/logs/access_log.

 

Contents Copyright 1997, 1998 We-Host Web Hosting. See our copyright page for additional copyright information.
Last Updated: 11 June, 2000  · Email support web site errors to webmaster@we-host.com

We-Host Web Hosting