Skip to content

Commit

Permalink
standardized 403 msg
Browse files Browse the repository at this point in the history
  • Loading branch information
traceypooh committed Nov 2, 2024
1 parent 86fcc17 commit 30b2841
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/Caddyfile.ctmpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ https://{{ $hosty }} {
}
http://{{ $hosty }} {
{{ if eq (env "HTTP_DISABLED") "true" }}
respond "Access denied" 403
respond Forbidden 403
{{ else }}
redir https://{host}{uri} permanent
{{ end }}
Expand Down Expand Up @@ -145,7 +145,7 @@ http://{{ $origin | regexReplaceAll "^https://" "" }} {
{{ end }}

{{ if eq (env "HTTP_DISABLED") "true" }}
respond "Access denied" 403
respond Forbidden 403
{{ else }}
@hsts-on {
not {
Expand Down

0 comments on commit 30b2841

Please sign in to comment.