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:
Dr Andrew C Aitchison <[log in to unmask]>
Reply To:
Dr Andrew C Aitchison <[log in to unmask]>
Date:
Mon, 10 Nov 2008 08:03:37 +0000
Content-Type:
TEXT/PLAIN
Parts/Attachments:
TEXT/PLAIN (51 lines)
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
[log in to unmask]	http://www.dpmms.cam.ac.uk/~werdna

ATOM RSS1 RSS2