On Mon, 10 Nov 2008, Michael Mansour wrote:
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?
First, can you confirm that https://site.example.local works locally
and https://site.example.com works externally (I suspect that you will
need two certificates) ?
If the content is the same, can you redirect everyone to
https://site.example.com ?
--
Dr. Andrew C. Aitchison Computer Officer, DPMMS, Cambridge
[EMAIL PROTECTED] http://www.dpmms.cam.ac.uk/~werdna