Jump to content

Changing Web Server Port?


  • Please log in to reply
2 replies to this topic

#1
gilks

gilks

    InsanelyMac Protégé

  • Just Joined
  • Pip
  • 2 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.

#2
domino

domino

    Retired

  • Members
  • PipPipPipPipPipPipPipPipPipPip
  • 1,958 posts
  • Gender:Male
  • Location:/tmp
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.

#3
cyrana

cyrana

    Prophetess of Doom

  • Retired
  • 1,462 posts
  • Gender:Female
  • Location:Somewhere out there
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.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy