Skip to content
Snippets Groups Projects
Commit d1a4c075 authored by Stéphane Diemer's avatar Stéphane Diemer
Browse files

Changed redirect in Nginx config. Fixed CM APT proxy url.

parent 1d0bff63
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ server {
root /tmp/letsencrypt;
}
location / {
rewrite ^ https://$host$request_uri? permanent;
return 301 https://$host$request_uri;
}
}
......
......@@ -7,7 +7,7 @@ server {
root /tmp/letsencrypt;
}
location / {
rewrite ^ https://$host$request_uri? permanent;
return 301 https://$host$request_uri;
}
}
......
......@@ -7,7 +7,7 @@ server {
root /tmp/letsencrypt;
}
location / {
rewrite ^ https://$host$request_uri? permanent;
return 301 https://$host$request_uri;
}
}
......@@ -67,13 +67,7 @@ server {
}
# APT proxy urls
location /fr.archive.ubuntu.com/ubuntu {
proxy_pass http://127.0.0.1:3142;
}
location /security.ubuntu.com/ubuntu {
proxy_pass http://127.0.0.1:3142;
}
location /old-releases.ubuntu.com/ubuntu {
location ~ /[\w\d\.-_]+.ubuntu.com/ubuntu {
proxy_pass http://127.0.0.1:3142;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment