salt/states/roles/maintain/atheos/nginx.conf
2022-08-09 09:41:35 -05:00

34 lines
803 B
Nginx Configuration File

server {
listen 8080
server_name atheos.actcur.com;
root /sites/atheos;
index index.html index.htm index.php;
charset utf-8;
rewrite_log on;
location / {
try_files $uri $uri/ @laravel;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/www;
}
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ /\.(?!well-known).* {
deny all;
}
error_log /var/log/nginx/ra_error.log notice;
access_log /var/log/nginx/ra_access.log;
}