Delete "zentao" from your address
- 2015-09-14 11:25:16
- azalea
- 8673
- Last edited by xiying guan on 2018-12-06 10:10:29
After deploying ZenTao, there are still access paths including zentao. Some users might want to know how to delete it. That’s quite easy and let’s configure it together.
2. General configuration
If you configureD Apache server by yourself, please refer to the following steps.
2.1 Find configuration files of Apache. File locations are not the same in different systems. Usually, they are saved in the directory of apache/conf in Windows and /etc/apache or /etc/httpd in Linux.
2.2 Find configuration files of the virture machine. Some have separated httpd-vhost.conf, while other are written in httpd.conf.
1. Configure the one-click installation package
There is configuration template for the one-click installaction package. What you need to do is to turn on relavant parameters. Find xampp\apache\config\httpd.conf in Windows or /opt/lampp/etc/httpd.conf in Linux.Find virutalhost, delete the comments and then restart Apache.
# If you want visit zentao like http://localhost/, uncomment these lines. #<VirtualHost *:81> # ServerAdmin zentao@local.net # DocumentRoot "/xampp/zentao/www" # ServerName localhost:81 # <Directory /> # AllowOverride none # Require all granted # </Directory> # ErrorLog "logs/error_log" # CustomLog "logs/access_log" combind #</VirtualHost>
2. General configuration
If you configureD Apache server by yourself, please refer to the following steps.2.1 Find configuration files of Apache. File locations are not the same in different systems. Usually, they are saved in the directory of apache/conf in Windows and /etc/apache or /etc/httpd in Linux.
2.2 Find configuration files of the virture machine. Some have separated httpd-vhost.conf, while other are written in httpd.conf.
2.3 When you find the configurationf files of the virtual machine, configure the follwing code.
<VirtualHost *:80> ServerName pms.zentao.ne# here the serverName is your actual domain name. DocumentRoot /home/www/zentaopms/www/ # here www refers to your actual www directory in zentao. <Directory /> Options FollowSymLinks AllowOverride All </Directory> </VirtualHost>
2.4 Find the file zentao/config/my.php. If it is $config-> webRoot equals getWebRoot (), skip this step. Otherwise, change it to $config-> webRoot = '/' and restart apache.
$config->webRoot = '/';
Write a Comment