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.

    1. https://salon.library.nashville.org
    2. https://assets.library.nashville.org/css/aspen-widgets.css
  10. 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.

    1. https://salon.library.nashville.org
    2. https://assets.library.nashville.org/css/aspen-widgets.css
  7. Update the stanza to add “Redirect permanent / [URL for the redirect to point to.” bucket image 1

  8. Save

  9. Restart apache: systemctl restart httpd

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

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

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

    1. https://salon.library.nashville.org
    2. https://assets.library.nashville.org/css/aspen-widgets.css
  13. Make sure that the Virtual Host settings here match what is in the httpd.conf file.