Welcome! Log In Create A New Profile

Advanced

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

December 11, 2012 03:50AM
Hi,

My config is same as earlier. I had tried to access /foo/learning.html from
Nginx. But if I keep tomcat server off then I am unable to load this page.
If I keep tomcat server up and try for some files (blah.html)which is not
exists then tomcat reports an error on page.

I have also tried giving full access to webapps directive just for testing
purpose. Nothing worked!

Kindly suggest, my config is as follows;

Location /foo/*
Root /tomcat/webapps/abc/
Index.html

> 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 and Regards,
Irfan Khan

-----Original Message-----
From: nginx-bounces@nginx.org [mailto:nginx-bounces@nginx.org] On Behalf Of
Francis Daly
Sent: 11 December 2012 01:19
To: nginx@nginx.org
Subject: Re: nginx and tomcat integrated but how to serve static files

On Mon, Dec 10, 2012 at 09:55:01PM +0530, Irfan Khan wrote:

Hi there,

> Thanks for the suggestion, but unfortunately it didn't worked.

What one url did you try that you wanted to be served from the filesystem,
but was instead served by tomcat? (And why do you think that it was served
by tomcat?)

What config file do you use that shows the problem?

f
--
Francis Daly francis@daoine.org

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

_______________________________________________
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: 139
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