Initial commit.
This commit is contained in:
34
nginx/conf.d/files.898.ro.conf
Normal file
34
nginx/conf.d/files.898.ro.conf
Normal file
@@ -0,0 +1,34 @@
|
||||
server {
|
||||
listen 192.168.1.2:80;
|
||||
server_name files.898.ro;
|
||||
charset utf-8;
|
||||
root /var/www/html/afiles;
|
||||
index index.php index.html index.htm;
|
||||
|
||||
access_log /var/log/nginx/files.898.ro.access.log;
|
||||
error_log /var/log/nginx/files.898.ro.error.log;
|
||||
|
||||
location ~* \.php$ {
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
include fastcgi_params;
|
||||
fastcgi_pass unix:/var/run/php-fpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_buffer_size 16k;
|
||||
fastcgi_buffers 4 16k;
|
||||
}
|
||||
|
||||
# gzip should not be used with SSL
|
||||
gzip off;
|
||||
|
||||
listen 192.168.1.2:443 ssl; # managed by Certbot
|
||||
ssl_certificate /etc/letsencrypt/live/files.898.ro/fullchain.pem; # managed by Certbot
|
||||
ssl_certificate_key /etc/letsencrypt/live/files.898.ro/privkey.pem; # managed by Certbot
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
|
||||
|
||||
### redirect
|
||||
if ($scheme != "https") {
|
||||
return 301 https://$host$request_uri;
|
||||
} # managed by Certbot
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user