search
HomeBackend DevelopmentPHP ProblemHow to modify the specified root directory of a domain name in php

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].

How to modify the specified root directory of a domain name in php

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 显示里面的文件

How to modify the specified root directory of a domain name in php

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

How to modify the specified root directory of a domain name in php

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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft