File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -445,11 +445,11 @@ server {
445445server {
446446 listen 80 ;
447447
448- server_name pull-*. preview.docs.apify.com;
448+ server_name ~ ^ ( ?<subdomain>[^.]+ ) \. preview\ .docs\ .apify\ .com$ ;
449449
450450 location / {
451- rewrite ^/( .*) /$ https://s3.amazonaws.com/apify-docs-preview/pull- $host /$1 /index .html permanent;
452- rewrite ^/( .*[^./]) $ https://s3.amazonaws.com/apify-docs-preview/pull- $host /$1 .html permanent;
453- rewrite ^/( .*) $ https://s3.amazonaws.com/apify-docs-preview/pull- $host /$1 permanent;
451+ rewrite ^/( .*) /$ https://s3.amazonaws.com/apify-docs-preview/$subdomain /$1 /index .html permanent;
452+ rewrite ^/( .*[^./]) $ https://s3.amazonaws.com/apify-docs-preview/$subdomain /$1 .html permanent;
453+ rewrite ^/( .*) $ https://s3.amazonaws.com/apify-docs-preview/$subdomain /$1 permanent;
454454 }
455455}
You can’t perform that action at this time.
0 commit comments