This forum has been moved here:
Helicon Tech Community Forum

Helicon Ape (Forum Locked Forum Locked)
 Helicon Tech : Helicon Ape
Subject Topic: mod_proxy an SSL
Author
Message |
Hajo
Newbie


Joined: 16 May 2011
Posts: 4
Posted: 16 May 2011 at 5:02am

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
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 17 May 2011 at 5:28am

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 Visit Vyacheslav's Homepage
 
Hajo
Newbie


Joined: 16 May 2011
Posts: 4
Posted: 26 May 2011 at 4:14am

thanks
It works!
Back to Top
 
Hajo
Newbie


Joined: 16 May 2011
Posts: 4
Posted: 08 June 2011 at 3:07am

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
 
Vyacheslav
Admin Group


Joined: 02 July 2008
Location: Ukraine
Posts: 1542
Posted: 08 June 2011 at 4:09am

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 Visit Vyacheslav's Homepage
 
Hajo
Newbie


Joined: 16 May 2011
Posts: 4
Posted: 14 June 2011 at 4:36am

Thanks

I mixed it and it works!

Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version