Skip to content

Commit

Permalink
🔧 Allow non-default upload_path (#1471)
Browse files Browse the repository at this point in the history
  • Loading branch information
retlehs authored Feb 10, 2023
1 parent 3aae194 commit 756319f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ server {

{% block location_uploads_php -%}
# Prevent PHP scripts from being executed inside the uploads folder.
location ~* /app/uploads/.*\.php$ {
location ~* /{{ item.value.upload_path | default('app/uploads') }}/.*\.php$ {
deny all;
}
{% endblock %}
Expand Down

0 comments on commit 756319f

Please sign in to comment.