25 lines
666 B
Plaintext
25 lines
666 B
Plaintext
server {
|
|
server_name demoadmin.spottorg.ru;
|
|
listen 443 ssl;
|
|
|
|
ssl_certificate /etc/letsencrypt/live/spottorg.ru/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/spottorg.ru/privkey.pem;
|
|
ssl_trusted_certificate /etc/letsencrypt/live/spottorg.ru/chain.pem;
|
|
|
|
|
|
index index.php index.html index.htm;
|
|
root /application/public;
|
|
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.php?$args;
|
|
}
|
|
|
|
location ~ \.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
|
|
fastcgi_pass localhost:9000;
|
|
try_files $uri =404;
|
|
fastcgi_index index.php;
|
|
}
|
|
} |