关于Ubuntu 13配置问题的nginx 1.5.8

时间:2014-01-11 11:10:12

标签: ubuntu nginx

我能够在几个小时内使用fastCGI端点设置nginx,但是在ubuntu上这样做会涉及到更多。

我得到的具体错误是500内部服务器错误。不幸的是,error.log文件无法告诉我任何事情,因为当我通过浏览器访问服务器时,没有写入访问尝试的条目。

我的nginx.conf配置了以下“server {”块(适用于工作窗口conf中的ubuntu。)

通过DSL添加到配置1/9 / 2k14进行Ceemee测试

    #fast CGI via go to local host AWS instance, over rides commented out default

    server {
    listen 80;

    #if you want to test via convenient local host name, mapping
    #127.0.0.1 local host ip address to indicated
    #server name should be placed in hosts file so that it can resolve
    #ex: server_name go.aws.ceemee;

    server_name dev1.aws.ceemee.com;

    #whatever the desired root context path is for web contexts/locations
    #this path could be where your user web interface resources re or
    #it could be any where you wish.
    #ex path: root C:/nginx-1.5.8/Apps/CeeMee;

    root /home/ubuntu/CeeMee;

    index index.html;
    #gzip off;
    #proxy_buffering off;

    location / {
               try_files $uri $uri/;
    }

    #For each open endpoint required we need to map a location port
    #add location blocks to fastCGI for each desired end point
    #the indicated "location ~/(some subpath of root) {" specifies the
    # URI that will be mapped to the indicated port to route requests
    #to fastCGI.

    location ~ /Test.* {
    include     fastcgi_params;
    fastcgi_pass 127.0.0.1:9001;
    }

    try_files $uri $uri.html =404;

    } #end of server block.

}

我的内容包含在我的nginx.conf文件中。我没有设置任何符号链接到“sites-available”和“sites-enabled”中的任何文件(这些文件夹甚至不存在于windows配置中,它们是否在Ubuntu设置中是强制性的?

我确实在“已启用网站”中删除了“默认”网站的符号链接,并尝试重新加载...配置,发生时没有任何错误但尝试再次访问该网站导致500内部服务器错误在这些访问的error.log报告中完全没有错误(这很烦人)。

0 个答案:

没有答案