-4

Is there any possible way to make PHP run on both ports 80 and 8800? If yes please tell me instructions how to do it. I am using apache2 as my HTTP server.

EDIT: I am actually trying to make PHP work into tornado framework which runs on port 8800.

geotsak
  • 107
  • 1
  • 10

1 Answers1

3

I think you are talking more about having apache run on multiple ports. If this is the case you should simply have to edit your apache config to have the following:

Listen 80
Listen 8080

You will likely need to add virtual hosts for both of these ports ie:

NameVirtualHost *:80
NameVirtualHost *:8080

<VirtualHost *:80>
    DocumentRoot "C:\WWW\test.com\public_html"
</VirtualHost>

<VirtualHost *:8080>
    DocumentRoot "C:\WWW\test.com\public_html"
</VirtualHost>

Once this has been done you need to restart the apache service.

The Humble Rat
  • 4,586
  • 6
  • 39
  • 73