Jump to content
Sign in to follow this  
gilks

Changing Web Server Port?

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.

Share this post


Link to post
Share on other sites
Advertisement

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×