Moving /var/www/html directories around

Print Friendly, PDF & Email

As we transition from Puma being the department’s web server to Tempest, I think it makes sense to put content in /home, since that’s mounted on both machines, rather than in /var/www/, which is local to each machine.

I copied the following from puma:/var/www/html/ to ~sysadmin/public_html:

accounts 
user-info
sysadmin

I also modified the /etc/httpd/conf.d/wellesley.conf file to set up redirects so that references to the original files would find the new location:

[root@tempest ~]# cd /home/sysadmin/etc/httpd/conf.d/
[root@tempest conf.d]# grep Redirect wellesley.conf
# Redirects to the files in the SysAdmin account, which is mounted on both servers.
Redirect permanent /accounts/ http://tempest.wellesley.edu/~sysadmin/accounts/
Redirect permanent /user-info/ http://tempest.wellesley.edu/~sysadmin/user-info/
Redirect permanent /sysadmin/ http://tempest.wellesley.edu/~sysadmin/sysadmin/

To make updating this file (and both copies in the real /etc on the two servers), I created a script called /home/sysadmin/bin/update-etc-file.

I did not delete the original directories, but I did put README files in there saying they were obsolete.  Eventually, we should delete them.  Or check to make sure they’re in the backups and then delete them.

 

About CS SysAdmins

The CS Department System Administrators
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *