/ Zope / Apsis / Pound Mailing List / Archive / 2007 / 2007-04 / redirect https request to anothe https web server

[ << ] [ >> ]

[ ANNOUNCE: Pound - reverse proxy and load balancer ... ] [ error message / Mike Ellery ... ]

redirect https request to anothe https web server
Mihai Costache <mihai.costache(at)avangate.com>
2007-04-04 19:12:44 [ SNIP ]
  
hi list,


in the relocate process of one of my web servers that support https
request i have a problem: 
  - so until then new IP (of new server)  for web server host are
propagated over the ineternet i need to do some redirect of https
requests sended to old IP because of DNS caching  ... i need that ...
because the site is accessed with https:// all time ... and not with
http://

can i do that with pound ? or i must to digging on apache side or other
software side ?


thanks

Attachments:  
text.html text/html 781 Bytes

Re: [Pound Mailing List] redirect https request to anothe https web server
Robert Segall <roseg(at)apsis.ch>
2007-04-05 15:31:25 [ SNIP ]
On Wed, 2007-04-04 at 20:12 +0300, Mihai Costache wrote:
>   
> hi list,
> 
> 
> in the relocate process of one of my web servers that support https
> request i have a problem: 
>   - so until then new IP (of new server)  for web server host are
> propagated over the ineternet i need to do some redirect of https
> requests sended to old IP because of DNS caching  ... i need that ...
> because the site is accessed with https:// all time ... and not with
> http://
> 
> can i do that with pound ? or i must to digging on apache side or other
> software side ?

See the Redirect configuration directive.
-- 
Robert Segall
Apsis GmbH
Postfach, Uetikon am See, CH-8707
Tel: +41-44-920 4904


Re: [Pound Mailing List] redirect https request to anothe https web server
Mihai Costache <mihai.costache(at)avangate.com>
2007-04-17 19:13:45 [ SNIP ]
i have tried with tthe following configuration but i have this error
"The service is not available. Please try again later."

pound 2.3

---- snip ------------
ListenHTTP
        Address 192.168.5.55
        Port    80
        Client  10
End
ListenHTTPS
        Address 192.168.5.55
        Port    443
        Cert    "/usr/local/pound/etc/cert.pem"
        Client  20
End
Service
        HeadRequire     "Host:.*mydesk.companylan.local.*"
        Url             "http://mydesk.companylan.local"
        Redirect        "http://www.somesite.com"
End
Service
        HeadRequire     "Host:.*mydesk.companylan.local.*"
        Url             "https://mydesk.companylan.local*"
        Redirect        "https://www.somesite.com"
End
-------------- snip -----------


thanks

On Thu, 2007-04-05 at 15:31 +0200, Robert Segall wrote:

> On Wed, 2007-04-04 at 20:12 +0300, Mihai Costache wrote:
> >   
> > hi list,
> > 
> > 
> > in the relocate process of one of my web servers that support https
> > request i have a problem: 
> >   - so until then new IP (of new server)  for web server host are
> > propagated over the ineternet i need to do some redirect of https
> > requests sended to old IP because of DNS caching  ... i need that ...
> > because the site is accessed with https:// all time ... and not with
> > http://
> > 
> > can i do that with pound ? or i must to digging on apache side or other
> > software side ?
> 
> See the Redirect configuration directive.
> -- 
> Robert Segall
> Apsis GmbH
> Postfach, Uetikon am See, CH-8707
> Tel: +41-44-920 4904
> 
> 

Attachments:  
text.html text/html 3562 Bytes

RE: [Pound Mailing List] redirect https request to anothe https web server
"John Snowdon" <j.p.snowdon(at)newcastle.ac.uk>
2007-04-18 09:16:55 [ SNIP ]
The configuration is per listener; try this:

ListenHTTP
        Address 192.168.5.55
        Port    80
        Client  10
	  Service
			HeadRequire
"Host:.*mydesk.companylan.local.*"
			Redirect        "http://www.somesite.com"
	  End
End


ListenHTTPS
        Address 192.168.5.55
        Port    443
        Cert    "/usr/local/pound/etc/cert.pem"
        Client  20
	  Service
        		HeadRequire
"Host:.*mydesk.companylan.local.*"
		      Redirect        "https://www.somesite.com"
	  End
End

PS, you don't need the URL match line if you're just matching against
the hostname. You would only need to use it if you wanted part of your
site to go to one backend, and the rest to go to another, e.g.

ListenHTTP
        Address 192.168.5.55
        Port    80
        Client  10
	  Service
		HeadRequire
"Host:.*mydesk.companylan.local.*"
		URL			"^/staticfiles"
		Redirect
