Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

How to configure a port other than 80 in Apache

8:33 am on May 6, 2013 (gmt 0)

Full Member

5+ Year Member

joined:Dec 12, 2007
votes: 0

Hi everyone.
Can someone help me by pointing me to the right way of configuring a port other than the default one (80) in Apache for PHP applications? For instance something like http://subdomain.domain.gov.bi:8081/
How do I configure the 8081 port in Apache? Is it safe for a web application to use port 80?

Thanks for your great help

[edited by: phranque at 10:00 am (utc) on May 6, 2013]
[edit reason] unlinked url [/edit]

10:05 am on May 6, 2013 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 8

you will need the Listen directive and probably willl need to do something with the VirtualHost container.

note that both of these directives require access to the server config.

Configuring Apache HTTP Server to listen on specific addresses and ports:
http://httpd.apache.org/docs/current/bind.html [httpd.apache.org]