24 lines
579 B
Plaintext
24 lines
579 B
Plaintext
|
server {
|
||
|
listen 80;
|
||
|
server_name chiro-canto;
|
||
|
return 302 https://chiro-canto;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl;
|
||
|
server_name chiro-canto;
|
||
|
root /var/www/chiro-canto/public;
|
||
|
location / {
|
||
|
|
||
|
}
|
||
|
ssl_certificate /etc/nginx/ssl/cert.pem;
|
||
|
ssl_certificate_key /etc/nginx/ssl/privkey.pem;
|
||
|
index index.php index.html;
|
||
|
location ~ \.php$ {
|
||
|
fastcgi_pass unix://var/run/php-fpm/www.sock;
|
||
|
fastcgi_index index.php;
|
||
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||
|
include fastcgi_params;
|
||
|
}
|
||
|
}
|