server {
listen 8080;
root /phproject;
index index.php;
server_name <PUBLIC_URL>;
# Dynamic URLs
location / {
try_files $uri $uri/ /index.php?$args;
}
# Disable logging of ping requests
location /ping {
access_log off;
include /nginx/conf.d/php.conf;
location ~ ^/app/(controller|dict|helper|model|view) {
deny all;
location ~ /\.ht {
location ~ /config\.ini {
client_max_body_size 64M;