Hi,
I am using apache top of CentOS 7. I want to auto redirect my page http://cacti.example.com to http://cacti.example.com/cacti
Kindly need some help and assistance. I already change the documentary root on /etc/httpd/conf/httpd.conf
Redirect page from http://cacti.example.com to http://cacti.example.com/cacti
Moderators: Developers, Moderators
Re: Redirect page from http://cacti.example.com to http://cacti.example.com/cacti
Basically what I did, Hash (#) the "/var/www/html" and added DocumentRoot "/usr/share/cacti/"-
vim /etc/httpd/conf/httpd.conf
#DocumentRoot "/var/www/html"
DocumentRoot "/usr/share/cacti/"
But somehow, after several login could not access on cacti. It was showing like
Somehow, I solved it on : /etc/httpd/conf.d/cacti.conf added following line - - -
RedirectMatch ^/$ http://cacti.example.com/cacti
vim /etc/httpd/conf/httpd.conf
#DocumentRoot "/var/www/html"
DocumentRoot "/usr/share/cacti/"
But somehow, after several login could not access on cacti. It was showing like
Somehow, I solved it on : /etc/httpd/conf.d/cacti.conf added following line - - -
RedirectMatch ^/$ http://cacti.example.com/cacti
Who is online
Users browsing this forum: No registered users and 0 guests