Hi,

I realise this may not be the best mailing list for this query, but if someone
knows...

The problem I have is, I have an Apache website running on:

http(s)://site.example.local

For my local subnet (which exists in .local), I have Apache setup to do:

Redirect / https://site.example.local

for http (port 80) connections, so when anyone types http://site.example.local
on the .local subnet they're redirected to the SSL website.

When accessing this site externally on port 80, I go to:

http://site1.example.com

and (via DNS and PAT rules on the firewall) get:

https://site.example.local

as the URL in the external Web browser, which obviously doesn't work. This
makes sense though because of my "Redirect / https://site.example.local entry"
in Apache.

How can I configure Apache to keep:

Redirect / https://site.example.local

for the .local subnet, while:

Redirect / https://site.example.com

for external subnets?

I have gone through Apache documents etc but can't find anything which helps.

Thanks.

Michael.

Reply via email to