add canonical web

This commit is contained in:
Valentin CZERYBA 2023-02-15 22:25:05 +01:00
parent 62af6912cd
commit 8c85e36d85

View File

@ -4,6 +4,7 @@ server {
#gzip_static off;
server_name clarissariviere.com clarissariviere.fr www.clarissariviere.fr www.clarissariviere.com;
add_header 'Content-Security-Policy' 'upgrade-insecure-requests';
add_header Link "<https://www.clarissariviere.com; rel=\"canonical\">";
proxy_cache STATIC;
location / {
# First attempt to serve request as file, then
@ -11,6 +12,7 @@ server {
#try_files $uri $uri/ =404;
proxy_set_header Accept-Encoding "";
proxy_pass http://gouters.canalblog.com/;
#add_header Link "<https://www.clarissariviere.com; rel=\"canonical\">";
#proxy_redirect off;
#proxy_set_header Host $host;
#proxy_buffering on;
@ -25,6 +27,7 @@ server {
#proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header X-Forwarded-Proto $scheme;
sub_filter 'gouters.canalblog.com' "$host";
sub_filter '<meta name="generator" content="CanalBlog - https://www.canalblog.com" />' '';
sub_filter_types text/html text/xml text/plain text/css;
sub_filter_once off;