Heeter
Overclocked Like A Mother
- Joined
- 8 Jul 2002
- Messages
- 2,732
Hi all,
It has been a few years since I setup virtual hosts with my apache setup. I actually forgot how to set it up again, Oh well.
If I remember correctly I enable this module in the httpd file:
Then I got into the "extra" folder, open up the "httpd-vhosts" file. This is where I get a little blurry. I don't remember exactly how to setup the file. If I was to setup a //www.heeter1.com// & //www.heeter2.com//, I would do this:
Also, I don't remember if I have to mod the httpd file any other way.
Any assistance would be greatly appreciated.
Thanks
Heeter
It has been a few years since I setup virtual hosts with my apache setup. I actually forgot how to set it up again, Oh well.
If I remember correctly I enable this module in the httpd file:
Code:
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
Code:
NameVirtualHost *:80 # listen on all interfaces (loopback and nic1) on port 80
<VirtualHost *:80>
ServerName localhost
DocumentRoot C:/apache/htdocs/
</VirtualHost>
<VirtualHost *:80>
ServerName heeter1
ServerAlias www.heeter1.com
DocumentRoot C:/apache/htdocs/heeter1
<Directory "C:/apache/htdocs/heeter1">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName heeter2
ServerAlias www.heeter2.com
DocumentRoot C:/apache/htdocs/heeter2
<Directory "C:/apache/htdocs/heeter2">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Also, I don't remember if I have to mod the httpd file any other way.
Any assistance would be greatly appreciated.
Thanks
Heeter