Setting up the NGIX *.conf file - Problem with proxy_pass

Hi

I configured my nix .conf file as suggested in the documentation. I habe basically tow question:

  1. in there "Server" section I should point to:
    proxy_pass http://plone/VirtualHostBase/http/my-domain.com:80/site1/VirtualHostRoot/;

Result: It is redirected to the Plone page .. where it say's "... Plone is up and running ..." where I can create a new Plone site. I have created a new site: site1

Question: how do I need to modify the path so it points directly to the "index" page and NOT to the config page.

  1. using the suggestion - how to config ngix I always have in the URL the IP instead of the Domain. How can I solve this?

Thanks for your help

my mysite.local.conf with nginx:

upstream plone {
    server 127.0.0.1:10085;
}

server {
    listen 80;
    server_name mysite.local;
    access_log /var/log/nginx/mysite.local.access.log;
    error_log /var/log/nginx/mysite.local.error.log;
    location / {
          proxy_pass http://plone/VirtualHostBase/http/mysite.local:80/mysite_id/VirtualHostRoot/;
    }
}

but it looks like yours.

so it points directly to you starting page and not to the "admin" page some how?

it points to the front-page of plonesite, not the zmi

yes this is what I expected ... do I need to activate or enable something? so the front-page will be reachable?
sorry I'm new to Plone.

Here is an old tool for wrapping your head around the virtual host monster:
http://betabug.ch/zope/witch

It outputs Apache configs, but it should expose the logic to you rather well to adapt and amend onto your config.

I don't think the config is used at all, as you see an IP address in the links in the output.

Make sure the config is correct (nginx -t or nginx -T) and that nginx is restarted.
Check your logfiles to see of your requests are coming in there at all.