In the meanwhile I have found the solution.

I didn't know that VirtualHost can be a name also, it is not required to
be an IP number.

So:

I have 2 <VirtualHost> directives (as it was suggested earlier):

<VirtualHost 192.168.0.1:80>
...
  ServerName linuxserver
...
</VirtualHost>

<VirtualHost externalname.domain.com:80>
...
  ServerName externalname.domain.com
...
</VirtualHost>

In the host table I have duplicated the rows, and there is one row for
internal, one row for external ServerName, with other data identical.

It is not enough to set the same ServerName on both virtualhosts, as at
the first rewrite rewrites the original servername in the URL to the
ServerName in the VirtualHost.

Example:
http://externalname.domain.com/page   -> 301 rewrite to 
http://linuxserver/page/

Maybe if I use the externalname as servername it works, but I like
better if I use internal names on the internal network.

Fery

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to