We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42abc66 commit ebf4ea8Copy full SHA for ebf4ea8
cookbook/configuration/web_server_configuration.rst
@@ -202,6 +202,13 @@ are:
202
server_name domain.tld www.domain.tld;
203
root /var/www/project/web;
204
205
+ if ($request_uri ~ "/app\.php(/|$)") {
206
+ # prevent explicit access and hide front controller
207
+ # remove this block if you want to allow uri's like
208
+ # http://domain.tld/app.php/some-path
209
+ return 404;
210
+ }
211
+
212
location / {
213
# try to serve file directly, fallback to app.php
214
try_files $uri /app.php$is_args$args;
0 commit comments