Ok, I found a partial solution: server { listen 80; server_name mdd.cat; rewrite ^/MyApp/(.*)$ /$1 last; location / { proxy_set_header X-Forwarded-Host $host; proxy_set_header X-Forwarded-Server $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8081/MyApp/; } } Now, is finding static resources, bby gdosaigues - Migration from Other Servers
Hello, this is driving me nuts. My scenario is an apache2 and a tomcat with several webapps in it. Actually, with apache+tomcat is working fine but I want to migrate to nginx to increase the performance and consume less resources. This is one of the VirtualHost in apache: <VirtualHost *:80> ServerAdmin mail@gmail.com ServerName webapp.com ErrorLog logs/webby gdosaigues - Migration from Other Servers