How to modify the default root directory address of the website in the Apache environment of Pagoda Panel

888u

Last update at :2024-07-10,Edit by888u

Generally, by default, when we build a website, the root directory of the website is the direct default homepage. However, for some programs, we may need to set other secondary directories as the default homepage directory. Today Snail encountered this situation when debugging a certain program. The server uses the Pagoda Panel and the WEB environment is Apache. Here you need to find the configuration file of the corresponding site to modify, and the Pagoda Panel should have moved the default configuration file. of.

First, configuration file address

/www/server/panel/vhost/apache

If you are using the Pagoda panel, it is the domain name conf file corresponding to the website under this address. If it is another WEB environment, check whether they have moved somewhere. We can use the find command to find it.

Second, modify the default directory

Here we see 2 default directories. We can just add folders according to the default paths we need.

Third, restart Apache

/etc/init.d/httpd restart

Then we restart apache to take effect.

Recommended site searches: host space, ftp free space, expired registered domain name, domain name proxy, Taiwan host, space registration, free proxy IP address, domain name expiration query, website registration information, mainland China station group server, < /p>

How to modify the default root directory address of the website in the Apache environment of Pagoda Panel

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码