D7 on Apache2 running with Clean URLs enabled & working.
www.example.com is working fine
On the same server another webserver (Java) is runing and listening on port 8008 - verified and working
(Help system from www.simple-help.com)
www.example.com:8008 is working and responding - But would like to keep port 8008 closed for the outside world...
Now I want www.example.com/help (Apache) to proxy back and forward to whatever localhost:8008 returns, while keeping the rest of the D7 rewrites etc intact.
I played with the following in example.com.conf (VirtualHost) for apache
Added
ReWriteCond %{REQUEST_URI} !=/help
just before
RewriteRule ^ index.php [L]
Added
<Location /help>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Location>
<Proxy *>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Proxy>
SSLProxyEngine on
ProxyPreserveHost On
ProxyPass /help http://localhost:8008
ProxyPassReverse /help http://localhost:8008
This results in : The requested page "/welcome" could not be found.
inside the D7 site
http://www.example.com:8008 'redirects to' www.example.com:8008/welcome
So the 'proxy in' seems to be working but the proxy back out (Reverse) is not???
Sorry if I mix up terminalogy etc. This is unknown territory for me.
Any hints/suggestions appreciated.
Have D7 open a new tab and do a html redirect to www.example.com:8008 is another option I could explore.
or a block showing whatever http://localhost:8008 produces ...
or an iframe showing what http://www.example.com:8008 produces ...
Not sure what the best approach is yet, open for suggestions.
Thank you for your time
Peter
Comments
I know this is not your
I know this is not your question, but it would be easy to do behind Varnish. You set up two backends, could be both localhost and just different port numbers. Call the one listening on your new Apache port 'default' and the other 'help'. Then you do something like
if req.url ~ "/help" { set req.backend = "help"; } else { set req.backend = "default"; }syntax varies a little depending on your chosen version of Varnish. I would pick version 3.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors