/etc/nginx/sites-available/
server {
listen 80 ;
root /data/website/new.lanhaitools.com/public;
index index.php index.html;
server_name new.lanhaitools.com;
location / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php?s=/$1 last;
}
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
}
网友评论