This question has been asked before, and, in resume I want configure this scenario:
1 - I have one Jetty 7 server with many applications, e.g: app1, app2, app3, etc.
2 - I have one main domain, and, one sub-domain per Jetty application, e.g: app1.example.com, app2.example.com, app3.example.com, etc..
3 - I'm try using Apache 2.2.22 mod_proxy to mask these Jetty applications across domains managed by Apache. This is my functional configuration for one application:
<VirtualHost *:80>
ServerName example.com
ServerAlias app1.example.com
ProxyRequests Off
ProxyPreserveHost On
<Proxy *:80>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /app1 http://localhost:8080/app1
</VirtualHost>
This configuration works, but, it doesn't remove the context name, the URI is:
Have an way to remove this context name, leaving a full transparent URIs ? e.g:
All examples on the web uses this context name on URIS :/
Additional information:
- VM with Ubuntu 12.04;
- Jetty 7 without modifications;
- Apache 2.2.22 with mod_proxy and mod_rewrite enabled (and some basics mods enabled by default);
- Correct and valid CNAME and domain name within VM manager at Digital Ocean;
Thanks in advance.