I'm having an issue with a Apache/Tomcat reverse proxy setup. This is the first time ever setting it up so I'm not all that surprised. Basically, I have 7 virtual hosts on Apache, each to it's own directory. All of these sites are .jsp pages so they are all set the same as the following Apache config.

The first site works fine on the reverse proxy but all other sites don't. They pull up the primary site.

Apache Config

    <VirtualHost *:80>
         ServerAdmin webmaster@anotherdomain.com
         ServerName anotherdomain.com.com
         ServerAlias www.anotherdomain.com
         ProxyPreserveHost       On
         ProxyPass               /       ajp://localhost:8009/
         ProxyPassReverse        /       ajp://localhost:8009/

         DocumentRoot /var/www/anotherdomain.com/web/content
         DirectoryIndex index.jsp

    <Directory />
            Options FollowSymLinks
            AllowOverride None
    </Directory>
    <Directory /var/www/anotherdomain.com/web/content/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
    </Directory>

    ErrorLog /var/www/anotherdomain.com/logs/error.log

    LogLevel warn

    CustomLog /var/www/anotherdomain.com/logs/access.log combined

    <IfModule mpm_itk_module>
            AssignUserId user userg
    </IfModule>

TOMCAT Config

<Connector port="8009"
           enableLookups="false" redirectPort="8443" protocol="AJP/1.3" />

<Connector port="8082"
           maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
           enableLookups="false" acceptCount="100" connectionTimeout="20000"
           proxyPort="80" disableUploadTimeout="true" />

<Engine name="Catalina" defaultHost="localhost">
    <Host name="primarydomain.com"               appBase="/var/www/primarydomain.com/web/content"/>
    <Host name="anotherdomain.com"          appBase="/var/www/anotherdomain.com/web/content">
            <alias>www.anotherdomain.com</alias>
    </Host>
link|improve this question
Do the other sites have different ports in use? – Jeff Warnica Sep 27 '11 at 18:53
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.