"http://staticfileserver.companylan.local"
	  End
	  Service
		HeadRequire
"Host:.*mydesk.companylan.local.*"
		Redirect		"http://www.somesite.com"
	  End
End

Hope that helps

-John

 John Snowdon - IT Support Specialist
-==========================================-
 School of Medical Education Development 
 Faculty of Medical Sciences Computing
 University of Newcastle
 Email : j.p.snowdon(at)ncl.ac.uk


>-----Original Message-----
>From: Mihai Costache [mailto:mihai.costache(at)avangate.com] 
>Sent: 17 April 2007 18:14
>To: pound(at)apsis.ch
>Subject: Re: [Pound Mailing List] redirect https request to 
>anothe https web server
>
>
>
>i have tried with tthe following configuration but i have this error
>"The service is not available. Please try again later."
>
>pound 2.3
>
>---- snip ------------
>ListenHTTP
>        Address 192.168.5.55
>        Port    80
>        Client  10
>End
>ListenHTTPS
>        Address 192.168.5.55
>        Port    443
>        Cert    "/usr/local/pound/etc/cert.pem"
>        Client  20
>End
>Service
>        HeadRequire     "Host:.*mydesk.companylan.local.*"
>        Url             "http://mydesk.companylan.local"
>        Redirect        "http://www.somesite.com"
>End
>Service
>        HeadRequire     "Host:.*mydesk.companylan.local.*"
>        Url             "https://mydesk.companylan.local*"
>        Redirect        "https://www.somesite.com"
>End
>-------------- snip -----------
>
>
>thanks
>
>On Thu, 2007-04-05 at 15:31 +0200, Robert Segall wrote:
>
>> On Wed, 2007-04-04 at 20:12 +0300, Mihai Costache wrote:
>> >   
>> > hi list,
>> > 
>> > 
>> > in the relocate process of one of my web servers that support https
>> > request i have a problem: 
>> >   - so until then new IP (of new server)  for web server host are
>> > propagated over the ineternet i need to do some redirect of https
>> > requests sended to old IP because of DNS caching  ... i 
>need that ...
>> > because the site is accessed with https:// all time ... 
>and not with
>> > http://
>> > 
>> > can i do that with pound ? or i must to digging on apache 
>side or other
>> > software side ?
>> 
>> See the Redirect configuration directive.
>> -- 
>> Robert Segall
>> Apsis GmbH
>> Postfach, Uetikon am See, CH-8707
>> Tel: +41-44-920 4904
>> 
>> 
>
>
>-- 
>To unsubscribe send an email with subject 'unsubscribe' to 
>pound(at)apsis.ch.
>Please contact roseg(at)apsis.ch for questions.
>http://www.apsis.ch/pound/pound_list/archive/2007/2007-04/11757
06764000/1176830025000

RE: [Pound Mailing List] redirect https request to anothe https web server
Mihai Costache <mihai.costache(at)avangate.com>
2007-04-18 09:54:27 [ SNIP ]
thanks for help

another thing:
can i show some temporary page like "this site is under a short
maintenance" with pound  ?


On Wed, 2007-04-18 at 08:16 +0100, John Snowdon wrote:

