I would like to ask teachers, how can I build two local websites on my computer at the same time? If you don't have a domain name, you can only use it to test the website on your own computer?
程序部2017-09-13 15:22:59
0
3
1219
I tried assigning a port to each website, but web pages with ports always automatically remove the port. That is, the website that always jumps to the default port.
Is there a better way to achieve this? The LAN is accessible to others.
Look at the picture!
你配置vhosts.conf文件.
<VirtualHost _default_:80>
DocumentRoot "D:/php_laojiu/tpjiaoxuexitong/public"
serverName www.baidu.com
<Directory "D:/php_laojiu/tp/public">
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
I am learning, I have just started learning, let’s learn slowly together, and you must persist in learning. . . . .