Welcome! Log In Create A New Profile

Advanced

RE: nginx and tomcat integrated but how to serve static files

December 07, 2012 06:10AM
Hi pals,


I have my applications running on tomcat and to improve performance I have
put nginx infront.Nginx proxy pass successfully pass all request to tomcat
server.

There are some html static files and images in my application which I don't
to be served by tomcat. again, I am trying to as much as performance boost
for my app.

I am tried to do some research but unable to get solutions.

please see my current config ans suggest!

server {
index index.html index.htm;
listen 192.168.0.16:80;
server_name localhost;
location / {
root /var/www/nginx-default;
index index.html index.htm index.jsp;
}


location /abc/ {
proxy_pass http://localhost:8080;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;

}

thanks in advance!



Irfan Khan



_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

RE: nginx and tomcat integrated but how to serve static files

irfee December 07, 2012 06:10AM

Re: nginx and tomcat integrated but how to serve static files

aweber December 07, 2012 08:44AM

Re: nginx and tomcat integrated but how to serve static files

Francis Daly December 07, 2012 11:02AM

RE: nginx and tomcat integrated but how to serve static files

irfee December 10, 2012 11:26AM

Re: nginx and tomcat integrated but how to serve static files

Francis Daly December 10, 2012 02:50PM

RE: nginx and tomcat integrated but how to serve static files

irfee December 11, 2012 03:50AM

Re: nginx and tomcat integrated but how to serve static files

Francis Daly December 11, 2012 07:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 155
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready