[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Apache VHOSTing
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Apache VHOSTing
- From: "Brett Rilling" <selfism_(_at_)_hotmail_(_dot_)_com>
- Date: Tue, 09 Dec 2003 17:02:43 -0700
I have Googled and I have explored the archives...to be honest I have found
the answer about 15 times but I still can't get VHOSTing in Apache to work.
PLEASE HELP It has been 3 days and I guess I this is something I can't
figure out myself..
I am running 3.4 and am trying to set up vitual hosting. Apache is chrooted
and here are the highlights of httpd.conf:
DocumentRoot "/var/www"
<Directory "/var/www"
UseCanonicalName On
NameVirtualHost 12.248.50.244:80
<VirtualHost 12.248.50.244>
ServerAdmin webmaster_(_at_)_www_(_dot_)_rumcheers_(_dot_)_com
DocumentRoot /var/www
ServerName www.rumcheers.com
ErrorLog logs/www.rumcheers.com-error_log
CustomLog logs/www.rumcheers.com-access_log common
</VirtualHost>
My directories are as follows:
$ pwd
/var/www
$ ls -al
total 40
drwxr-xr-x 9 root daemon 512 Dec 9 04:55 .
drwxr-xr-x 22 root wheel 512 May 16 2003 ..
drwxr-xr-x 2 root daemon 512 Dec 2 05:23 cgi-bin
drwxr-xr-x 2 root daemon 512 Dec 8 14:37 conf
drwxr-xr-x 5 root daemon 512 Dec 8 10:53 htdocs
drwxr-xr-x 3 root daemon 3584 Dec 2 05:23 icons
drwxr-xr-x 2 root daemon 512 Dec 9 04:59 logs
drwxr-xr-x 4 root daemon 512 Dec 9 05:03 user
drwxr-xr-x 2 root daemon 512 Dec 9 04:56 www.rumcheers.com
-->contains index.html 755
I have created a user account to poke around with:
username: why
passwd: whywhywhy!
I have tried every combination of these I could think of i.e.
1)Adding removing trailing / after /var/www for both <Directory an
DocumentRoot
2)Using only the vitual hosts section and leaving the rest of the httpd
unaltered
3)Using NameVirtualHost * and <VirtualHost *> instead of an IP
4)Combining the Virtual Hosts componets with global config directives such
as:ServerName, port, listen, etc
_________________________________________________________________
Tired of slow downloads and busy signals? Get a high-speed Internet
connection! Comparison-shop your local high-speed providers here.
https://broadband.msn.com
Visit your host, monkey.org