Configuring two tomcat instances resolving to a directory on the same domain

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

 



Hi,

I'm trying to setup my httpd.conf to allow one domain, with two directories to resolve to two different tomcat instances. But I've gotten a bit lost. Any guidance will be so appreciated!!

www.example.com/first

<VirtualHost "ip address":80>
        ServerName example/first
        ErrorLog /var/log/httpd/first_error.log
        CustomLog /var/log/httpd/first_access.log combined

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Allow from all
        </Proxy>

        ProxyPass / ajp://localhost:8009/
        ProxyPassReverse / ajp://localhost:8009/
</VirtualHost>


www.example.com/second

<VirtualHost "ip address":80>
        ServerName example/second
        ErrorLog /var/log/httpd/second_error.log
        CustomLog /var/log/httpd/second_access.log combined

        <Proxy *>
                AddDefaultCharset off
                Order deny,allow
                Allow from all
        </Proxy>

        ProxyPass / ajp://localhost:8010/
        ProxyPassReverse / ajp://localhost:8010/
</VirtualHost>

[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