1

私はuniqアプリにnginxを使用していましたが、それを変更してサーバーブロック(AKA Vhost-in apache)用に構成し、このチュートが示す手順に従いました (チュートリアルを参照)

VPSを再起動するまで、サーバーは(service gnnx restartだけで)機能しました

NOW NGINX ISNT STARTING AND NO OUTPUT MSG が表示されています (すべての開始方法を試しました)

私は何が欠けていますか?

$ /etc/init.d/nginx status 戻り値:

 * nginx is not running

ローカル マシンから Diggin が返されます

$ dig http://www.xx.com

; <<>> DiG 9.8.1-P1 <<>> http://www.xx.com
;; global options: +cmd
;; connection timed out; no servers could be reached

(編集時に追加) - - - - - - - - - - - 私の他のドメイン用

; <<>> DiG 9.8.1-P1 <<>> http://www.xx.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- 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

カールする場合:

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

* (接続拒否)

ping の結果: 33 packets transmitted, 33 received, 0% packet loss, time 197754ms


私の設定:

ドメインを/etc/hostsに追加しました

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

/etc/nginx/nginx.conf

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;
    }
  }
}

- 編集済み -

ps: IP とドメインは偽物です -.-'

4

1 に答える 1