123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- server {
- listen 80;
- listen [::]:80;
- server_name localhost;
-
- return 301 https://$host$request_uri;
- }
- server {
-
-
- listen 443 ssl;
- listen [::]:443;
- ssl_certificate /etc/nginx/ssl/localhost.crt;
- ssl_certificate_key /etc/nginx/ssl/localhost.key;
-
-
-
- gzip off;
-
-
-
- root /var/www/html;
-
- index index.html index.htm index.php;
- server_name localhost;
- location / {
-
-
- try_files $uri $uri/ =404;
- }
-
-
- location ~ \.php$ {
- include snippets/fastcgi-php.conf;
-
-
- fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
- }
-
-
-
-
-
- }
|