我很不幸的又出了个403的错误 403 Forbidden nginx/1.10.3 (Ubuntu) 执行service nginx restart后发生的 然后我把laravel项目删掉后就会变成404 Not Found
我看了另一个你的17年6月的视频,解决了。有可能是版本配置不一样的问题
检查了2遍,没少
/etc/nginx/sites-enabled/default文件:
location ~ \.php${
try_files $uri /index.php =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php7.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/fastcgi_params;
}
nginx.service" and "journalctl -xe" for details. 请问这个是什么原因? nginx -t 显示 nginx: [emerg] directive "location" has no opening "{" in /etc/nginx/sites-enabled/default:63
nginx: configuration file /etc/nginx/nginx.conf test failed
这个也解决了,/etc/hosts 文件 127.0.0.1 localhost 加上主机名就好了。
解决了,谢谢!
确定有,不知道为什么,有些命令执行起来很正常,有些命令还会告诉我无法解析主机。
git push -u origin master 的时候为什么总让我输入Atlassian账户?这个是必须的流程还是可以避免?可以避免的话又怎样操作?
sudo chown -R www-data:www-data /var/www
sudo chown -R www-data:www-data /var/www