|
Hi Douglas We don't use Apache on the 400, but do use it on a Windows server and use virtual domains to run multiple sites. The following is an example of our virtual hosts settings: <VirtualHost *:80> ServerName www.mydomain.com:80 ServerAlias mydomain.com *.mydomain.com ServerAdmin webmaster@xxxxxxxxxxxx DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/mydomain" Alias /webmail "C:/Program Files/Apache Group/Apache2/htdocs/webmail/mydomain/" ErrorLog logs/mydomain_errors.log CustomLog logs/mydomain.log combined env=!dontlog ErrorDocument 400 /400error.html ErrorDocument 401 /401error.html ErrorDocument 403 /403error.html ErrorDocument 404 /404error.html </VirtualHost> To handle sub-domains, such as "webmail.mydomain.com" we use cloaked web forwarding through our DNS provider so that "webmail.mydomain.com" forwards to "www.mydomain.com/webmail" as defined in the Alias setting above. Hope it helps Jonathan -----Original Message----- From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Douglas W. Palme Sent: 22 November 2006 03:22 To: 'Midrange Systems Technical Discussion' Subject: Apache web server We would like to add a virtual host to our apache server but are having a difficult time getting it to work. It needs to be named based virtual hosting. We added the following to the http.conf file, but all it does it display the default page: <Virtualhost www.subdomain.cwtruck.com> DocumentRoot /www/subdomain </VirtualHost> I know there are other directives that we can add, but for now we were just trying to get the index.html to display...... What else am I missing or failing to do?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.