Welcome! Log In Create A New Profile

Advanced

proxy_pass: invalid number of arguments

September 18, 2009 02:15PM
Я тоже (слабо) говорю по руски.

I'm on Debian, setting up nginx to serve media and pass the django requests to apache on port 8080.

I successfully set up apache with django before, but when I introduced nginx it all fell apart.

So I'm getting this error when I tried to start nginx

**Starting nginx: 2009/09/18 13:46:11 [emerg] 10689#0: invalid number of arguments in "proxy_pass" directive in /etc/nginx/sites-enabled/#{mydomain}.com#:8
nginx.**

Here is the {mydomain}.com file with the error:


[code]
upstream backend {
server 127.0.0.1:8080;
}

server {
listen 80;
server_name www.mydomain.com mydomain.com;
access_log path to my access log;
error_log path to my error log;

location / {
proxy_pass http://backend;
include /etc/nginx/proxy.conf;
}

location /media/ {
root /home/path to my project;
}
}
[/code]


Do you guys have any idea what could be wrong? Should I provide more files? Should I start over from scratch?
Subject Author Posted

proxy_pass: invalid number of arguments

metra September 18, 2009 02:15PM

Re: proxy_pass: invalid number of arguments

metra September 18, 2009 02:42PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready