Welcome! Log In Create A New Profile

Advanced

Re: missing /etc/nginx/sites-available

February 10, 2014 01:18PM
Hi Josh,

Yes, indeed I see inside /usr/local/nginx :

client_body_temp
conf
fastcgi_temp
html
logs
proxy_temp
sbin
scgi_temp
uwsgi_temp

But I don't understand what is the default.vhost file in it.
If I change :

include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;

by :

/usr/local/nginx/conf/*.conf;
/usr/local/nginx/html/*;

I get this message :

nginx: [emerg] "worker_processes" directive is not allowed here in
/usr/local/nginx/conf/nginx.conf:3
nginx: configuration file /usr/local/nginx/conf/nginx.conf test failed

Kinda lost here ...


2014-02-10 17:50 GMT+01:00 Josh Stratton <strattonbrazil@gmail.com>:

> I'm new to nginx myself, but I'm guessing because you're not using the
> package manager to install nginx. The install location in configured by
> the package. Following the build steps in your link...
>
> sed -e "s|%%PREFIX%%|/usr/local/nginx|" \
> -e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \
> -e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \
> -e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \
> < man/nginx.8 > objs/nginx.8
> make[1]: Leaving directory `/tmp/nginx-1.4.4'
>
> Do you see something in /usr/local/nginx? If not, try searching directly
> for the nginx.conf file.
>
>
> On Mon, Feb 10, 2014 at 8:46 AM, jack linkers <jacklinkers@gmail.com>wrote:
>
>> Hello,
>>
>> I'm new to linux and webservers, but I have a brain and C# background.
>> I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following
>> this tutorial :
>> https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source
>> I installed everything under root directory, successfully builded the
>> package and started nginx :
>>
>> root@xxxxx:~# service nginx configtest
>> nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is
>> ok
>> nginx: configuration file /usr/local/nginx/conf/nginx.conf test is
>> successful
>>
>> root@xxxxx:~# curl -I -p http://localhost|grep X-Page-Speed
>> % Total % Received % Xferd Average Speed Time Time Time Current
>> Dload Upload Total Spent Left Speed
>> 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
>> X-Page-Speed: 1.7.30.3-3721
>>
>> I have no nginx folder under /etc, therefore I can't edit
>> /etc/nginx/sites-available/file_to_edit
>>
>> I believe this folder comes with the package apt-get install nginx by
>> default
>> But how do I edit my .vhost from source build please ?
>>
>> Thanks !
>>
>> _______________________________________________
>> nginx mailing list
>> nginx@nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
>>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

missing /etc/nginx/sites-available

shiroweb February 10, 2014 11:48AM

Re: missing /etc/nginx/sites-available

Josh Stratton February 10, 2014 11:52AM

Re: missing /etc/nginx/sites-available

shiroweb February 10, 2014 01:18PM

Re: missing /etc/nginx/sites-available

Josh Stratton February 10, 2014 01:28PM

Re: missing /etc/nginx/sites-available

GreenGecko February 10, 2014 03:36PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 268
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready