Files
2024-10-26 20:34:27 +00:00

41 lines
1.0 KiB
Plaintext
Executable File

server {
listen 80;
index index.php /_h5ai/public/index.php;
server_name 172.16.1.67; # change to your own domain
root /usr/share/nginx/html;
# individual nginx logs for this vhost
access_log /var/log/nginx/cios_dhitechnical_com_access.log main; # change to your own domain
error_log /var/log/nginx/cios_dhitechnical_com_error.log warn; # change to your own domain
if (-f $document_root/maintenance.html) {
return 503;
}
error_page 503 @maintenance;
location @maintenance {
rewrite ^(.*)$ /maintenance.html break;
}
location /_h5ai/private {
return 403;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
if (!-f $document_root$fastcgi_script_name) {
return 404;
}
fastcgi_param HTTP_PROXY "";
fastcgi_pass php-fpm:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}