ISPConfig不断给我一个在Ubuntu / Nginx上找不到的404

时间:2014-06-23 11:21:02

标签: ubuntu nginx

我最近在Ubuntu 14上安装了NGinX,并且还安装了 ISPConfig 。 我做了使用ISPConfig所需的一切, 但网址一直说'#404; 404 Not Found"。

这是我的/etc/nginx/sites-enabled/ispconfig.vhost:

server {
        listen 8080;
                ssl off;

        server_name _;

        root   /usr/local/ispconfig/interface/web/;

        client_max_body_size 20M;

        location / {
               index index.php index.html;
        }
        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
           access_log        off;
        }

        location ~ \.php$ {
               try_files $uri =404;
               include /etc/nginx/fastcgi_params;
               fastcgi_pass unix:/var/lib/php5-fpm/ispconfig.sock;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               fastcgi_buffer_size 128k;
               fastcgi_buffers 256 4k;
               fastcgi_busy_buffers_size 256k;
               fastcgi_temp_file_write_size 256k;
        }

        location ~ /\. {
               deny  all; } }

我现在已经工作了一段时间,并且找不到解决方案..

1 个答案:

答案 0 :(得分:0)

<强>解决方案

我正在拨打错误的网址,不好。

我在网址的末尾声明了8080 / ispconfig /,而它只需要域名:8080

很抱歉给您带来不便,希望其他人可以解决同样的问题..

相关问题