Skip to content

Commit

Permalink
Disable directory listing for woudc-ui folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Ngai committed Aug 23, 2022
1 parent 5469d96 commit 62cefc9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy/default/woudc-ui.conf
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ DocumentRoot /data/web/woudc-ui/dist
Redirect 301 /contributors?lang=en /en/contributors
Redirect 301 /contributors?lang=fr /fr/contributeurs

Redirect 301 /contributors/validation.php /en/contributors/validation
Redirect 301 /contributors/validation.php?lang=en /en/contributors/validation
Redirect 301 /contributors/validation.php?lang=fr /fr/contributeurs/validateur

Redirect 301 /contributors/data-submission.php /en/contributors/data-submission
Redirect 301 /contributors/data-submission.php?lang=en /en/contributors/data-submission
Redirect 301 /contributors/data-submission.php?lang=fr /fr/contributeurs/soumission-de-donnees
Expand Down Expand Up @@ -139,7 +143,7 @@ ReadmeName README.txt
</Location>

<Directory /data/web/woudc-ui/dist>
Options Indexes FollowSymLinks
Options FollowSymLinks
AllowOverride All
Require all granted
Header set Content-Security-Policy "default-src 'self' *.gc.ca *.woudc.org; connect-src 'self' https:; script-src https: 'self' 'unsafe-eval' 'unsafe-inline'; style-src https: 'self' 'unsafe-inline'; font-src https: 'self' 'unsafe-inline'; img-src 'self' 'unsafe-inline' data: https:;"
Expand Down

0 comments on commit 62cefc9

Please sign in to comment.