Read the docs redirects https://docs.ansible.com/ansible/ - points to the ec2 instance https://docs.ansible.com/ansible-core/ - points to https://ansible.readthedocs.io/projects/ansible-core/ Configuring a test setup DNS docs.ansible.com -> 3 IPs (LB) -> EC2 instance(s) -> Nginx/Apache (docs.ansible.com) -> /var/www/docs/ DNS docs.ansible.com -> 3 IPs (LB) -> EC2 instance(s) -> Nginx/Apache (docs.ansible.com) /ansible/ -> /var/www/docs/ /ansible-core/ -> redirect ansible.readthedocs.org/ansible-core/ /(.*)/ -> redirect DNS testdocs.ansible.com -> 3 IPs (LB) -> EC2 instance(s) -> Nginx/Apache (testdocs.ansible.com) docs.ansible.com/stage-docs -> ansible.readthedocs.org/ansible-core/ 1/ Ask new DNS entry for testdocs.ansible.com 2/ ssh ec2 instance duplicate current httpd vhost docs.ansible.com cp -av docs.ansible.com testdocs.ansible.com 3/ update .htaccess file (testdocs.ansible.com) for new redirect rules 4/ remove testdocs.ansible.com vhost 5/ update .htaccess file (docs.ansible.com) for ansible-core