Current location - Quotes Website - Team slogan - Can two web projects use one port number? Wait online. . Urgent. . The scores are sent to each other. Time limit 1 hour
Can two web projects use one port number? Wait online. . Urgent. . The scores are sent to each other. Time limit 1 hour
You can change the port.

You can choose to change the so-called host header, so you don't choose to change the port.

If it is apache, you can set up VirtualHost.

& lt virtual host *>

Server name www.abc.org

DocumentRoot /var/www/abc

& lt/virtual host & gt;

The following specific examples can be reconfigured according to your own needs.

& lt virtual host *>

Server name Baidu.com

ServerAdmin pepsi_zh@****。 com

DocumentRoot "F:/www/ project folder "

error log logs/dummy-host . example . com-error _ log

custom log logs/dummy-host . example . com-access _ log common

Index.html index.htm index

index.html· index.htm· index.php

& lt/virtual host & gt;

& lt directory "F:/www/ project folder" >

Order permission and rejection

Allow everyone

& lt/Directory & gt;