diff --git a/nginx.conf b/nginx.conf index 975e9521d4..d466b7ae75 100644 --- a/nginx.conf +++ b/nginx.conf @@ -421,10 +421,16 @@ server { location /python { proxy_pass https://apify.github.io/crawlee-python/; } + # So that we can have both GH pages and crawlee.dev/python working and loading assets from the same path location /crawlee-python { proxy_pass https://apify.github.io/crawlee-python/; } + + # Redirect rule for old JS docs to go under /js prefix + rewrite ^/docs(.*)$ /js/docs$1 permanent; + rewrite ^/api(.*)$ /js/api$1 permanent; + # Redirect rule for "upgrading-to-v03" to "upgrading-to-v0x" rewrite ^/python/docs/upgrading/upgrading-to-v03$ /python/docs/upgrading/upgrading-to-v0x permanent;