httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jason.wal...@nomadsoft.co.uk
Subject Re: [users@httpd] Fw: trying to get proxyPass working for server behind a firewall
Date Fri, 15 Aug 2003 11:25:15 GMT
apologies for all the html stuff, hopefully this one will read like text:


Hello all, 
apologies for posting this to the group, but I've just about exhausted 
every avenue possible. So, please - HELP! 

I have a server outside of my firewall which is running virtual hosts. One 
of the internal links does not work, I think it is due to it asking for 
absolute files as opposed to relative paths. 

I start getting file not found messages in the log file. 

I've included some logs and snippets from the conf file. All the modules 
appear to be loaded fine (hence the initial proxyPass to my internal 
server works). 
I have tinkered with RewriteRule but no success. 
Four situations are presented, only the final one works.

HELP :-( 

situation 1.
Can see initial screen, but when enter username password, get error. 

Error log file:
==============
[Fri Aug 15 10:22:53 2003] [error] [client 192.168.2.253] File does not 
exist: /internet/testing/Crap-app/logon.do 

access log file:
===============
192.168.2.253 - - [15/Aug/2003:10:22:50 +0100] "POST /Crap-app/logon.do 
HTTP/1.1" 404 306
192.168.2.253 - - [15/Aug/2003:10:22:52 +0100] "GET /Crap-app/logon.do 
HTTP/1.1" 404 306
192.168.2.253 - - [15/Aug/2003:10:22:53 +0100] "GET /Crap-app/logon.do 
HTTP/1.1" 404 306 

http conf file:
==============
<VirtualHost *>
   ServerAdmin webmaster@nomadsoft.com
   DocumentRoot "/internet/testing"
   ServerName test.com
   ErrorLog logs/test.com-error_log
   CustomLog logs/test.com-access_log common
   <Directory "/internet/testing">
               Options Indexes FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
ProxyPass /lev2/kiddGUI/redirect/ http://bad-server:7293/Crap-app/
ProxyPassReverse /lev2/kiddGUI/redirect/ http://bad-server:7293/Crap-app/
</VirtualHost> 

situation 2.
can get to logon page again, and yet again get errors once I enter 
username/password. In this situation, I try to rewrite the rule so that if 
the server is asking for /root as opposed to just root, then rewrite it to 
be what ProxyPass will expect. 

Error log file:
==============
[Fri Aug 15 10:28:34 2003] [error] [client 192.168.2.253] File does not 
exist: /internet/testing/lev2/kiddGUI/redirect/Crap-app/logon.do 

access log file:
=============== 

192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET /lev2/kiddGUI/redirect 
HTTP/1.1" 301 339
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/ HTTP/1.1" 302 261
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/index.jsp HTTP/1.1" 200 981
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/logon.jsp HTTP/1.1" 200 3610
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/app.css HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/app.js HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/app_list.js HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] "GET 
/lev2/kiddGUI/redirect/validation.js HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/shortcuts.js HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/tabs.js HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/images/logonpage_01.jpg HTTP/1.1" 304 0 
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/images/logonpage_02.jpg HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/images/logonpage_03.jpg HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/images/spacer.gif HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:30 +0100] "GET 
/lev2/kiddGUI/redirect/images/logonpage_04.jpg HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] "POST /Crap-app/logon.do 
HTTP/1.1" 404 306 

rewrite debug file:
================== 

192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (2) init rewrite engine with 
requested uri /lev2/kiddGUI/redirect
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (3) applying pattern '^/C(.*)' 
to uri '/lev2/kiddGUI/redirect'
192.168.2.253 - - [15/Aug/2003:10:28:29 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (1) pass through 
/lev2/kiddGUI/redirect
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (2) init rewrite engine with 
requested uri /Crap-app/logon.do
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (3) applying pattern '^/C(.*)' 
to uri '/Crap-app/logon.do'
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (2) rewrite /Crap-app/logon.do 
-> http://test.com/lev2/kiddGUI/redirect/Crap-app/logon.do
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (3) reduce 
http://test.com/lev2/kiddGUI/redirect/Crap-app/logon.do -> 
/lev2/kiddGUI/redirect/Crap-app/logon.do 
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (2) local path result: 
/lev2/kiddGUI/redirect/Crap-app/logon.do
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (2) prefixed with 
document_root to /internet/testing/lev2/kiddGUI/redirect/Crap-app/logon.do
192.168.2.253 - - [15/Aug/2003:10:28:34 +0100] 
[test.com/sid#8098164][rid#80a983c/initial] (1) go-ahead with 
/internet/testing/lev2/kiddGUI/redirect/Crap-app/logon.do [OK]

http conf file:
============== 

<VirtualHost *>
   ServerAdmin webmaster@nomadsoft.com
   DocumentRoot "/internet/testing"
   ServerName test.com
   ErrorLog logs/test.com-error_log
   CustomLog logs/test.com-access_log common
   <Directory "/internet/testing">
               Options Indexes FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
RewriteEngine on
RewriteLog      /tmp/rewritelog
RewriteLogLevel 4
RewriteRule     ^/C(.*) http://test.com/lev2/kiddGUI/redirect/C$1 

ProxyPass /lev2/kiddGUI/redirect/ http://bad-server:7293/Crap-app/
ProxyPassReverse /lev2/kiddGUI/redirect/ http://bad-server:7293/Crap-app/
</VirtualHost> 

Situation 3.
As situation 2 but added [P,L] after the rewrite rule in httpd.conf file:
RewriteRule     ^/C(.*) http://test.com/lev2/kiddGUI/redirect/C$1 [P,L] 

Situation 4.
This one works, it is to another server running in house code that uses 
relative paths, I suspect the other server is using absolute paths which 
is screwing me up. 

Error log file:
==============
No errors. 

access log file:
=============== 
192.168.2.253 - - [15/Aug/2003:10:40:15 +0100] "GET 
/lev2/images/clickHere.jpg HTTP/1.1" 304 -
192.168.2.253 - - [15/Aug/2003:10:40:17 +0100] "GET 
/lev2/good-app/redirect HTTP/1.1" 301 343
192.168.2.253 - - [15/Aug/2003:10:40:17 +0100] "GET 
/lev2/good-app/redirect/ HTTP/1.1" 304 0
192.168.2.253 - - [15/Aug/2003:10:40:17 +0100] "GET 
/lev2/good-app/redirect/job.php3 HTTP/1.1" 200 27651
192.168.2.253 - - [15/Aug/2003:10:40:25 +0100] "POST 
/lev2/good-app/redirect/job.php3 HTTP/1.1" 200 41317 

http conf file:
==============
<VirtualHost *>
   ServerAdmin webmaster@nomadsoft.com
   DocumentRoot "/internet/testing"
   ServerName test.com
   ErrorLog logs/test.com-error_log
   CustomLog logs/test.com-access_log common
   <Directory "/internet/testing">
               Options Indexes FollowSymLinks MultiViews
       AllowOverride None
       Order allow,deny
       Allow from all
   </Directory>
ProxyPass /lev2/good-app/redirect/ http://good-server/nmr/
ProxyPassReverse /lev2/good-app/redirect/ http://good-server/nmr/
</VirtualHost> 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message