Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen [::]:80;
- server_name example.com www.example.com;
- return 301 https://$server_name$request_uri;
- }
- server {
- listen 443 ssl http2;
- listen [::]:443 ssl http2;
- include snippets/ssl-example.com.conf;
- include snippets/ssl-params.conf;
- root /var/www/html/quickstart/public;
- index index.php index.html index.htm index.nginx-debian.html;
- server_name example.com www.example.com;
- 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;
- }
- location ~ /.well-known {
- allow all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment