nginx include /etc/nginx/sites-enabled/*; No such file or di

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

nginx include /etc/nginx/sites-enabled/*; No such file or di

Andrii Balytskyi
I am setting up a slice on SliceHost

I am slowly getting the nginx setup.

However ... I have this problem

 nginx include /etc/nginx/sites-enabled/*;  results in   No such file or
directory)

I did a VERY basic setup to show a html only site with all the conf in
one file. That worked, so I know that nginx will work.

Now I am trying to setup to handle multiple sites. So I removed the
server conf out of the nginx.conf and put in the line

    include /etc/nginx/sites-enabled/*;

I have created a link to the server file I want to use in
/etc/nginx/sites-available. ls -l directory shows it’s there

    bartee@slice99999:/etc/nginx/sites-enabled$ ls -l
    total 0
    lrwxrwxrwx 1 root root 43 Mar 14 20:01 site.mysaw.rails ->
/etc/ngnix/sites-available/site.mysaw.rails

but I am getting this on startup

    bartee@slice99999:~/sites/mysaw$ sudo /etc/init.d/nginx start
    Starting nginx: 2009/03/14 20:16:30 [emerg] 17463#0: glob()
“/etc/nginx/sites-enabled/*” failed (2: No such file or directory) in
/etc/nginx/nginx.conf:59

any ideas ???????
--
Posted via http://www.ruby-forum.com/.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: nginx include /etc/nginx/sites-enabled/*; No such file or di

Edho P Arief
On Sun, Mar 15, 2009 at 5:38 PM, Bartee Lamar <[hidden email]> wrote:

> I am setting up a slice on SliceHost
>
> I am slowly getting the nginx setup.
>
> However ... I have this problem
>
>  nginx include /etc/nginx/sites-enabled/*;  results in   No such file or
> directory)
>
> I did a VERY basic setup to show a html only site with all the conf in
> one file. That worked, so I know that nginx will work.
>
> Now I am trying to setup to handle multiple sites. So I removed the
> server conf out of the nginx.conf and put in the line
>
>    include /etc/nginx/sites-enabled/*;
>
> I have created a link to the server file I want to use in
> /etc/nginx/sites-available. ls -l directory shows it’s there
>
>    bartee@slice99999:/etc/nginx/sites-enabled$ ls -l
>    total 0
>    lrwxrwxrwx 1 root root 43 Mar 14 20:01 site.mysaw.rails ->
> /etc/ngnix/sites-available/site.mysaw.rails

ngnix?

and do you have another include in the site.mysaw.rails?

>
> but I am getting this on startup
>
>    bartee@slice99999:~/sites/mysaw$ sudo /etc/init.d/nginx start
>    Starting nginx: 2009/03/14 20:16:30 [emerg] 17463#0: glob()
> “/etc/nginx/sites-enabled/*” failed (2: No such file or directory) in
> /etc/nginx/nginx.conf:59
>
> any ideas ???????
> --
> Posted via http://www.ruby-forum.com/.
>
>




--
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: nginx include /etc/nginx/sites-enabled/*; No such file or di

Andrii Balytskyi
Edho P Arief wrote:

> ngnix?
>
> and do you have another include in the site.mysaw.rails?

No I do not.
--
Posted via http://www.ruby-forum.com/.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: nginx include /etc/nginx/sites-enabled/*; No such file or di

Igor Sysoev
On Sun, Mar 15, 2009 at 03:14:28PM +0100, Bartee Lamar wrote:

> Edho P Arief wrote:
>
> > ngnix?
> >
> > and do you have another include in the site.mysaw.rails?
>
> No I do not.

You have type in symlink:

- site.mysaw.rails -> /etc/ngnix/sites-available/site.mysaw.rails
+ site.mysaw.rails -> /etc/nginx/sites-available/site.mysaw.rails


--
Igor Sysoev
http://sysoev.ru/en/

Loading...