From 6335fcf99bb80be2a3fda262a146af6a738694c1 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Thu, 8 Jul 2021 22:58:44 -0400 Subject: [PATCH] additions or whateva --- .../journal.libraryofcode.org.conf | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 Nginx/Server Blocks/journal.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/journal.libraryofcode.org.conf b/Nginx/Server Blocks/journal.libraryofcode.org.conf new file mode 100644 index 0000000..2edd1e8 --- /dev/null +++ b/Nginx/Server Blocks/journal.libraryofcode.org.conf @@ -0,0 +1,53 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name journal.libraryofcode.org; + + root /var/www/ojs; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + add_header X-Frame-Options "SAMEORIGIN"; + add_header X-XSS-Protection "1; mode=block"; + add_header X-Content-Type-Options "nosniff"; + + index index.html index.htm index.php; + + charset utf-8; + + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location = /favicon.ico { + access_log off; + log_not_found off; + } + ; + location = /robots.txt { + access_log off; + log_not_found off; + } + ; + + access_log off; + error_log /var/log/nginx/evidenciaonojs.tk-error.log error; + + error_page 404 /index.php; + + location ~ ^(.+\.php)(.*)$ { + set $path_info $fastcgi_path_info; + fastcgi_split_path_info ^(.+\.php)(.*)$; + fastcgi_param PATH_INFO $path_info; + fastcgi_param PATH_TRANSLATED $document_root$path_info; + fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; + fastcgi_index index.php; + include fastcgi_params; + } + + location ~ /\.(?!well-known).* { + deny all; + } +}