Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/cn/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ route {
# FrankenPHP!
@phpFiles path *.php
php @phpFiles
file_server
file_server {
hide *.php
}
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@ route {
# FrankenPHP!
@phpFiles path *.php
php @phpFiles
file_server
file_server {
hide *.php
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure it makes sense to add hide *.php to this specific configuration. It might make people think they need to add it everywhere, even though in this case it's (as you mentioned) redundant.

Maybe it would make more sense to add a separate section with a specific scenario in which this would be necessary for security?

}
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/fr/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ route {
# FrankenPHP!
@phpFiles path *.php
php @phpFiles
file_server
file_server {
hide *.php
}
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/ru/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ route {
# FrankenPHP!
@phpFiles path *.php
php @phpFiles
file_server
file_server {
hide *.php
}
}
```

Expand Down
4 changes: 3 additions & 1 deletion docs/tr/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ route {
# FrankenPHP!
@phpFiles path *.php
php @phpFiles
file_server
file_server {
hide *.php
}
}
```

Expand Down
4 changes: 3 additions & 1 deletion testdata/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ http:// {
# FrankenPHP!
@phpFiles path *.php
php @phpFiles
file_server
file_server {
hide *.php
}

respond 404
}
Expand Down