Re: [users@httpd] RE [users@httpd] Re: Apache 2 on Suse 9.1 Reverse Proxy not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As a test, I have done the following:

On my laptop (client)
I have placed a host entry of:

www.company.com    <External-IP>

On the server, I modified the /etc/host file:

127.0.0.1      www.delexian.com    localhost

using my original settings:

I typed the URL: http://www.company.com/ocs/ on my laptop

At the end, I get an URL in the form of:

http://www.company.com/welcome/index.jsp

When I then try to type in http://www.company.com/ocs/welcome/index.jsp on my laptop

I get to the page that I want. 

Can anyone tell me where I should be looking at first? Since there is essentially two apache servers at work here.

One on port 80, redirecting to:

http://lucas.delexian.com:8009

The other on port 8009, which is Oracle Collab suite

Which reponds internally if I type in:

http://lucas.delexian.com:8009

The page displays, and put an URL of:

http://lucas.delexian.com:8009/welcome/index.jsp

Thanks for all the ideas so far.

Alex
--- Begin Message ---
> 2. Server responds with rewrite of URL:
> http://lucas.delexian.com/welcome/index.jsp
The server is making a reversproxy for the locations /ocs but not for /welcome

So i think you need 

<Location /welcome/>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLURLMap / /welcome/
ProxyHTMLURLMap /welcome /welcome
RequestHeader unset Accept-Encoding
</Location>

perhaps too

>Here you need to use ProxyPass /ocs ajp://lucas.delexian.com:8009
Is "ajp" as part of mod_ajp only avaible since Apache 2.2 ?

Greets

Oliver

-----Ursprüngliche Nachricht-----
Von: Joost de Heer [mailto:sanguis@xxxxxxxxx]
Gesendet: Mi 15.02.2006 00:37
An: alex.lei@xxxxxxxxxx
Cc: users@xxxxxxxxxxxxxxxx
Betreff: [users@httpd] Re: Apache 2 on Suse 9.1 Reverse Proxy not working
 
> 1. issue the following URL: http://lucas.delexian.com/ocs
> 2. Server responds with rewrite of URL:
> http://lucas.delexian.com/welcome/index.jsp
> 3. However, server message is:
> Object not found!
> The requested URL was not found on this server. If you entered the URL
> manually please check your spelling and try again.

The .jsp makes me think you want to proxy to a Tomcat machine. Then:

> ProxyPass /ocs http://lucas.delexian.com:8009

Here you need to use ProxyPass /ocs ajp://lucas.delexian.com:8009

Joost


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



--- End Message ---
---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux