Hi,
I am trying to use Apache as a front end to an application which runs on a
Tomcat server.
On lan I am able to correctly see it but from internet things are not working.
I tried understanding mod_jk page but I was unable to get to the correct
settings.
following is the application I am trying to get up and running
hxxps://confluence.sakaiproject.org/display/DOC/Sakai+2.7
(the binary version of above page).
apache vhost can be read here
On lan it is accessible<VirtualHost *:80>
ServerName research.openitup.in
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost Off
ProxyPass /portal ajp://192.168.1.4:8009/portal
ProxyPassReverse /portal ajp://192.168.1.4:8009/portal
ProxyPass / hxxp://192.168.1.4/
ProxyPassReverse / hxxp://192.168.1.4/
</VirtualHost>
hxxp://192.168.1.4:8080/portal
perfectly but from internet I am not clear as what is wrong with it.
To access it from internet you need to type
hxxp://research.openitup.in/portal
Here is a relevant page to doc
hxxps://confluence.sakaiproject.org/display/~steve.swinsburg/Fronting+Tomcat+with+Apache+via+mod_proxy_ajp
As per above doc I have done
and a file named sakai.properties has been changed<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009"
enableLookups="false" redirectPort="8443" protocol="AJP/1.3" URIEncoding="UTF-8" />
The server which faces internet and the server where research.openitup.in are different machines but sakai.serverUrl=hxxp://localhost:80
Sakai and research.openitup.in are running on same system
so as the doc says
to have
The same is not possible for me since root of my siteProxyPass / hxxp://192.168.1.4:8009/
ProxyPassReverse / hxxp://192.168.1.4:8009/
research.openitup.in is itself proxied inside as
So can any one suggest any thing in this situation.ProxyPass / hxxp://192.168.1.4/
ProxyPassReverse / hxxp://192.168.1.4/
Replace hxxp by http I was not able to post it because this is my first post on forum and I need to have 10 to post links.So replaced http by hxxp

Reply With Quote