【问题标题】:ISPConfig keeps giving me a 404 Not Found on Ubuntu/NginxISPConfig 不断给我一个 404 Not Found on Ubuntu/Nginx
【发布时间】:2014-06-23 19:34:42
【问题描述】:

我最近在 Ubuntu 14 上安装了 NGinX,还安装了 ISPConfig。 我做了使用 ISPConfig 所需的一切, 但网址一直显示“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; } }

我已经研究了一段时间,但找不到解决方案..

【问题讨论】:

    标签: ubuntu nginx


    【解决方案1】:

    解决方案

    我打错了网址,我的错。

    我在 url 的末尾声明了 8080/ispconfig/,而它只需要 domainname:8080

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

    【讨论】:

      猜你喜欢
      • 2013-11-11
      • 1970-01-01
      • 1970-01-01
      • 2021-12-27
      • 2016-11-11
      • 2016-06-30
      • 2020-10-24
      • 2022-01-09
      • 1970-01-01
      相关资源
      最近更新 更多