> The configuration is per listener; try this:
> 
> ListenHTTP
>         Address 192.168.5.55
>         Port    80
>         Client  10
> 	  Service
> 			HeadRequire
> "Host:.*mydesk.companylan.local.*"
> 			Redirect        "http://www.somesite.com"
> 	  End
> End
> 
> 
> ListenHTTPS
>         Address 192.168.5.55
>         Port    443
>         Cert    "/usr/local/pound/etc/cert.pem"
>         Client  20
> 	  Service
>         		HeadRequire
> "Host:.*mydesk.companylan.local.*"
> 		      Redirect        "https://www.somesite.com"
> 	  End
> End
> 
> PS, you don't need the URL match line if you're just matching against
> the hostname. You would only need to use it if you wanted part of your
> site to go to one backend, and the rest to go to another, e.g.
> 
> ListenHTTP
>         Address 192.168.5.55
>         Port    80
>         Client  10
> 	  Service
> 		HeadRequire
> "Host:.*mydesk.companylan.local.*"
> 		URL			"^/staticfiles"
> 		Redirect
> "http://staticfileserver.companylan.local"
> 	  End
> 	  Service
> 		HeadRequire
> "Host:.*mydesk.companylan.local.*"
> 		Redirect		"http://www.somesite.com"
> 	  End
> End
> 
> Hope that helps
> 
> -John
> 
>  John Snowdon - IT Support Specialist
> -==========================================-
>  School of Medical Education Development 
>  Faculty of Medical Sciences Computing
>  University of Newcastle
>  Email : j.p.snowdon(at)ncl.ac.uk
> 
> 
> >-----Original Message-----
> >From: Mihai Costache [mailto:mihai.costache(at)avangate.com] 
> >Sent: 17 April 2007 18:14
> >To: pound(at)apsis.ch
> >Subject: Re: [Pound Mailing List] redirect https request to 
> >anothe https web server
> >
> >
> >
> >i have tried with tthe following configuration but i have this error
> >"The service is not available. Please try again later."
> >
> >pound 2.3
> >
> >---- snip ------------
> >ListenHTTP
> >        Address 192.168.5.55
> >        Port    80
> >        Client  10
> >End
> >ListenHTTPS
> >        Address 192.168.5.55
> >        Port    443
> >        Cert    "/usr/local/pound/etc/cert.pem"
> >        Client  20
> >End
> >Service
> >        HeadRequire     "Host:.*mydesk.companylan.local.*"
> >        Url             "http://mydesk.companylan.local"
> >        Redirect        "http://www.somesite.com"
> >End
> >Service
> >        HeadRequire     "Host:.*mydesk.companylan.local.*"
> >        Url             "https://mydesk.companylan.local*"
> >        Redirect        "https://www.somesite.com"
> >End
> >-------------- snip -----------
> >
> >
> >thanks
> >
> >On Thu, 2007-04-05 at 15:31 +0200, Robert Segall wrote:
> >
> >> On Wed, 2007-04-04 at 20:12 +0300, Mihai Costache wrote:
> >> >   
> >> > hi list,
> >> > 
> >> > 
> >> > in the relocate process of one of my web servers that support https
> >> > request i have a problem: 
> >> >   - so until then new IP (of new server)  for web server host are
> >> > propagated over the ineternet i need to do some redirect of https
> >> > requests sended to old IP because of DNS caching  ... i 
> >need that ...
> >> > because the site is accessed with https:// all time ... 
> >and not with
> >> > http://
> >> > 
> >> > can i do that with pound ? or i must to digging on apache 
> >side or other
> >> > software side ?
> >> 
> >> See the Redirect configuration directive.
> >> -- 
> >> Robert Segall
> >> Apsis GmbH
> >> Postfach, Uetikon am See, CH-8707
> >> Tel: +41-44-920 4904
> >> 
> >> 
> >
> >
> >-- 
> >To unsubscribe send an email with subject 'unsubscribe' to 
> >pound(at)apsis.ch.
> >Please contact roseg(at)apsis.ch for questions.
> >http://www.apsis.ch/pound/pound_list/archive/2007/2007-04/11757
> 06764000/1176830025000
> 

Attachments:  
text.html text/html 8728 Bytes

Re: [Pound Mailing List] redirect https request to anothe https web server
Stefan Lambrev <stefan.lambrev(at)sun-fish.com>
2007-04-18 10:21:12 [ SNIP ]
Hi,

