I have an Oracle HTTP Server (which is based on Apache) with two applications on it:
http://example.net/
-> opens the Life-Application (default port 80)http://example.net:7777/
-> opens the Test-Application
Now we want to simplify the URL, actually it should be like this:
http://application
-> opens the Life-Applicationhttp://example.net/
http://application-t
-> opens the Test-Applicationhttp://example.net:7777/
We added DNS records for application -> example.net
and application-t -> example.net
, however it cannot point to certain ports. (i.e. application-t
-> example.net:7777
is not possible)
I tried to configure VirtualHost but I failed. Both, http://application
and http://application-t
are always open the Life-Application, no matter what I tried.
How to setup the VirtualHost directive? Or do I have to make it differently?
The "ProxyPass" and "ProxyPassReverse" parameters are used to tell Apache how to proxy requests. They require the "mod_proxy.so" and "mod_proxy_http.so" Apache modules, which are loaded by default in RHEL5 and RHEL6, but check the following lines are uncommented in the "/etc/httpd/conf/httpd.conf" file to make sure. >
Try Below VirtualHost Configurations
http://application -> opens the Life-Application http://example.net/
http://application-t -> opens the Test-Application http://example.net:7777/
I hope it works