Apache - Add new port

If your current apache server port is 8001 (http://localhost:8001). Your configuration in httpd.conf is

Listen 8090

But if you want to add a new port ex. 8002 (http://localhost:8002). You just only add this code into httpd.conf, save your file and restart apache server. You'll access a new port.


The code is:

Listen 8002
<VirtualHost localhost:8002>
DocumentRoot D:/myNewWebSite/
</VirtualHost>

Popular posts from this blog

SAP CPI - Loop Process Call with SuccessFactor (oData V2)

Setting IntelliJ IDEA to run Groovy Script

C# - BASE64 to Image