<div dir="ltr">Hi Josh,<div><br></div><div>Yes, indeed I see inside <span style="font-family:arial,sans-serif;font-size:13px">/usr/local/nginx :</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div>client_body_temp</div><div>conf</div><div>fastcgi_temp</div><div>html</div><div>logs</div><div>proxy_temp</div><div>sbin</div><div>scgi_temp</div><div>uwsgi_temp</div><div><br></div><div>But I don't understand what is the default.vhost file in it.</div>
<div>If I change :</div><div><br></div><div><pre style="padding:6px;margin-top:0px;margin-bottom:0px;background-color:rgb(239,239,239);border:1px inset;width:500px;height:250px;overflow:auto;font-size:16px;color:rgb(0,0,0);line-height:18px">
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;</pre><pre style="padding:6px;margin-top:0px;margin-bottom:0px;background-color:rgb(239,239,239);border:1px inset;width:500px;height:250px;overflow:auto;font-size:16px;color:rgb(0,0,0);line-height:18px">
by :</pre><pre style="padding:6px;margin-top:0px;margin-bottom:0px;background-color:rgb(239,239,239);border:1px inset;width:500px;height:250px;overflow:auto"><font color="#000000" size="4"><span style="line-height:18px">/usr/local/nginx/conf/*.conf;
/usr/local/nginx/html/*;<br></span></font></pre><pre style="padding:6px;margin-top:0px;margin-bottom:0px;background-color:rgb(239,239,239);border:1px inset;width:500px;height:250px;overflow:auto"><font color="#000000" size="4"><span style="line-height:18px">I get this message :</span></font></pre>
<pre style="padding:6px;margin-top:0px;margin-bottom:0px;background-color:rgb(239,239,239);border:1px inset;width:500px;height:250px;overflow:auto"><font color="#000000" size="4"><span style="line-height:18px">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
</span></font></pre></div><div><font color="#000000" size="4"><span style="line-height:18px">Kinda lost here ...</span></font></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-02-10 17:50 GMT+01:00 Josh Stratton <span dir="ltr"><<a href="mailto:strattonbrazil@gmail.com" target="_blank">strattonbrazil@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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...<div>
<br></div><div><div>sed -e "s|%%PREFIX%%|/usr/local/nginx|" \</div><div><span style="white-space:pre-wrap"> </span>-e "s|%%PID_PATH%%|/usr/local/nginx/logs/nginx.pid|" \</div><div><span style="white-space:pre-wrap"> </span>-e "s|%%CONF_PATH%%|/usr/local/nginx/conf/nginx.conf|" \</div>
<div><span style="white-space:pre-wrap"> </span>-e "s|%%ERROR_LOG_PATH%%|/usr/local/nginx/logs/error.log|" \</div><div><span style="white-space:pre-wrap"> </span>< man/nginx.8 > objs/nginx.8</div>
<div>make[1]: Leaving directory `/tmp/nginx-1.4.4'</div></div><div><br></div><div>Do you see something in /usr/local/nginx? If not, try searching directly for the nginx.conf file. </div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div class="h5">On Mon, Feb 10, 2014 at 8:46 AM, jack linkers <span dir="ltr"><<a href="mailto:jacklinkers@gmail.com" target="_blank">jacklinkers@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr"><p style="margin-right:0px;margin-bottom:15px;margin-left:0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px;margin-top:0px!important">
Hello,</p><p style="margin:15px 0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">I'm new to linux and webservers, but I have a brain and C# background.<br>
I installed ngx_pagespeed with nginx on a fresh ubuntu 13.10 following this tutorial :<a href="https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source" style="color:rgb(65,131,196);text-decoration:none" target="_blank">https://developers.google.com/speed/pagespeed/module/build_ngx_pagespeed_from_source</a><br>
I installed everything under root directory, successfully builded the package and started nginx :</p><p style="margin:15px 0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">
root@xxxxx:~# service nginx configtest<br>nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok<br>nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful</p><p style="margin:15px 0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">
root@xxxxx:~# curl -I -p <a href="http://localhost" target="_blank">http://localhost</a>|grep X-Page-Speed<br>% Total % Received % Xferd Average Speed Time Time Time Current<br>Dload Upload Total Spent Left Speed<br>0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0<br>
X-Page-Speed: 1.7.30.3-3721</p><p style="margin:15px 0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">I have no nginx folder under /etc, therefore I can't edit /etc/nginx/sites-available/file_to_edit</p>
<p style="margin:15px 0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px">I believe this folder comes with the package apt-get install nginx by default<br>
But how do I edit my .vhost from source build please ?</p><p style="margin-top:15px;margin-right:0px;margin-left:0px;color:rgb(51,51,51);font-family:Helvetica,arial,freesans,clean,sans-serif;font-size:14px;line-height:23.799999237060547px;margin-bottom:0px!important">
Thanks !</p></div>
<br></div></div>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div></div>