【发布时间】:2015-05-01 22:53:39
【问题描述】:
我的网站一直显示 phpinfo();当我降落在上面时
- 我的根应该是:
/home/forge/aveniros/public - 我不确定在哪里设置它。
- 我决定在以下位置配置我的设置:~/etc/nginx/sites-available/default
server {
listen 80 default_server;
server_name
default;
root / home / forge / aveniros / public;
index index.html index.htm index.php;
#
FORGE SSL(DO NOT REMOVE!)# ssl_certificate;#
ssl_certificate_key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
index index.html index.htm index.php;
charset utf - 8;
location / {
try_files $uri $uri / /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /
var / log / nginx /
default -error.log error;
error_page 404 / index.php;
location~\.php$ {
fastcgi_split_path_info ^ (. + \.php)(/.+)$;
fastcgi_pass unix: /var/run / php5 - fpm.sock; fastcgi_index index.php; include fastcgi_params;
}
location~/\.ht {
deny all;
}
}
然后,我保存后运行sudo service nginx restart。
似乎没有任何效果。
有人可以告诉我我在这里做错了什么吗?
【问题讨论】:
-
只留下一个
index index.php; -
现在我得到
No input file specified.!!!!
标签: php linux laravel nginx laravel-5