-
Notifications
You must be signed in to change notification settings - Fork 2
Changing the Server Name
In the event that a server's name must be changed, several alterations to the system should be made. It may be a good idea to save a copy of all files/directories altered during this process in case one makes a mistake and must quickly revert to the old configuration. Note that one should also review provisions.sh for where the $serverName variable is used prior to following the steps outlined below.
- Note: IT should be contacted and consulted on changing the name of the web address for a server if necessary. For instance, one should speak with IT about changing from ops2.cresis.ku.edu to ops.cresis.ku.edu. The below changes are mainly to keep the system internally consistent and are not strictly necessary (one could have IT alter the web address of ops without making any further changes).
- Stop services:
service httpd stop
service tomcat6 stop
-
use the mv command to move
/var/www/sites/[current server name]/
to/var/www/sites/[new server name]/
-
Edit
/etc/httpd/conf/httpd.conf
and replace the lineInclude /var/www/sites/[current server name]/conf/ops.conf
withInclude /var/www/sites/[new server name]/conf/ops.conf
-
Edit the /var/www/sites/[server name]/conf/ops.conf and replace all instances of the current server's name with the new server's name.
-
Replace the current server's name in the allowedHosts list defined in
/var/www/sites/[server anme/cgi-bin/proxy.cgi
-
Restart services:
service tomcat6 start
service httpd start
- Test that the GeoPortal and OPS Django views work/respond correctly from the web browser and MATLAB (opsTests.m can be run from MATLAB).