fix gouter reverse

This commit is contained in:
Valentin CZERYBA 2023-04-22 12:33:29 +02:00
parent 59c2b26213
commit 4c433bfde8

View File

@ -18,7 +18,6 @@ server {
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
#add_header Link "<https://www.clarissariviere.com$request_uri;> rel=\"canonical\", <https://www.clarissariviere.fr$request_uri;> rel=\"alternate\" hreflang=\"fr\"";
proxy_cache STATIC;
location / {
set $header "<https://www.clarissariviere.com$request_uri;> rel=\"canonical\", <https://www.clarissariviere.fr$request_uri;> rel=\"alternate\" hreflang=\"fr\"";
if ($request_uri ~ "/tag/") {
set $header "<https://www.clarissariviere.com;> rel=\"canonical\", <https://www.clarissariviere.fr;> rel=\"alternate\" hreflang=\"fr\"";
@ -26,6 +25,8 @@ server {
}
add_header Link $header;
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
#try_files $uri $uri/ =404;