Note that there are some explanatory texts on larger screens.

plurals
  1. PONginx no longer starts and doesn't give output
    primarykey
    data
    text
    <p>I was using nginx for a uniq app, then I changed it and configured for server blocks (AKA Vhost-in apache), following the steps this tuto shows <a href="https://github.com/Hack56/Rails-Template/wiki/Running-Multiple-Rails-Apps-on-Nginx" rel="nofollow">(see the tutorial)</a></p> <p>The server worked (just with <em>service gninx restart</em>) till I reboot the VPS</p> <p><strong>NOW NGINX ISNT STARTING AND NO OUTPUT MSG is being shown</strong> (tried all the start ways)</p> <p>What am I missing?</p> <p><code>$ /etc/init.d/nginx status</code> <strong>returns:</strong></p> <pre><code> * nginx is not running </code></pre> <p><strong>Diggin from my local machine returns</strong></p> <pre><code>$ dig http://www.xx.com ; &lt;&lt;&gt;&gt; DiG 9.8.1-P1 &lt;&lt;&gt;&gt; http://www.xx.com ;; global options: +cmd ;; connection timed out; no servers could be reached </code></pre> <p>(added on edit) - - - - - - - -- - - - For my other domain</p> <pre><code>; &lt;&lt;&gt;&gt; DiG 9.8.1-P1 &lt;&lt;&gt;&gt; http://www.xx.com ;; global options: +cmd ;; Got answer: ;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NXDOMAIN, id: 5145 ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0 ;; QUESTION SECTION: ;http://www.xx.com IN A ;; AUTHORITY SECTION: xx.com . 900 IN SOA ;; Query time: 39 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) ;; WHEN: Tue Jun 4 21:01:55 2013 ;; MSG SIZE rcvd: 110 </code></pre> <p><strong>When curl:</strong></p> <pre><code>curl http://www.xx.com -v * About to connect() to www.xx.com port 80 (#0) * Trying 198.199.199.155... Conexão recusada* * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host </code></pre> <p>*<em>(refused connection)</em></p> <p><strong>ping results:</strong> <code>33 packets transmitted, 33 received, 0% packet loss, time 197754ms</code></p> <hr> <p><strong>My config:</strong></p> <p>I've added my domains to <strong>/etc/hosts</strong></p> <pre><code>127.0.0.1 localhost xx 198.199.199.155 www.xx.com 198.199.199.155 xx.com 198.199.199.155 www.yy.com 198.199.199.155 yy.com </code></pre> <p>On my <strong>/etc/nginx/nginx.conf</strong></p> <pre><code>worker_processes 1; user nobody nogroup; pid /tmp/nginx.pid; error_log /tmp/nginx.error.log; events { worker_connections 1024; accept_mutex off; } http { include /etc/nginx/mime.types; default_type application/octet-stream; access_log /tmp/nginx.access.log combined; sendfile on; tcp_nopush on; tcp_nodelay off; gzip on; gzip_http_version 1.0; gzip_proxied any; gzip_min_length 500; gzip_disable "MSIE [1-6]\."; gzip_types text/plain text/xml text/css text/comma-separated-values text/javascript application/x-javascript application/atom+xml; include /etc/nginx/sites-enabled/*; ########################################################## # Catch all requests to server ip so just hitting the ip # won't render anything. ########################################################## server { listen 80 default; server_name anything; # Everything is a 404 location / { return 404; } } } </code></pre> <p>- EDITED -</p> <p><em>ps: IP and domains are fakes -.-'</em></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload