search
HomeOperation and MaintenancephpstudySteps to configure multi-site and multiple domain names in phpStudy

Steps to configure multi-site and multiple domain names in phpStudy

Jun 10, 2019 pm 02:20 PM
phpphpstudyMultiple domain namesmultisite

Steps to configure multi-site and multiple domain names in phpStudy

First, open the site domain name management. The configuration is as follows. You can set the website domain name and directory yourself. Reset the port to one other than 80. Then add it first and then save it.

Steps to configure multi-site and multiple domain names in phpStudy

Open the configuration file vhosts, and you will see the addition of port 801

Steps to configure multi-site and multiple domain names in phpStudy

In the configuration file http. conf, add a new port number after 80

Steps to configure multi-site and multiple domain names in phpStudy

and then configure it in the hosts file, 127.0.0.1 www.aaa.com

Steps to configure multi-site and multiple domain names in phpStudy

Then again, Mader GG, forbidden appears, 403, no access rights.

After a lot of effort, I finally found the solution. I will copy the content of the solution first, and finally attach the address of the original article.

First step

Add under the hosts file under C:\Windows\System32\drivers\etc (do not add the # sign in front, it is a comment)

Steps to configure multi-site and multiple domain names in phpStudy

The second step

Find the httpd.conf file under Apache and open it, remove the

Steps to configure multi-site and multiple domain names in phpStudy

in front of line 171

#The third step

In the apache configuration file vhosts.conf, configure the following content

Steps to configure multi-site and multiple domain names in phpStudy

Just restart Apache. . . . The domain name is assigned. .

There is another problem at this time

Steps to configure multi-site and multiple domain names in phpStudy

The browser displays a page like this

But when you enter www.test.com/index .php, you can access the index.php program

You need to write the full path. . . . How to break. . .

Comment out the 18 lines in the third step or add (plus sign) in front of the two words after options and then restart Apache to directly access www.test.com

This The problem is solved! ! ! !

There is another problem at this time

You can’t see the folders in index.php directly. . . I skipped it directly, so what?

No problem, just go and visit.

Open httpd.conf at this time, comment out line 251, and the problem will be solved (sometimes you don’t need to comment out, it depends on your own situation)

It seems to be a static website Annotations are required, but not for dynamic websites.

Steps to configure multi-site and multiple domain names in phpStudy

Add another sentence and bring the port when accessing, such as: http://www.aaa.com:801/

Okay, happy programming

Recommended tutorial: phpStudy quick entry video tutorial

The above is the detailed content of Steps to configure multi-site and multiple domain names in phpStudy. 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

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment