Proxy_pass" may not have URI part in location


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/ {

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

upstream backend {


server {
    listen       4242;

    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:,124245,124245#msg-124245

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs