I'm running two glassfish applications under
http://serverip:8080/app1
http://serverip:8080/app2
and now I will configure two virtualhosts from the domains:
www.domain1.com -> http://serverip:8080/app1
www.domain2.com -> http://serverip:8080/app2
The configuration:
two .config files under /etc/apache2/sites-available
content:
- Code: Select all
<VirtualHost *:80>
ServerName domain1.com
ServerAlias www.domain1.com
ProxyPass /app1 http://127.0.0.1:8080/app1
ProxyPassReverse /app1 http://127.0.0.1:8080/app1
</VirtualHost>
after the command a2ensite and reload, Google chrome shows me the application with the url www.domain1.com/app1
Firefox and IE show me the default apache site and the url www.domain1.com
my goal:
show me the application with domain www.domain1.com
do you have any idea how i can let it work on each browser without /app1 in the domain?
My system:
ubuntu 16.04 LTS
glassfish 4.1
apache 2
mod_rewrite
mod_proxy
best regards