How to enable multiple ports on Apache? March 22, 2022 by admin When I visit http://localhost ,use htdocs1 But if I visit localhost:81,use htdocs2,how to do that? Answer Just use multiple Listen statements and read Apache httpd’s documentation on Binding. AttributionSource : Link , Question Author : Community , Answer Author : joschi