Jump to content

Changing Web Server Port?


gilks
 Share

3 posts in this topic

Recommended Posts

My ISP blocks me from hosting a site on port 80 but to my knowledge most other ports are open. This site is for that PSP/iTunes hack so it doesn't matter which port it is on.

 

My only problem is this, how do I change the port which the web server listens* to?

 

Thanks.

 

*Replace with proper terminology as reader sees fit.

Link to comment
Share on other sites

If it applies to all apache installs, try finding httpd.conf. you can search in that document for port 80.

 

It's also strange that PSP/iTunes would use port 80. port 80 is the universal port for webservers. Might want to investigate on that further. Also, you might check the setting for PSP\iTunes to see if you can change the port number.

Link to comment
Share on other sites

You'll want to go into terminal and then edit this file /etc/httpd/httpd.conf.

 

Edit this portion:

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
#Listen 3000
#Listen 12.34.56.78:80

 

I think you can just take out the # before the first Listen, and then put in whatever port you want to run the webserver on (not used apache in a bit, this is from memory).

 

Make sure you have apache stopped first just to be safe, and then start it again after you've made this change.

Link to comment
Share on other sites

 Share

×
×
  • Create New...