View previous topic :: View next topic |
Author |
Message |
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Fri Jun 27, 2003 3:55 pm Post subject: Apache local/remote |
|
|
Can I get apache to respond differently to local users (192.168.0.X) than to remote users. Basically all I want to change is the servername as currently things only work either locally or remotely as the servername remotely has to be www.mydomain.com where locally it needs to be machinename.mydomain.com as www.mydomain.com resolves to my NAT router and as it tries to access it from the inside gets the routers config web page instead of the page located inside my network on my server.
Cheers.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
devon l33t
Joined: 23 Jun 2003 Posts: 943
|
Posted: Fri Jun 27, 2003 5:06 pm Post subject: |
|
|
Would this not work?
Code: |
NameVirtualHost *
<VirtualHost IP>
DocumentRoot /some/place
ServerName www.mydomain.com
options...
</VirtualHost>
<VirtualHost IP>
DocumentRoot /some/place
Servername machinename.mydomain.com
options...
</VirtualHost> |
|
|
Back to top |
|
|
puggy Bodhisattva
Joined: 28 Feb 2003 Posts: 1992 Location: Oxford, UK
|
Posted: Fri Jun 27, 2003 5:11 pm Post subject: |
|
|
This looks more complicated than anything I've done in apache (not much) so far. I'll get back to you after I've done some RTFMing.
Cheers.
Puggy _________________ Where there's open source , there's a way. |
|
Back to top |
|
|
|