Mihai Costache wrote:
> thanks for help
>
> another thing:
> can i show some temporary page like "this site is under a short
> maintenance" with pound  ?
>
>   
It really depends on your pound version.
I'm pretty sure "man pound" will answer this question!
Look for error pages and emergency backends.
> On Wed, 2007-04-18 at 08:16 +0100, John Snowdon wrote:
>
>   
>> The configuration is per listener; try this:
>>
>> ListenHTTP
>>         Address 192.168.5.55
>>         Port    80
>>         Client  10
>> 	  Service
>> 			HeadRequire
>> "Host:.*mydesk.companylan.local.*"
>> 			Redirect        "http://www.somesite.com"
>> 	  End
>> End
>>
>>
>> ListenHTTPS
>>         Address 192.168.5.55
>>         Port    443
>>         Cert    "/usr/local/pound/etc/cert.pem"
>>         Client  20
>> 	  Service
>>         		HeadRequire
>> "Host:.*mydesk.companylan.local.*"
>> 		      Redirect        "https://www.somesite.com"
>> 	  End
>> End
>>
>> PS, you don't need the URL match line if you're just matching against
>> the hostname. You would only need to use it if you wanted part of your
>> site to go to one backend, and the rest to go to another, e.g.
>>
>> ListenHTTP
>>         Address 192.168.5.55
>>         Port    80
>>         Client  10
>> 	  Service
>> 		HeadRequire
>> "Host:.*mydesk.companylan.local.*"
>> 		URL			"^/staticfiles"
>> 		Redirect
>> "http://staticfileserver.companylan.local"
>> 	  End
>> 	  Service
>> 		HeadRequire
>> "Host:.*mydesk.companylan.local.*"
>> 		Redirect		"http://www.somesite.com"
>> 	  End
>> End
>>
>> Hope that helps
>>
>> -John
>>
>>  John Snowdon - IT Support Specialist
>> -==========================================-
>>  School of Medical Education Development 
>>  Faculty of Medical Sciences Computing
>>  University of Newcastle
>>  Email : j.p.snowdon(at)ncl.ac.uk
>>
>>
>>     
>>> -----Original Message-----
>>> From: Mihai Costache [mailto:mihai.costache(at)avangate.com] 
>>> Sent: 17 April 2007 18:14
>>> To: pound(at)apsis.ch
>>> Subject: Re: [Pound Mailing List] redirect https request to 
>>> anothe https web server
>>>
>>>
>>>
>>> i have tried with tthe following configuration but i have this error
>>> "The service is not available. Please try again later."
>>>
>>> pound 2.3
>>>
>>> ---- snip ------------
>>> ListenHTTP
>>>        Address 192.168.5.55
>>>        Port    80
>>>        Client  10
>>> End
>>> ListenHTTPS
>>>        Address 192.168.5.55
>>>        Port    443
>>>        Cert    "/usr/local/pound/etc/cert.pem"
>>>        Client  20
>>> End
>>> Service
>>>        HeadRequire     "Host:.*mydesk.companylan.local.*"
>>>        Url             "http://mydesk.companylan.local"
>>>        Redirect        "http://www.somesite.com"
>>> End
>>> Service
>>>        HeadRequire     "Host:.*mydesk.companylan.local.*"
>>>        Url             "https://mydesk.companylan.local*"
>>>        Redirect        "https://www.somesite.com"
>>> End
>>> -------------- snip -----------
>>>
>>>
>>> thanks
>>>
>>> On Thu, 2007-04-05 at 15:31 +0200, Robert Segall wrote:
>>>
>>>       
>>>> On Wed, 2007-04-04 at 20:12 +0300, Mihai Costache wrote:
>>>>         
>>>>>   
>>>>> hi list,
>>>>>
>>>>>
>>>>> in the relocate process of one of my web servers that support https
>>>>> request i have a problem: 
>>>>>   - so until then new IP (of new server)  for web server host are
>>>>> propagated over the ineternet i need to do some redirect of https
>>>>> requests sended to old IP because of DNS caching  ... i 
>>>>>           
>>> need that ...
>>>       
>>>>> because the site is accessed with https:// all time ... 
>>>>>           
>>> and not with
>>>       
>>>>> http://
>>>>>
>>>>> can i do that with pound ? or i must to digging on apache 
>>>>>           
>>> side or other
>>>       
>>>>> software side ?
>>>>>           
>>>> See the Redirect configuration directive.
>>>> -- 
>>>> Robert Segall
>>>> Apsis GmbH
>>>> Postfach, Uetikon am See, CH-8707
>>>> Tel: +41-44-920 4904
>>>>
>>>>
>>>>         
>>> -- 
>>> To unsubscribe send an email with subject 'unsubscribe' to 
>>> pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>> http://www.apsis.ch/pound/pound_list/archive/2007/2007-04/11757
>>>       
>> 06764000/1176830025000
>>
>>     
>
>
>   

-- 
Best Wishes,
Stefan Lambrev
ICQ# 24134177


Re: [Pound Mailing List] redirect https request to anothe https web server
Mihai Costache <mihai.costache(at)avangate.com>
2007-04-18 10:32:47 [ SNIP ]
i use 2.3 version

thank for help


On Wed, 2007-04-18 at 11:21 +0300, Stefan Lambrev wrote:

