1 year ago
17 lines495 B
server { | |
listen 443 ssl http2; | |
server_name glibcode.net www.glibcode.net; | |
root /var/www/glibcode/current/public; | |
| |
ssl_certificate /etc/letsencrypt/live/glibcode.net/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/glibcode.net/privkey.pem; | |
| |
index index.php; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { | |
include snippets/fastcgi-php.conf; | |
fastcgi_pass unix:/run/php/php7.4-fpm.sock; | |
} | |
} |