标签:position location doc public clu pass www nginx unset
1、nginx 配置
server {
listen 80;
server_name laravel5-test.d.com;
charset utf-8;
location / {
root D:/***/www/test/laravel55-test/public;
index index.php index.html index.htm;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
location ~ \.php$ {
root D:/***/www/test/laravel55-test/public;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
2、composer install
3、php artisan key:generate
参考:
https://blog.csdn.net/jimliu004/article/details/45154981
https://blog.csdn.net/qq_25615395/article/details/79554863
标签:position location doc public clu pass www nginx unset
原文地址:https://www.cnblogs.com/wukong1688/p/12066620.html