30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
user nginx;
|
|
worker_processes 1;
|
|
pid /var/run/nginx.pid;
|
|
events { worker_connections 256; }
|
|
http {
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
server_tokens off;
|
|
server {
|
|
listen 64444 ssl;
|
|
ssl_certificate /etc/letsencrypt/live/c2.deeplink-subscribe.com/fullchain.pem;
|
|
ssl_certificate_key /etc/letsencrypt/live/c2.deeplink-subscribe.com/privkey.pem;
|
|
root /var/www/html;
|
|
index index.php;
|
|
location / { try_files $uri /index.php$is_args$args; }
|
|
location ~ ^/api/[a-z_]+\.php$ {
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
}
|
|
location ~ \.php$ {
|
|
try_files $uri /index.php$is_args$args;
|
|
include fastcgi_params;
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
fastcgi_pass 127.0.0.1:9000;
|
|
}
|
|
location ~ /\. { deny all; }
|
|
}
|
|
}
|