Forum: NGINX proxy_pass" may not have URI part in location

Posted by manjeet (Guest)
on 2010-08-27 14:19
(Received via mailing list)
Hello

I have just managed to install nginx on Linux.

I am having 2 problems:

1) Error: proxy_pass" may not have URI part in location
my conf :
      location ~ /fb/ {
            proxy_pass
http://xyz.dev:3000/fb/restserver.php;


2) Problem with upstream
I would like to point to restserver.php. I do not know how to do so.

 upstream backend {

        server xyz.dev:3000;
    }

    server {
        listen       4242;
        server_name  xyz.dev;

        access_log /var/log/nginx/sng-nginx.log main;

        location ~ /fb/ {
            proxy_pass             http://backend;

I am using nginx version: nginx-0.7.61.

  Thanks in advance - Manjeet

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?2,124245,124245#msg-124245
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.