2022-08-30 20:33:38 -04:00
|
|
|
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;
|
|
|
|
|
2022-08-30 20:56:17 -04:00
|
|
|
root /var/www/orangehrm/symfony/web;
|
2022-08-30 20:33:38 -04:00
|
|
|
index index.php index.html index.htm;
|
2022-08-30 20:54:16 -04:00
|
|
|
client_max_body_size 100M;
|
2022-08-30 20:33:38 -04:00
|
|
|
|
|
|
|
access_log /var/log/nginx/hr_access.log;
|
|
|
|
error_log /var/log/nginx/hr_error.log;
|
|
|
|
|
|
|
|
location / {
|
2022-08-30 20:44:14 -04:00
|
|
|
try_files $uri $uri/ /index.php?$uri&$args;
|
2022-08-30 20:39:51 -04:00
|
|
|
}
|
|
|
|
|
2022-08-30 20:44:14 -04:00
|
|
|
location ~ \.php$ {
|
|
|
|
include snippets/fastcgi-php.conf;
|
2022-08-30 20:45:14 -04:00
|
|
|
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
|
2022-08-30 20:33:38 -04:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
2022-08-30 20:44:14 -04:00
|
|
|
include fastcgi_params;
|
2022-08-30 20:33:38 -04:00
|
|
|
}
|
|
|
|
}
|