EC2 Micro与NGINX

我有一个运行Ubuntu 12.04的EC2 Micro。 我已经给它分配了一个EIP(23.21.213.236),我正在把我的域名Alogging指向这个IP。

我试图访问的域名是utoolsandfixings.co.uk,这应该显示一个页面,说“find服务器”。

在我做了所有的修改之后,我试过重启NGINX。

我已经在服务器上安装了NGINX,并设置了一个VHost,设置了一个符号链接等。VHOST如下:

server { listen 80; ## listen for ipv4 server_name utoolsandfixings.co.uk; ## change this to your own domain name # I find it really useful for each domain & subdomain to have its own error and access log error_log /var/log/nginx/utoolsandfixings.co.uk.error.log; access_log /var/log/nginx/utoolsandfixings.co.uk.access.log; location / { # Change this to the folder where you want to store your website root /var/www/utoolsandfixings.co.uk/; index index.html index.htm index.php; } # redirect server error pages to the static page /50x.html # error_page 500 502 503 504 /50x.html; location = /50x.html { root /var/www/nginx-default; } # We haven't setup FastCGI yet, but lets configure this now anyways # # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 location ~ \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; # again, change the directory here to your website's root directory make sure to leave $fastcgi_script_name; on the end! fastcgi_param SCRIPT_FILENAME /home/meltingice_net/public_html$fastcgi_script_name; include /etc/nginx/fastcgi_params; } 

}

也是我的nginx.conf

 user www-data; worker_processes 4; error_log /var/log/nginx/error.log; pid /var/run/nginx.pid; events { worker_connections 1024; # multi_accept on; } http { include /etc/nginx/mime.types; access_log /var/log/nginx/access.log; sendfile on; #tcp_nopush on; keepalive_timeout 0; keepalive_timeout 2; tcp_nodelay on; gzip on; gzip_disable msie6; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } 

任何帮助都将不胜感激。

NGINX是否在实例上运行(启动)? /etc/init.d/nginx status

怀疑这是一个防火墙问题,你有没有为允许HTTP的实例分配一个安全组? 这里有一个合理的指导。

另外,你有没有检查实例上没有本地防火墙的传入stream量? sudo iptables --list