【发布时间】: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; } }
我已经研究了一段时间,但找不到解决方案..
【问题讨论】: