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.

程序部
程序部

天涯何处不相逢

reply all(3)
1s丶Hakuna matata

Look at the picture!

TIM截图20170915180253.png


00练习本

你配置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>


phpcn_u11329

I am learning, I have just started learning, let’s learn slowly together, and you must persist in learning. . . . .

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!