Hi all,
I have a Java web app running in a Tomcat Server (8080 PORT), my server is linux and it's runing in the 80 port. I have configured the virtual host in apache2, because I want redirect the url, when I write www.domain.com go to www.domain.com:8080/app, my virtual host is:
<VirtualHost *:80>
ServerAdmin
xxx@gmail.com
ServerName domain.es
ServerAlias www.domain.es
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass
http://www.domain.es:8080/app/
ProxyPassReverse
http://www.domain.es:8080/app/
</Location>
DocumentRoot /var/www
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
When I write the domain, the app is loaded, but the problem is that I lose the js, the message that appear is:
"NetworkError: 404 Not Found -
http://www.domain.es/app/js/jquery-1.7.1.js"
Please, Could you help me?
Thanks in advance!