Skip to content

Commit

Permalink
Fix configuration for logos in nginxplus CDH error pages (#5373)
Browse files Browse the repository at this point in the history
* Remove proxy http version configuration line (breaks the site)

* Update error template to look for CDH logo image at root of site

* Use alias instead of root for error images
  • Loading branch information
rlskoeser authored Sep 23, 2024
1 parent 3a71c2b commit 5bae0ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion roles/nginxplus/files/cdh-error.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h1>Looks like something went wrong!</h1>
</p>
<p>
<a href="https://cdh.princeton.edu">
<img src="CDH_logo.svg" alt="Center for Digital Humanities"/>
<img src="/CDH_logo.svg" alt="Center for Digital Humanities"/>
</a>
</p>
</div>
Expand Down
2 changes: 1 addition & 1 deletion roles/nginxplus/files/cdh-forbidden.html
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ <h1>You cannot access this page from your current IP.</h1>
</p>
<p>
<a href="https://cdh.princeton.edu">
<img src="CDH_logo.svg" alt="Center for Digital Humanities"/>
<img src="/CDH_logo.svg" alt="Center for Digital Humanities"/>
</a>
</p>
</div>
Expand Down
4 changes: 2 additions & 2 deletions roles/nginxplus/files/conf/http/templates/cdh-errors.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ error_page 403 /cdh-forbidden.html;

location = /CDH_logo.svg {
ssi on;
root /var/local/www/default;
alias /var/local/www/default/CDH_logo.svg;
}

location = /pul_logo_new.svg {
ssi on;
root /var/local/www/default;
alias /var/local/www/default/pul_logo_new.svg;
}

0 comments on commit 5bae0ef

Please sign in to comment.