Home > Backend Development > PHP Tutorial > phpstudy virtual domain name configuration

phpstudy virtual domain name configuration

不言
Release: 2023-03-24 08:54:02
Original
5599 people have browsed it

This article introduces the content of phpstudy virtual domain name configuration, which has certain reference value. Now I share it with everyone. Friends in need can refer to it

Step one: In C: Add


to the hosts file under \Windows\System32\drivers\etc

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






#Step 3: In the vhosts.conf file, configure the following content


##

ServerAdmin auth.com

DocumentRoot "D: /phpStudy/WWW/Auth" ServerName auth.com
ErrorLog "logs/auth.com-error.log"
CustomLog "logs/auth.com-access.log" common


# Things to note: In bulk software, By default, it is in the httpd-vhosts.conf file. The phpstudy software is in vhosts.conf in Apache. It’s hard to make a mistake!


#http://www .chinacion.cn/article/1535.html

Configure the virtual domain name. It cannot end with .dev. It must end with .com. Google Chrome will force it by default. Go to https


Related recommendations:

phpstudy Pseudo-static settings for php5.4 or above

The above is the detailed content of phpstudy virtual domain name configuration. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template