It would most helpful to know what version of Apache you are using.
For a 2.x version of Apache you'd configure virtual hosts by having something along the lines of:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName "www.dirtywerm.com"
ServerAlias "dirtywerm.com"
ServerAdmin "webmaster@dirtywerm.com"
DocumentRoot "/home/webs/www.dirtywerm.
<Directory />
AllowOverride AuthConfig
Options FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/home/webs/www.dirtywerm.
<Directory "/home/webs/www.dirtywerm.
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
CustomLog "/home/webs/www.dirtywerm.
ErrorLog "/home/webs/www.dirtywerm.
</VirtualHost>
with httpd.conf (with the paths adjusted for local conditions). To have the site work internally and externally you need to ensure that the DNS views for each properly resolve the anme to the appropriate IP. That means that from inside you get an inside IP for the name and from outside you get an outside IP.
Main Topics
Browse All Topics





by: dirtywermPosted on 2004-11-01 at 15:32:21ID: 12468572
Also I am using apache 2
When I try to enable virtual hosting I uncomment the following line:
#Include conf/vhosts/vhosts.conf
Here is vhosts.conf:
NameVirtualHost *
<VirtualHost *>
ServerName dirtywerm.com
DocumentRoot /var/www/dirtywerm/htdocs
</VirtualHost>
/var/www/dirtywerm is just a copy of /var/www/localhost