Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set up nginx as reverse proxy for a tomcat server using SSL connection.

I want the client's browser to load my tomcat application when nginx reverse proxy's IP is called from client's browser.

My tomcat application's address is and nginx proxy's address is

In my nginx.conf file i have added these lines

location / {

Some of the images in my application is stored at .

Now these directories cant be accessed as the proxy_pass is set to

Is there way to access images directory also without changing proxy_pass ?

Thanks in advance.

share|improve this question

You'll want to add a new location block for /images, avoiding the proxy directive that's sticking you to where /images wouldn't be accessible.

location /images/ {
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.