server {
listen 80;
listen [::]:80;
root /var/www/laravel/public;
index index.php index.html index.htm;
server_name my_app.dev;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
}
location ~ /\.ht {
deny all;
}
No comments:
Post a Comment