Is it possible to support multiple websites with unique domains using one IP address? Perhaps I was misuing Apache, but I had this working with a DSL bridge router. We have recently upgraded to a DSL router that uses NAT (Network Address Translation), and the old solution no longer works. The previous httpd.conf file used:
NameVirtualHost 209.220.45.204
<VirtualHost DocumentRoot /u/apache/a
ServerName # more stuff
</VirtualHost>
<VirtualHost DocumentRoof /u/apache/b
ServerName # more stuff
</VirtualHost>
However, this no longer works, apparently because DNS lookup does not work after NAT translation. To avoid DNS lookup, I changed these entries to
<VirtualHost 10.10.10.2>
DocumentRoot /u/apache/a
ServerName # more stuff
</VirtualHost>
<VirtualHost 10.10.10.2>
DocumentRoof /u/apache/b
ServerName # more stuff
</VirtualHost>
The 10.10.10.2 is the internal, translated IP address. Visits to works, but visits to are mapped to Suggestions?
Any assistance will be greatly appreciated.
Best,
Christopher
NameVirtualHost 209.220.45.204
<VirtualHost DocumentRoot /u/apache/a
ServerName # more stuff
</VirtualHost>
<VirtualHost DocumentRoof /u/apache/b
ServerName # more stuff
</VirtualHost>
However, this no longer works, apparently because DNS lookup does not work after NAT translation. To avoid DNS lookup, I changed these entries to
<VirtualHost 10.10.10.2>
DocumentRoot /u/apache/a
ServerName # more stuff
</VirtualHost>
<VirtualHost 10.10.10.2>
DocumentRoof /u/apache/b
ServerName # more stuff
</VirtualHost>
The 10.10.10.2 is the internal, translated IP address. Visits to works, but visits to are mapped to Suggestions?
Any assistance will be greatly appreciated.
Best,
Christopher