Some requests are not proxied so I can't use PassProxy / http://realserver.domain.fr/ But I can use PassProxyReverse / http://realserver.domain.fr:for every proxied requests because the directory path is the same for both internal and external request
It works for me! Koen and Robert, thank you very much for this solution. Manu. Emmanuel.Leguy a écrit :
Hello, My config: proxy server: Apache 2.2 real server: Apache 1.3 (2.2 soon)I would like to reverse proxy requests to userdir (public_html) like that:http://proxy.domain.fr/~username --> http://realserver.domain.fr/~usernameThoose directives work for that particular 'username': PassProxy /~username http://realserver.domain.fr/~username PassProxyReverse /~username http://realserver.domain.fr/~username But i would like to generalized to all users: PassProxy /~(.*) http://realserver.domain.fr/~$1 PassProxyReverse /~(.*) http://realserver.domain.fr/~$1 But PassProxy and PassProxyReverse don't process regex... So I tried rewriting: RewriteEngine On RewriteRule ^/\~(.*) http://realserver.domain.fr/~$1 [proxy,last]But if the trailing slash is forgotten the realserver redirect the request:http://proxy.domain.fr/~username --> http://realserver.domain.fr/~usernameredirection to http://realserver.domain.fr/~username/ The real server is not visible from the internet so the request fails.The solution could be that the proxy server does the trailing slash redirection instead of the real server. But '~username' is not a directory for the proxy server so no trailing slash redirection is done...How to force the redirection on the proxy? Is there a solution to my problem? Thanx, Manu.
-- Emmanuel Leguy LIFL - UMR8022 CNRS - Bat M3 Tel: +33 3 28 77 85 32 USTL - Universite de Lille 1 Fax: +33 3 28 77 85 37 59655 VILLENEUVE D'ASCQ CEDEX - FRANCE mailto:Emmanuel.Leguy@xxxxxxx http://www.lifl.fr/ANNUAIRE/employee.php?login=leguye Ce mail est signe par un certificat X509 fourni par le CNRSLa verification de ce certificat peut etre faite a l'adresse suivante: http://igc.services.cnrs.fr/CNRS-Standard/recherche.html
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature