How to configure multiple ports for a domain name in phpStudy
Minter
Minter 2018-09-09 12:05:24
0
1
968

It’s like this, there is a domain name, www.abc.com
And now I want to configure two websites, two ports,
a default 80 www.abc .com Website 1
also want to configure an 8080www.abc.com Website 2.

That is, when visiting www.abc.com, visit website one

When visiting www.abc.com:8080, anti-counterfeiting website two .

Added port monitoring,

configured vhosts.conf. Then in the server, it can be accessed using 172.0.0.1:8080,

, but it cannot be accessed outside the server. Port 8080 has also been added to the outbound and inbound rules.

Do I need to set any other places?


Minter
Minter

reply all(1)
Minter

代码如下;

<VirtualHost *:8080>

    DocumentRoot "C:\inetpub\website\wxvr\wxvr"

    ServerName www.abc.cn:8080

    ServerAlias 

  <Directory "C:\inetpub\website\wxvr\wxvr">

      Options FollowSymLinks ExecCGI

      AllowOverride All

      Order allow,deny

      Allow from all

      Require all granted

  </Directory>

</VirtualHost>


Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template