tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Truckman" <>
Subject Proxypass Question
Date Tue, 06 Mar 2012 15:54:44 GMT
As per list member "Pid", I am starting a new thread rather than
lobotomizing an existing one.  Pid, you're right, my apologies, I was being

Using apache virtual hosting, I am trying to forward port 443 to tomcat, yet
have port 80 serve "normal" local content in the traditional fashion.  The
reason for this is by business policy the application running on tomcat must
be accessed via https using ssl, and the user instruction manual for that
application resides on port 80, and is just a bunch of html files.


   (443) -> proxypass / ajp --> tomcat6
   (80) -> serves html files from /mnt/html/example

To achieve this, we created the following definitions within

NameVirtualHost *:443

<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /mnt/html/example/
        SSLCertificateKeyFile /mnt/html/example/
        ProxyPass / ajp://localhost:8009/

NameVirtualHost *:80

<VirtualHost *:80>
#        ProxyPass / ajp://localhost:8009/
        DocumentRoot    /mnt/html/example

Unfortunately, the above doesn't work.  It appears we have to change the
port 80 definition to the below to allow port 443 to proxy through ajp:

<VirtualHost *:80>
        ProxyPass / ajp://localhost:8009/
#        DocumentRoot    /mnt/html/example

Does proxypass ajp REQUIRE that both ports be forwarded?  Or can we have
port 443 proxy up to tomcat, and port 80 serve ordinary, boring, html files?

Thank you in advance

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message