From 5b548eec045b668168f9143dd0f16856ab06e5dd Mon Sep 17 00:00:00 2001 From: Matthew R Date: Tue, 30 Aug 2022 20:33:38 -0400 Subject: [PATCH] add hr site --- Nginx/Server Blocks/hr.libraryofcode.org.conf | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Nginx/Server Blocks/hr.libraryofcode.org.conf diff --git a/Nginx/Server Blocks/hr.libraryofcode.org.conf b/Nginx/Server Blocks/hr.libraryofcode.org.conf new file mode 100644 index 0000000..7e23490 --- /dev/null +++ b/Nginx/Server Blocks/hr.libraryofcode.org.conf @@ -0,0 +1,24 @@ +server { + listen 443 ssl http2; + listen [::]:443 ssl http2; + server_name hr.libraryofcode.org; + + ssl_certificate /etc/nginx/ssl/org.chain.crt; + ssl_certificate_key /etc/nginx/ssl/org.key.pem; + + root /var/www/orangehrm/symfony/web; + index index.php index.html index.htm; + + access_log /var/log/nginx/hr_access.log; + error_log /var/log/nginx/hr_error.log; + + location / { + try_files $uri $uri/ /index.php?$uri&$args; + } + + location ~ \.php$ { + fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; + fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; + include fastcgi_params; + } +}