Error message: invalid number of arguments in "proxy_pass" directive

Hello guys

I’m using nginx as a load balancer between 2 apache webservers for a
school
assignment, but i can’t get it working. My nginx server (running on
ubuntu
server) won’t start…

He keeps giving met this error:
[emerg] invalid number of arguments in “proxy_pass” directive in
/etc/nginx/sites-enabled/default.save:35

I googled this error already but i couldn’t find the solution…

This is my configuration:

http://puu.sh/337yk/b597e5fe18.png

(it’s a screenshot, i know there is a missing “}” , my screen resolution
isn’t that big).

Can you guys please help me?

Thanks!

Posted at Nginx Forum:

On Tue, May 28, 2013 at 02:35:33PM -0400, ZyntraX wrote:

Hi there,

He keeps giving met this error:
[emerg] invalid number of arguments in “proxy_pass” directive in
/etc/nginx/sites-enabled/default.save:35

What is on line 35 of the file /etc/nginx/sites-enabled/default.save?

How does that match what proxy_pass expects?

http://nginx.org/r/proxy_pass

Can you guys please help me?

Perhaps you just want to “rm /etc/nginx/sites-enabled/default.save”,
and then make sure that your editor doesn’t create backup files that
match the “include” pattern in your nginx.conf?

f

Francis D. [email protected]