Yii2/Nginx配置文件实例
server { listen 80; server_name missmanga.icitymedia.com; access_log logs/missmanga.icitymedia.com.access.log; root /var/www/html/icity/camp/missmanga/web; location / { index index.php; if (!-e $request_filename){ rewrite ^/(.*) /index.php last; } } location ~ .php(?|$) { #fastcgi(php-fpm) listening on 127.0.0.1:9000 root /var/www/html/icity/camp/missmanga/web; include /opt/nginx/conf/fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_pass 127.0.0.1:9000; } location ~ .(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ { root /var/www/html/icity/camp/missmanga/web; } }
(0)
(0)
1882
0
发送私信
请先 登录 再发送.
最新评论
请先 登录 再评论.