"Jon Phipps" <lordpuma.TakeThisOut@hotmail.com> wrote in message
news:RWdXa.630070$Vi5.15194588@news1.calgary.shaw.ca...
> I am brand new to apache(v2) and am having an issue setting up name
> based virtual hosting. I wish to quit using IIS and move to apache.
>
> excerpts from conf file
you need the following
NameVirtualHost 12.34.56.78
replaceing the IP address with your servers IP
and then replace as below
> <VirtualHost tpp.thepumas.net:80 >
> ServerAdmin webmaster.TakeThisOut@thepumas.net
> DocumentRoot d:/pumaspalace
> ServerName tpp.thepumas.net
> ErrorLog logs/tpp-error_log
> CustomLog logs/tpp-access_log combined
> </VirtualHost>
> <VirtualHost inner_strength.thepumas.net:80 >
> ServerAdmin webmaster.TakeThisOut@thepumas.net
> DocumentRoot d:/inner_strength
> ServerName inner_strength.thepumas.net
> ErrorLog logs/iss-error_log
> CustomLog logs/iss-access_log combined
> </VirtualHost>
>
I have many virtual hosts and mine are as follows
<VirtualHost host.dfsl.co.uk:80>
ServerName host.dfsl.co.uk
DocumentRoot /usr/local/httpd/htdocs/
ErrorLog logs/hostdfsl.com-error.log
CustomLog logs/hostdfsl.com-access_log common
</VirtualHost>
<VirtualHost <a style='text-decoration: underline;' href="http://www.ndmdc.com:80" target="_blank">www.ndmdc.com:80</a>>
ServerName <a style='text-decoration: underline;' href="http://www.ndmdc.com" target="_blank">www.ndmdc.com</a>
ProxyPass / <a style='text-decoration: underline;' href="http://10.69.70.2:80/ndmdc/" target="_blank">http://10.69.70.2:80/ndmdc/</a>
ProxyPassReverse / <a style='text-decoration: underline;' href="http://10.69.70.2:80/ndmdc/" target="_blank">http://10.69.70.2:80/ndmdc/</a>
ErrorLog logs/ndmdc.com-error.log
CustomLog logs/ndmdc.com-access_log common
</VirtualHost>
The second one above is actually on an IIS server within my internal network
Mike.<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: Name based virtual host issues