How to enable multiple ports on Apache?

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.

Attribution
Source : Link , Question Author : Community , Answer Author : joschi

Leave a Comment