Skip to content

Redirecting a Subdomain on Bucket#

View the Stanza for the HTTP version of the Site#

  1. Go to /etc/httpd/conf: cd etc/httpd/conf

  2. Edit the httpd.conf file: sudo nano httpd.conf

  3. Go to the bottom of the file where the virtual hosts stanzas are.

  4. Update the stanza to change the “Redirect Permanent URL” to the correct URL. bucket image 2

  5. Save.

  6. Restart apache: systemctl restart httpd

  7. Make sure apache is running: systemctl status httpd.service

  8. Test on the web to see if the http redirect works.

  9. Test other sites on Bucket to make sure you didn’t kill them.

  10. https://assets.library.nashville.gov/css/aspen-widgets.css

  11. Make sure that the Virtual Host settings here match what is in the ssl.conf file.

View the Stanza for the HTTPS version of the Site#

  1. Go into /etc/httpd/conf.d: cd etc/httpd/conf.d

  2. Edit the conf file with nano: sudo nano ssl.conf

  3. Go to the bottom of the file where the virtual hosts stanzas are.

  4. Update the stanza to add “Redirect permanent / [URL for the redirect to point to”.

  5. Test on the web to see if the http redirect works.

  6. Test other sites on Bucket to make sure you didn’t kill them.

  7. https://assets.library.nashville.gov/css/aspen-widgets.css

  8. Update the stanza to add “Redirect permanent / [URL for the redirect to point to.” bucket image 1

  9. Save

  10. Restart apache: systemctl restart httpd

  11. Make sure apache is running: systemctl status httpd.service

  12. Test on the web to see if the https redirect works.

  13. Test other sites on Bucket to make sure you didn’t kill them.

  14. https://assets.library.nashville.gov/css/aspen-widgets.css

  15. Make sure that the Virtual Host settings here match what is in the httpd.conf file.