SCIENTIFIC-LINUX-USERS Archives

November 2008

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Michael Mansour <[log in to unmask]>
Reply To:
Michael Mansour <[log in to unmask]>
Date:
Mon, 10 Nov 2008 15:51:06 +1100
Content-Type:
text/plain
Parts/Attachments:
text/plain (44 lines)
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.

ATOM RSS1 RSS2