tough time with proxypass

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

 



I have been using proxy pass in the simplest of cases to send URLs to a tomcat backend without an issue:

#Tomcat ajp connection for isbn's
ProxyPass / ajp://162.243.220.88:8009/

Now I am trying to integrate the tomcat app with an apache virtual host and am having a troubling time. I am able to separate some URLs between the two application by forwarding just specific directories to the tomcat server. The following works as expected with the below directories being answered by tomcat and all others being answered by the apache virtual host.

        ProxyPass /isbn ajp://162.243.220.88:8009/isbn
        ProxyPass /images ajp://162.243.220.88:8009/images
        ProxyPass /skins ajp://162.243.220.88:8009/skins
        ProxyPass /assets ajp://162.243.220.88:8009/assets
        ProxyPass /_javascript_ ajp://162.243.220.88:8009/_javascript_
        ProxyPass /admin ajp://162.243.220.88:8009/admin
        ProxyPass /secure ajp://162.243.220.88:8009/secure
        ProxyPass /pages ajp://162.243.220.88:8009/pages

But I am having trouble proxying base URL locations in the below instance. I get an apache httpd 404 error instead of the request being relayed to the tomcat server

        ProxyPass       /AccountLogin.jdmx ajp://162.243.220.88:8009/AccountLogin.jmdx
        ProxyPassReverse        /AccountLogin.jdmx ajp://162.243.220.88:8009/AccountLogin.jmdx


So I wanted to just by default send requests to tomcat and exclude a few of the apache virtual directory directories but strangely htiting my site at the /category URL in this setup does not go to the apache virtual host but gets answered with a 404 by tomcat

        #Tomcat ajp connection for isbn's
        ProxyPass /category !
        ProxyPass / ajp://162.243.220.88:8009/


I'm pretty confused on how to debug this since it only works in the most basic of circumstances. Clearly I am doing something completely wrong.

Server version: Apache/2.2.22 (Ubuntu)


[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