


php method to modify the specified root directory of the domain name: 1. Connect to xShell; 2. Enter the root path to find the nginx configuration file; 3. Modify the path, the code is [vi domain name configuration file, such as vi www .PHP.com.conf].
php method to modify the specified root directory of the domain name:
Step 1: Connect to xShell
Step 2: Enter the root path to find the nginx configuration file
cd .. 进入根目录 cd usr 进入usr文件 cd local 进入local文件 cd nginx 进入nginx文件 cd conf 进入conf文件 cd vhost 进入vhost文件 进入vhost文件之后 ll 显示里面的文件
Step 3: Modify the path
The vhost file displays the configuration file of your domain name. If you want to modify the address of which domain name, enter the following command
vi Domain name configuration File, such as vi www.PHP.com.conf
Just modify the root path inside to the path you want to specify
If you want to learn more about programming, please pay attention to the php training column!
The above is the detailed content of How to modify the specified root directory of a domain name in php. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

Atom editor mac version download
The most popular open source editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
