Vadim Gritsenko wrote:



Slightly offtopic: do you know how to do virtual hosts on one IP address (which has multiple DNS names)?

Yep, on your httpd.conf, in the "top" level (i.e. server-wide):


NameVirtualHost www.xxx.yyy.zzz

Then, just do:

<virtualhost www.xxx.yyy.zzz>
   servername example1.com
</virtualhost>

<virtualhost www.xxx.yyy.zzz>
   servername anotherexample.com
</virtualhost>

Just keep re-using the same IP address in the virtualhost directives. The order matters, and httpd will make the topmost virtualhost the "default" one. If you run into problems seeing the wrong website on a vhost, you might want to mess with the order they appear in the conf file.



Vadim




Tony, maybe he should start apache httpd consulting, too ;)




Reply via email to