This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
Helicon Ape
 Helicon Tech : Helicon Ape
Subject Topic: mod_proxy an SSL Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Hajo
Newbie
Newbie


Joined: 16 May 2011
Online Status: Offline
Posts: 4
Posted: 16 May 2011 at 5:02am | IP Logged Quote Hajo

Hi
if have the following configuration:

<Location />
ProxyPass http://www.domainB.ch/
ProxyPassReverse  https://www.domainB.ch/
ProxyPassReverseCookieDomain domainB.ch domainA.ch
</Location>

It works fine for http://www.domainA.ch/.....
What do I have to do, that https://www.domainA.ch is mapped to https://www.domainB.ch ?

Thanks for help
Back to Top View Hajo's Profile Search for other posts by Hajo
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 17 May 2011 at 5:28am | IP Logged Quote Vyacheslav

Hello.
Please try the following example:
Code:
# HTTP
<VirtualHost www.domainA.ch:80>
<Location />
ProxyPass http://www.domainB.ch/
ProxyPassReverse http://www.domainB.ch/
ProxyPassReverseCookieDomain domainB.ch domainA.ch
</Location>
</VirtualHost>

# HTTPS
<VirtualHost www.domainA.ch:443>
<Location />
ProxyPass https://www.domainB.ch/
ProxyPassReverse https://www.domainB.ch/
ProxyPassReverseCookieDomain domainB.ch domainA.ch
</Location>
</VirtualHost>


__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Hajo
Newbie
Newbie


Joined: 16 May 2011
Online Status: Offline
Posts: 4
Posted: 26 May 2011 at 4:14am | IP Logged Quote Hajo

thanks
It works!
Back to Top View Hajo's Profile Search for other posts by Hajo
 
Hajo
Newbie
Newbie


Joined: 16 May 2011
Online Status: Offline
Posts: 4
Posted: 08 June 2011 at 3:07am | IP Logged Quote Hajo

Hello
I have the requirement to
prevent some files (robots.txt) or directorys from proxy.
I tried
<VirtualHost www.domainA.ch:80>
<Location />
ProxyPass /temp !
ProxyPass http://www.domainB.ch/
ProxyPassReverse http://www.domainB.ch/
ProxyPassReverseCookieDomain domainB.ch domainA.ch
</Location>
</VirtualHost>

but it doesn't work.
Is there a solution?
Thanks for help
Back to Top View Hajo's Profile Search for other posts by Hajo
 
Vyacheslav
Admin Group
Admin Group


Joined: 02 July 2008
Location: Ukraine
Online Status: Offline
Posts: 1542
Posted: 08 June 2011 at 4:09am | IP Logged Quote Vyacheslav

Hello.
You may try to put the code into .htaccess files of the web-sites represented by VirtualHost directives.
For example, .htaccess file of domainA.ch would look as follows:
Code:
ProxyPass http://www.domainB.ch/
ProxyPassReverse http://www.domainB.ch/
ProxyPassReverseCookieDomain domainB.ch domainA.ch


Perhaps it would be easier to use mod_rewrite if you want to add conditions:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !robots\.txt [NC]
RewriteCond %{REQUEST_URI} !/temp [NC]
RewriteProxy (.*) http://www.domainB.ch/$1 [L]


See the documentation to get more examples.

__________________
Slavik Shynkarenko,
Helicon Tech.
Back to Top View Vyacheslav's Profile Search for other posts by Vyacheslav Visit Vyacheslav's Homepage
 
Hajo
Newbie
Newbie


Joined: 16 May 2011
Online Status: Offline
Posts: 4
Posted: 14 June 2011 at 4:36am | IP Logged Quote Hajo

Thanks

I mixed it and it works!

Back to Top View Hajo's Profile Search for other posts by Hajo
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You can vote in polls in this forum