search

Home  >  Q&A  >  body text

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?

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.

程序部程序部2715 days ago1272

reply all(3)I'll reply

  • 1s丶Hakuna matata

    1s丶Hakuna matata2017-09-15 18:02:46

    Look at the picture!

    TIM截图20170915180253.png


    reply
    0
  • 00练习本

    00练习本2017-09-13 17:07:48

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


    reply
    0
  • phpcn_u11329

    phpcn_u113292017-09-13 17:03:38

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

    reply
    0
  • Cancelreply