I have a few web applications available on my server on port 8080.
As some of my users can\'t reach port 8080 due to their firewall, I\'d like to set a redirection o
Doing what you did will only send a redirect to port 8080 to the user (which they can't use). You need to use apache mod_proxy or a different proxy server.
ProxyPass /foo http://foo.example.com/bar
ProxyPassReverse /foo http://foo.example.com/bar
You should probably be using mod_proxy instead of mod_rewrite
.
ProxyPass /tomcat http://dev2.test.com:8000/
ProxyPassReverse /tomcat http://dev2.test.com:8000/
EDIT :
This configuration must be in httpd.conf. It may be in a VirtuaHost section or at the root of the file.
You have to enable mod_proxy. This could be done using
LoadModule proxy_module /usr/lib/apache2/modules/mod_proxy.so
LoadModule proxy_http_module /usr/lib/apache2/modules/mod_proxy_http.so