Hi,
Quote:
Also, better use: Code:
RewriteCond %{REQUEST_URI} ^/123(.*)$ And I don't understand the last rewrite rule after the proxy stuff. Quote:
Regards |
2 Attachment(s)
Now is my configuration like this:
My proxy: 192.0.0.0 (DMZ) My httpd.conf AddDefaultCharset utf-8 RewriteEngine On Options +FollowSymlinks RewriteCond %{REQUEST_URI} ^/123/(.*)$ RewriteCond %{REQUEST_URI} !^/123/f$ RewriteRule (.*) /123/f?p=100:1 [R] ProxyRequests Off ProxyPass /123/ http://192.0.1.1:88/ap/ ProxyPassReverse /123/ http://192.0.1.1:88/ap/ Now i think that this RewriteCond works, but there is still a problem. 1. When I write URL - proxy - https://192.0.0.0/123/ I become http://192.0.1.1:88/ap/ (my administrator console) - But I wont this URL -> https://192.0.1.1:88/ap/f?p=100:1 It's look that here, where is https, RewriteCond does not work. What to change ?? My proxy has to work with https. 2. When I write URL - proxy - http://192.0.0.0/123/ I become the right URL -> https://192.0.1.1:88/ap/f?p=100:1 But there is a problem 2.1 I become login, but it looks that something did not go true proxy. Picture 1 - the login page when she came true proxy. Picture 2 - the login page from application Where is here problem. Thanks for your time |
Quote:
Anyway, why don't you use https in the proxied url? Quote:
Quote:
You may try this: Code:
RewriteCond %{REQUEST_URI} ^/123(.*)$ |
Quote:
Quote:
|
LOGS
Proxy_ssl error [Fri Sep 02 10:30:13 2011] [debug] mod_proxy_http.c(56): proxy: HTTP: canonicalising URL //192.0.0.0:88/ap/f [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(1489): [client 192.0.0.0] proxy: http: found worker http://192.0.1.1/ap/ for http://192.0.1.1:88/ap/f?p=100:1, referer: http://192.0.1.1/123/f?p=100:1 [Fri Sep 02 10:30:13 2011] [debug] mod_proxy.c(988): Running scheme http handler (attempt 0) [Fri Sep 02 10:30:13 2011] [debug] mod_proxy_http.c(1924): proxy: HTTP: serving URL http://192.0.1.1:88/ap/f?p=100:1 [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(2045): proxy: HTTP: has acquired connection for (192.0.0.1) [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(2103): proxy: connecting http://192.0.1.1:88/ap/f?p=100:1 to 192.0.1.1:88 [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(2201): proxy: connected /ap/f?p=100:1 to 192.0.1.1:88 [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(2356): proxy: HTTP: fam 2 socket created to connect to 192.0.1.1 [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(2468): proxy: HTTP: connection complete to 192.0.1.1:88 (192.0.1.1) [Fri Sep 02 10:30:13 2011] [debug] mod_proxy_http.c(1701): proxy: start body send [Fri Sep 02 10:30:13 2011] [info] [client 192.0.0.0] (32)Broken pipe: core_output_filter: writing data to the network [Fri Sep 02 10:30:13 2011] [debug] mod_proxy_http.c(1790): proxy: end body send [Fri Sep 02 10:30:13 2011] [debug] proxy_util.c(2063): proxy: HTTP: has released connection for (192.0.1.1) [Fri Sep 02 10:30:13 2011] [info] [client 192.0.0.0] (32)Broken pipe: core_output_filter: writing data to the network Rewrite log 192.0.0.0 - - init rewrite engine with requested uri / (3) applying pattern '(.*)' to uri '/' init rewrite engine with requested uri /error/HTTP_FORBIDDEN.html.var applying pattern '(.*)' to uri '/error/HTTP_FORBIDDEN.html.var' RewriteCond: input='/error/HTTP_FORBIDDEN.html.var' pattern='^/123/(.*)$' => not-matched (1) pass through /error/HTTP_FORBIDDEN.html.var init rewrite engine with requested uri /123/ applying pattern '(.*)' to uri '/123/' RewriteCond: input='/123/' pattern='^/123/(.*)$' => matched RewriteCond: input='/123/' pattern='!^/123/f$' => matched rewrite '/123/' -> '/123/f?p=100:1' split uri=/123/f?p=100:1 -> uri=/123/f, args=p=100:1 explicitly forcing redirect with http://192.0.0.0/123/f http://192.0.0.0/alis/f for redirect redirect to http://192.0.0.0/123/f?p=1000:1 [REDIRECT/302] RewriteCond: input='/i/themes/theme_2/theme_3_1.css' pattern='^/123/(.*)$' => not-matched (2) init rewrite engine with requested uri /error/contact.html.var (1) pass through /error/contact.html.var (2) init rewrite engine with requested uri /123/f (3) applying pattern '(.*)' to uri '/123/f' (4) RewriteCond: input='/123/f' pattern='^/123/(.*)$' => matched (4) RewriteCond: input='/123/f' pattern='!^/123/f$' => not-matched (1) pass through /123/f |
Quote:
Quote:
Code:
RewriteCond %{HTTPS} off Code:
RewriteCond %{REQUEST_URI} ^/123/(.*)$ |
Quote:
My mistake when writting - -> http://192.0.1.1:88/ap/f?p=100:1 Quote:
Quote:
Any idea about problem I canlogin, but it looks that something did not go true proxy. Picture 1 - the login page when she came true proxy. Picture 2 - the login page from application Where is here problem. |
Quote:
You should read mod_rewrite documentation and especially the use of regexes. Quote:
Check the logs in both apache and the backend server and see why is this happening. |
Quote:
It looks that I only become true proxy html page, without connection ... Quote:
|
Have anyone Idea how to set sercured proxy server ??
Please help |
All times are GMT -5. The time now is 05:00 PM. |