> Hi,
> 
> Mihai Costache wrote:
> > thanks for help
> >
> > another thing:
> > can i show some temporary page like "this site is under a short
> > maintenance" with pound  ?
> >
> >   
> It really depends on your pound version.
> I'm pretty sure "man pound" will answer this question!
> Look for error pages and emergency backends.
> > On Wed, 2007-04-18 at 08:16 +0100, John Snowdon wrote:
> >
> >   
> >> The configuration is per listener; try this:
> >>
> >> ListenHTTP
> >>         Address 192.168.5.55
> >>         Port    80
> >>         Client  10
> >> 	  Service
> >> 			HeadRequire
> >> "Host:.*mydesk.companylan.local.*"
> >> 			Redirect        "http://www.somesite.com"
> >> 	  End
> >> End
> >>
> >>
> >> ListenHTTPS
> >>         Address 192.168.5.55
> >>         Port    443
> >>         Cert    "/usr/local/pound/etc/cert.pem"
> >>         Client  20
> >> 	  Service
> >>         		HeadRequire
> >> "Host:.*mydesk.companylan.local.*"
> >> 		      Redirect        "https://www.somesite.com"
> >> 	  End
> >> End
> >>
> >> PS, you don't need the URL match line if you're just matching against
> >> the hostname. You would only need to use it if you wanted part of your
> >> site to go to one backend, and the rest to go to another, e.g.
> >>
> >> ListenHTTP
> >>         Address 192.168.5.55
> >>         Port    80
> >>         Client  10
> >> 	  Service
> >> 		HeadRequire
> >> "Host:.*mydesk.companylan.local.*"
> >> 		URL			"^/staticfiles"
> >> 		Redirect
> >> "http://staticfileserver.companylan.local"
> >> 	  End
> >> 	  Service
> >> 		HeadRequire
> >> "Host:.*mydesk.companylan.local.*"
> >> 		Redirect		"http://www.somesite.com"
> >> 	  End
> >> End
> >>
> >> Hope that helps
> >>
> >> -John
> >>
> >>  John Snowdon - IT Support Specialist
> >> -==========================================-
> >>  School of Medical Education Development 
> >>  Faculty of Medical Sciences Computing
> >>  University of Newcastle
> >>  Email : j.p.snowdon(at)ncl.ac.uk
> >>
> >>
> >>     
> >>> -----Original Message-----
> >>> From: Mihai Costache [mailto:mihai.costache(at)avangate.com] 
> >>> Sent: 17 April 2007 18:14
> >>> To: pound(at)apsis.ch
> >>> Subject: Re: [Pound Mailing List] redirect https request to 
> >>> anothe https web server
> >>>
> >>>
> >>>
> >>> i have tried with tthe following configuration but i have this error
> >>> "The service is not available. Please try again later."
> >>>
> >>> pound 2.3
> >>>
> >>> ---- snip ------------
> >>> ListenHTTP
> >>>        Address 192.168.5.55
> >>>        Port    80
> >>>        Client  10
> >>> End
> >>> ListenHTTPS
> >>>        Address 192.168.5.55
> >>>        Port    443
> >>>        Cert    "/usr/local/pound/etc/cert.pem"
> >>>        Client  20
> >>> End
> >>> Service
> >>>        HeadRequire     "Host:.*mydesk.companylan.local.*"
> >>>        Url             "http://mydesk.companylan.local"
> >>>        Redirect        "http://www.somesite.com"
> >>> End
> >>> Service
> >>>        HeadRequire     "Host:.*mydesk.companylan.local.*"
> >>>        Url             "https://mydesk.companylan.local*"
> >>>        Redirect        "https://www.somesite.com"
> >>> End
> >>> -------------- snip -----------
> >>>
> >>>
> >>> thanks
> >>>
> >>> On Thu, 2007-04-05 at 15:31 +0200, Robert Segall wrote:
> >>>
> >>>       
> >>>> On Wed, 2007-04-04 at 20:12 +0300, Mihai Costache wrote:
> >>>>         
> >>>>>   
> >>>>> hi list,
> >>>>>
> >>>>>
> >>>>> in the relocate process of one of my web servers that support https
> >>>>> request i have a problem: 
> >>>>>   - so until then new IP (of new server)  for web server host are
> >>>>> propagated over the ineternet i need to do some redirect of https
> >>>>> requests sended to old IP because of DNS caching  ... i 
> >>>>>           
> >>> need that ...
> >>>       
> >>>>> because the site is accessed with https:// all time ... 
> >>>>>           
> >>> and not with
> >>>       
> >>>>> http://
> >>>>>
> >>>>> can i do that with pound ? or i must to digging on apache 
> >>>>>           
> >>> side or other
> >>>       
> >>>>> software side ?
> >>>>>           
> >>>> See the Redirect configuration directive.
> >>>> -- 
> >>>> Robert Segall
> >>>> Apsis GmbH
> >>>> Postfach, Uetikon am See, CH-8707
> >>>> Tel: +41-44-920 4904
> >>>>
> >>>>
> >>>>         
> >>> -- 
> >>> To unsubscribe send an email with subject 'unsubscribe' to 
> >>> pound(at)apsis.ch.
> >>> Please contact roseg(at)apsis.ch for questions.
> >>> http://www.apsis.ch/pound/pound_list/archive/2007/2007-04/11757
> >>>       
> >> 06764000/1176830025000
> >>
> >>     
> >
> >
> >   
> 
> -- 
> Best Wishes,
> Stefan Lambrev
> ICQ# 24134177
> 
> 

Attachments:  
text.html text/html 11794 Bytes

MailBoxer