Forum Moderators: bakedjake

Message Too Old, No Replies

name based virtual hosts

my problems

         

pewdnet

4:24 am on May 19, 2003 (gmt 0)



Ok i have my pc.. routed on on port 80 non blocked.. with apache webserver running

ive got a tld .. which is confdev.com
and another website which is pewd.hopto.org i want them to be different sites.. but i try following what apache says and it fails .. anyone think they can help me?

littleman

6:03 am on May 19, 2003 (gmt 0)



You have to set apache up with name based virtual hosts, you can do this by setting the parameters in the httpd.conf file.

First set the IP to use..
An example of a setup behind a firewall:
NameVirtualHost 192.168.1.2

This is one way to set up the domains...
<VirtualHost 192.168.1.2>
DocumentRoot /www/domain1.com
ServerName domain1.com
ErrorLog /www/logs/domain1.com-error_log
CustomLog /www/logs/domain1.com-access_log common
</VirtualHost>

<VirtualHost 192.168.1.2>
DocumentRoot /www/domain2.com
ServerName domain2.com
ErrorLog /www/logs/domain2.com-error_log
CustomLog /www/logs/domain2.com-access_log common
</VirtualHost>