LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (https://www.linuxquestions.org/questions/general-10/)
-   -   Apache problem with proxy and reverseproxy (https://www.linuxquestions.org/questions/general-10/apache-problem-with-proxy-and-reverseproxy-895242/)

sameone 08-03-2011 03:10 AM

Apache problem with proxy and reverseproxy
 
Hello

I have problem to set the right url to show in reverseproxy

Example:

ProxyPass /red/ http://11.11.1.1/school/f?p=2
ProxyPassReverse /red/ http://11.11.1.1/school/f?p=2
RewriteRule ^/red$ /red/ [R]

Request url ... is not allowed.


The problem is in f?p=2 exactly the ?


How to set url or rule

bathory 08-03-2011 12:52 PM

Hi,
Quote:

The problem is in f?p=2 exactly the ?
Well, I don't get exactly what you're trying to do, but I don't think you can proxy a URI like /red to a query string in the backend server.
Maybe this should do what you want:
Code:

RewriteEngine on
RewriteRule  ^/red$ http://11.11.1.1/school/f?p=2 [P,QSA]


sameone 08-04-2011 01:06 AM

Your idea did not work.

What I am trynig to do.

When user from outside would write in URL some IP number, then will be redirected to Proxy server (https)

MY Proxy server
Linux Suse 11
192.1.0.1


And then when I would go from outside to 88.10.1.1, then I will be redirected to 192.1.0.1 and when I would add /red/, I will come to sharepoint


And this works(only with this one I have a problem, because is ? in url and apache convert this to %3F) - http://www.asciitable.com/

ProxyPass /red/ http://11.11.1.1/school/f?p=2
ProxyPassReverse /red/ http://11.11.1.1/school/f?p=2
RewriteRule ^/red$ /red/ [R]

bathory 08-04-2011 02:20 AM

First of all you should ask a moderator to move this thread to the Server forum, where it will get more attention.

As I've told you I don't think this can work. mod_rewrite has the [NE] option to not convert special characters to hex, but it doesn't apply here.
You may proxy /red/ to /school/, so when a client visits http://192.168.0.1/red/f?p=2 it will get the correct url from the backend

sameone 08-04-2011 04:54 AM

How can I wrote that ?

Is this OK.

ProxyPass /red/ http://11.11.1.1/red/f?p=2
ProxyPassReverse /school/ http://11.11.1.1/school/f?p=2
RewriteRule ^/red$ /red/ [R]

bathory 08-04-2011 05:26 AM

No, I was thinking something like that:
Code:

ProxyPass /red/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/
RewriteRule ^/red$ /red/ [R]

So whatever is passed after the /red/ URI at the proxy will be passed to /school/ at the backend

sameone 08-04-2011 05:36 AM

It does not work

I also added AddDefaultCharset utf-8 and did not work


What else to do ?

bathory 08-04-2011 06:31 AM

Oups I've done a mistake
Quote:

ProxyPassReverse /school/ http://11.11.1.1/school/
It should be
Code:

ProxyPassReverse /red/ http://11.11.1.1/school/
Or maybe use the same for both, like:
Code:

ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/
RewriteRule ^/red$ /school/ [R]

The hex character for the "?" is not a utf problem. It's the way apache represents special characters in urls
Other than that I don't know what else you can do. Maybe you should google to find if it's possible to reverse proxy your application and how

sameone 08-04-2011 07:02 AM

Did not work.

I google and I didn't find the right stuff.


IF you have some idea, please

bathory 08-04-2011 09:03 AM

You can check the logs on both apache and the backend server and see what happens.

sameone 08-05-2011 12:38 AM

192.168.1.1 - firewall


acces.log
192.168.1.1 - - [05/Aug/2011:07:19:12 +0200] "GET / HTTP/1.1" 403 1017
192.168.1.1 - - [05/Aug/2011:07:19:20 +0200] "GET /apex/ HTTP/1.1" 404 1237


error.log
[Fri Aug 05 07:19:12 2011] [error] [client 192.168.1.1] Directory index forbidden by Options directive: /srv/www/htdocs/

sslrequesst.log
05/Aug/2011:07:19:12 +0200] 192.168.1.1 TLSv1 DHE-RSA-CAMELLIA256-SHA "GET / HTTP/1.1" 1017 "-" "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"
[05/Aug/2011:07:19:20 +0200] 192.168.1.1 TLSv1 DHE-RSA-CAMELLIA256-SHA "GET /apex/ HTTP/1.1" 1237 "-" "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"



I don't now, where to find backend log in linux suse server

bathory 08-05-2011 02:08 AM

The backend is the server you're trying to proxy (the one with the 11.11.1.1 IP)
What happens if you try to access apache on 192.168.0.1 from itself: http://192.1.0.1/school/?

sameone 08-05-2011 03:25 AM

Quote:

The backend is the server you're trying to proxy (the one with the 11.11.1.1 IP)
It's work.


Quote:

What happens if you try to access apache on 192.168.0.1 from itself: http://192.1.0.1/school/?
It's allso works.


This url(http://192.1.0.1/school/?) works from every computer, server,..

But not from proxy server

bathory 08-05-2011 03:43 AM

Quote:

The backend is the server you're trying to proxy (the one with the 11.11.1.1 IP)
It's work.
I know it works. Just ask to look at the logs to see what are the actual reverse proxy requests

Quote:

This url(http://192.1.0.1/school/?) works from every computer, server,..

But not from proxy server
Isn't the 192.1.0.1 the box running apache reverse proxy?
What other proxy you say?

sameone 08-05-2011 05:34 AM

My mistake

This url(http://192.1.0.1/school/? - is proxy server (192.1.0.1) and it gives the same error when I type this URL


Quote:

I know it works. Just ask to look at the logs to see what are the actual reverse proxy requests

What log I have to see. From my computer, when I go to http://11.11.1.1/red/f?p=2


thanks

bathory 08-05-2011 06:10 AM

I hope you don't actually using this URL http://192.1.0.1/school/? and say that is not working. I've used the question mark "?" because I was asking you...
You should try http://192.1.0.1/school/ and/or http://192.1.0.1/school/f?p=2 and see if it brings up the correct content from the backend.

Quote:

What log I have to see. From my computer, when I go to http://11.11.1.1/red/f?p=2
How should I know what logs does the application on 11.11.11.1 create?
And please stop mixing URLs. Why it's now http://11.11.1.1/red/f?p=2 and not http://11.11.1.1/school/f?p=2 as in your 1st post

sameone 08-05-2011 06:21 AM

Quote:

You should try http://192.1.0.1/school/ and/or http://192.1.0.1/school/f?p=2 and see if it brings up the correct content from the backend.

http://192.1.0.1/school/ it work

http://192.1.0.1/school/f?p=2 it not work

Quote:

And please stop mixing URLs. Why it's now http://11.11.1.1/red/f?p=2 and not http://11.11.1.1/school/f?p=2 as in your 1st post
There are the same, it's only importait, the f?p=2 , because of ?


I don't thing the log of my aplication on http://11.11.1.1/school/f?p=2 is importation. Because I don't get to It. The url is not valid, because of ?


Thanks for your time

bathory 08-05-2011 07:23 AM

Doh. If,
Quote:

http://192.1.0.1/school/ it work
works, then the same goes for any URL under /school/
I've used apache as reverse proxy for a variety of applications, with URLs containing any of ?,+,# and so on, without any problem.
I'll give you the general config to reverse proxy a resource
Code:

RewriteEngine On
RewriteRule ^/school$ /school/

ProxyPreserveHost On  #This maybe is not needed if you use IPs
ProxyRequests Off
ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/

If it still doesn't work, I'm afraid I cannot do anything else.
Perhaps you should contact the developer or the admin of the app in the backend server and ask for assistance

Regards

sameone 08-08-2011 02:39 AM

Hello

Quote:

RewriteEngine On
RewriteRule ^/school$ /school/

ProxyPreserveHost On #This maybe is not needed if you use IPs
ProxyRequests Off
ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/
That's works.

But I don't won't to use this url because this url (http://11.11.1.1/school/) bring me to admin login and all administration, I wont that users only see and work
with http://11.11.1.1/school/f?p=2. But here is the problem with ?

I search forum and I haven't found solution.

Thanks for your time and I hope that you have some new ideas

bathory 08-08-2011 04:34 AM

Quote:

That's works.
If rev. proxy works, then http://192.1.0.1/school/f?p=2 should also work (you'll be redirected to the correct http://11.11.1.1/school/f?p=2)
If you don't want users to visit the /school/ URI then try the following rewrite instead the old one
Code:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/school/$
RewriteRule (.*) /school/f?p=2 [R]


sameone 08-08-2011 07:21 AM

Is this OK ?

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/school/$
RewriteRule (.*) /school/f?p=2 [R]
ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/

bathory 08-08-2011 08:16 AM

Quote:

Is this OK ?
Did you try it? You should try it and see if it works the way you want...

sameone 08-09-2011 12:40 AM

Quote:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/school/$
RewriteRule (.*) /school/f?p=2 [R]
ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/
Yes this works. But this URL (http://11.11.1.1/school/) bring me to admin login and all administration. I most come to http://11.11.1.1/school/f?p=2


when I change this
ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/

to this
ProxyPass /school/ http://11.11.1.1/school/f?p=2
ProxyPassReverse /school/ http://11.11.1.1/school/f?p=2

I become the same error "Request URL is not allowed"

bathory 08-09-2011 03:09 AM

Quote:

Yes this works. But this URL (http://11.11.1.1/school/) bring me to admin login and all administration. I most come to http://11.11.1.1/school/f?p=2
This is what the rewrite in apache is supposed to do: rewrites /school/ to /school/f?p=2 so the request to the reverse proxy is correct.
Anyway as a last attempt, try the following:
Code:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/school(.*)$
RewriteCond %{REQUEST_URI} !^/school/f$
RewriteRule (.*) /school/f?p=2 [R]

ProxyRequests Off
ProxyPass /school/ http://11.11.1.1/school/
ProxyPassReverse /school/ http://11.11.1.1/school/

If it doesn't do what you want, I'm afraid I cannot be of more help

Regards

sameone 08-09-2011 04:29 AM

Yes this works. But this bring me to admin login and all administration. (like previously)

It posible that my rewrite isn't working. How can I test that ?

Thanks

bathory 08-09-2011 04:54 AM

To see if rewrite works comment out the previous rewrite and proxy stuff and use just:
Code:

RewriteEngine On
RewriteCond %{REQUEST_URI} ^/school/$
RewriteRule (.*) /index.html [R]

This way http://192.1.0.1/school will be rewritten to http://192.1.0.1/index.html
You can also enable rewrite logging adding:
Code:

RewriteLogLevel 9
RewriteLog rewrite_log


sameone 08-09-2011 04:56 AM

Now I think I know where is the problem.

On my proxy server I have enabled https.


Now I enable http and tray again. End it's work, almost.
Now when I write url on my private computer http://11.11.1.1/school/ I go to desired page. But it looks like something is wrong. Why ? Because I can not login to interface, It looks like its not responding (example: when I click button Login nothing happend).


Problem 1: http works, https don't works
Problem 2: Problem with login interface (http) - not responding

sameone 08-09-2011 05:32 AM

That are the logs:

LogLevel debug
ErrorLog /var/log/proxy/proxyssl_error_log
CustomLog /var/log/proxy/proxyssl_access_log combined

RewriteLogLevel 9
RewriteLog /var/log/proxy/rewrite_log



proxyssl_error_log
.........
...........
[Tue Aug 09 12:16:59 2011] [debug] proxy_util.c(2201): proxy: connected /apex/f?p=220:1 to 192.1.1.1:88
[Tue Aug 09 12:16:59 2011] [debug] proxy_util.c(2356): proxy: HTTP: fam 2 socket created to connect to 192.1.1.1
[Tue Aug 09 12:16:59 2011] [debug] proxy_util.c(2468): proxy: HTTP: connection complete to 192.1.1.1:88 (192.1.1.1)
[Tue Aug 09 12:16:59 2011] [error] [client 192.1.1.1] File does not exist: /srv/www/htdocs/i, referer: http://11.11.1.1/school/f?p=220:1
[Tue Aug 09 12:16:59 2011] [error] [client 192.1.1.1] File does not exist: /srv/www/htdocs/i, referer: http://11.11.1.1/school/f?p=220:1


proxyssl_access_log combined
.......
.......
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] "GET /i/themes/theme_2/bottom_bar-0-1.png HTTP/1.1" 404 1170 "http://11.11.1.1/school/f?p=220:1" "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] "GET /i/themes/theme_2/bottom_bar-0-3.png HTTP/1.1" 404 1170 "http://11.11.1.1/school/f?p=220:1" "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] "GET /apex/f?p=220:1 HTTP/1.1" 200 7002 "http://11.11.1.1/school/f?p=220:1" "Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0"


rewrite_log

192.1.1.1- firewall 11.11.1.1. - dmz
........
........
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] [11.11.1.1/sid#7fcbe33a3850][rid#7fcbe36d3958/subreq] (2) init rewrite engine with requested uri /error/include/bottom.html
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] [11.11.1.1/sid#7fcbe33a3850][rid#7fcbe36d3958/subreq] (1) pass through /error/include/bottom.html
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] [11.11.1.1/sid#7fcbe33a3850][rid#7fcbe36d1948/subreq] (2) init rewrite engine with requested uri /error/contact.html.var
192.1.1.1 - - [09/Aug/2011:12:16:59 +0200] [11.11.1.1/sid#7fcbe33a3850][rid#7fcbe36d1948/subreq] (1) pass through /error/contact.html.var

bathory 08-09-2011 05:32 AM

Quote:

Problem 1: http works, https don't works
If you want https to work change http to https in the proxy directives above, or use another rewrite to turn http to https
Quote:

Problem 2: Problem with login interface (http) - not responding
You should ask the developer of that application.

Regards

sameone 09-01-2011 02:24 AM

Hello

I am back again.

My proxy: 192.0.0.0 (DMZ)

My httpd.conf

AddDefaultCharset utf-8

RewriteEngine On

Options +FollowSymlinks


RewriteCond %{HTTP} ^on$

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/

RewriteRule ^/123/(.*) http://192.0.1.1:88/ap/ [L,R]


And now where is my problem

When I write URL - proxy - http://192.0.0.0/123/ I become http://192.0.1.1:88/ap/ (my administrator console)

But I wont this URL -> http://192.0.1.1:88/ap/f?p=100:1

It looks that my rewrite rule does not work ??


Thanks in advance

bathory 09-01-2011 08:33 AM

Hi,

Quote:

RewriteCond %{HTTP} ^on$
The above is wrong. There is no such variable. I guess that's why rewrite is not working
Also, better use:
Code:

RewriteCond %{REQUEST_URI} ^/123(.*)$
to take care of the trailing slash "/"
And I don't understand the last rewrite rule after the proxy stuff.
Quote:

RewriteRule ^/123/(.*) http://192.0.1.1:88/ap/ [L,R]
After fixing the url with mod_rewrite, the proxy should take control for the rest.

Regards

sameone 09-02-2011 02:16 AM

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

bathory 09-02-2011 03:02 AM

Quote:

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 ??
I don't understand what you mean. If a request is done through https then it cannot be turned in http without a rewrite action from you, that is not happening here!
Anyway, why don't you use https in the proxied url?

Quote:

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
I've already told you to remove the trailing slash exactly for this reason

Quote:

I become login, but it looks that something did not go true proxy.
Huh, maybe you need ProxyPreserveHost On. This depends mostly on the backend application.

You may try this:
Code:

RewriteCond %{REQUEST_URI} ^/123(.*)$
RewriteCond %{REQUEST_URI} !^/123/f$
RewriteRule (.*) /123/f?p=100:1 [R]

ProxyPreserveHost On
ProxyRequests Off
ProxyPass /123/ https://192.0.1.1:88/ap/
ProxyPassReverse /123/ https://192.0.1.1:88/ap/


sameone 09-02-2011 03:58 AM

Quote:

why don't you use https in the proxied url?
Because application does not work on https


Quote:

When I write URL - proxy - http://192.0.0.0/123/ I become the right URL -> http://192.0.1.1:88/ap/f?p=100:1
I've already told you to remove the trailing slash exactly for this reason
Where I have to remove slash ??

sameone 09-02-2011 04:11 AM

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

bathory 09-02-2011 05:00 AM

Quote:

Originally Posted by sameone (Post 4459473)
Because application does not work on https




Where I have to remove slash ??

How comes it doesn't work on https when you say
Quote:

But I wont this URL -> https://192.0.1.1:88/ap/f?p=100:1
If you want the initial request to be in https then before the other rewrite stuff, add:
Code:

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}

About the trailing slash. Remove this (in red):
Code:

RewriteCond %{REQUEST_URI} ^/123/(.*)$
I hope that it's clear now!

sameone 09-02-2011 05:56 AM

Quote:

How comes it doesn't work on https when you say
Quote:
But I wont this URL -> https://192.0.1.1:88/ap/f?p=100:1

My mistake when writting - -> http://192.0.1.1:88/ap/f?p=100:1


Quote:

RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}
Ok this work and convert http to https



Quote:

RewriteCond %{REQUEST_URI} ^/123/(.*)$
That only means url with http://192.0.0.0/123/ or without http://192.0.0.0/123


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.

bathory 09-02-2011 06:50 AM

Quote:

RewriteCond %{REQUEST_URI} ^/123/(.*)$
That only means url with http://192.0.0.0/123/ or without http://192.0.0.0/123
If you want both (with or without the /) to work, use my rewrite rule: REMOVE THE SLASH!!!
You should read mod_rewrite documentation and especially the use of regexes.

Quote:

I canlogin, but it looks that something did not go true proxy.
So, anything else works except the images in the login page?
Check the logs in both apache and the backend server and see why is this happening.

sameone 09-02-2011 07:00 AM

Quote:

So, anything else works except the images in the login page?
If It was so, then would be OK. I only become the login page. But login does not work. No response from button (LOGIN) and so on.

It looks that I only become true proxy html page, without connection ...



Quote:

Check the logs in both apache and the backend server and see why is this happening.
I send you my log. Did you find something ...

sameone 10-10-2011 04:38 AM

Have anyone Idea how to set sercured proxy server ??


Please help


All times are GMT -5. The time now is 09:59 AM.