Change folder /mor to another

From KolmiSoft Wiki

Jump to: navigation, search

If billing is reached by: http://<IP>/mor and we want to change it to http://<IP>/billing (example) then we should do following steps:

Debian:

mv /var/www/mor /var/www/billing 

Centos/Fedora:

mv /var/www/html/mor /var/www/html/billing




Debian:

/etc/apache2/conf/httpd.conf

Centos/Fedora:

/etc/httpd/conf/httpd.conf

Change all /mor instances to /billing




/home/mor/public/.htaccess

Change

RewriteBase /mor

to:

RewriteBase /billing




In file: /home/mor/public/javascripts/dtree.js

Change all /mor instances to /billing





In file /home/mor/config/environment.rb

Change

Web_Dir = "/mor"

to:

 Web_Dir = "/billing"

and restart Apache.

Personal tools