This repository has been archived on 2021-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Dockerfiles/unmaintened/phproject/rootfs/nginx/sites-enabled/phproject.conf

38 lines
532 B
Plaintext

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;
try_files $uri $uri/ /index.php?$args;
include /nginx/conf.d/php.conf;
}
include /nginx/conf.d/php.conf;
location ~ ^/app/(controller|dict|helper|model|view) {
deny all;
}
location ~ /\.ht {
deny all;
}
location ~ /config\.ini {
deny all;
}
client_max_body_size 64M;
}