• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

howto setup webserver but not port 80?

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

ccb056

Member
Joined
Oct 6, 2002
how do i setup a web server that dosent use port 80 and dosent use http://blah:xxxx

i think what i want is https but im a noob to setting this sort of thing up, what port would i need to use?
 
The webserver must have an address and port.

You can assign a different port to the server.

You can bind the webserver to loopback (127.0.0.1) and some port.

You can install a firewall, and have it block the web server.

Paul.
 
Most webservers let you change the port they use in the config options. Just change it to run on say, port 9999, and the address would be http://address:9999

If the webserver you are using doesn't let you do this, then like was mentioned above. Bind the server to port 80 on the loopback, and use a firewall or port mapping software to map for example port 9999 on your internet connection to port 80 on local host. That should work.

As for the not using the address with the port at the end, you HAVE to do this for the web BROWSER not to request on port 80, a solution which may work though, is to register a domain and point it at http://theip:9999 but I am not sure if you can do that?
 
Flamed_Chip said:

As for the not using the address with the port at the end, you HAVE to do this for the web BROWSER not to request on port 80, a solution which may work though, is to register a domain and point it at http://theip:9999 but I am not sure if you can do that?

I have 2 or 3 websites hosted here at home, i've got registered domain names that point to my server on different ports.

If you are using windows 2k/XP, IIS allows you to change the port that is used by the website.
 
RED Hot Machine said:


I have 2 or 3 websites hosted here at home, i've got registered domain names that point to my server on different ports.

If you are using windows 2k/XP, IIS allows you to change the port that is used by the website.

I'm pretty sure if you run on a port other than 80, even if you have a domain name, people will have to put http://domain:port
 
XWRed1 said:


I'm pretty sure if you run on a port other than 80, even if you have a domain name, people will have to put http://domain:port

The people I got my domain name have a redirect service. So i put the url of my server in with the port as the redirect and it does the rest. I use this with a non static IP address using No-ip.coms service.


Example

www.gardnerdesigns.co.uk is one url I own.
It points to http://gardnerdesigns.sytes.net:81
 
Last edited:
If you're an Apache user, here's a quote from the Apache HTTPD config file:

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.

/me is in the same boat with Red Hot Machine, also. Setting up webservers on different ports works just fine.
 
thought so, I am sure I remember redirecting a URL to a specific port at some point, the only problem is you have to use the redirect feature of your domain host (if it has one) unfortunatly you can't use the DNS record to point directly to it, as that can only point to a full IP address, not an IP and port. It is a pain, but it is the only way you can do it as far as I know.
 
RED Hot Machine said:


The people I got my domain name have a redirect service. So i put the url of my server in with the port as the redirect and it does the rest. I use this with a non static IP address using No-ip.coms service.


Example

www.gardnerdesigns.co.uk is one url I own.
It points to http://gardnerdesigns.sytes.net:81

Ah, I see. I thought you were saying dns all by itself allows this (which it doesn't).

Thats a pretty clever service, but another level of indirection. Easier to just run on port 80.
 
so, if i tell apache to use port 443, and forward port 443 to the server, all i have to do to access it is type https://blah

????
 
Yes, but if you are running normal http and not https there the browser might get annoyed that it can't do https to it.
 
OR a very simple thing to do is bind the web server on a port other than 80 which is diff for each webserver...LuckyBob had it right on the head i believe with starting the web service serve on a diff port. and then just get a firewall which is a little more configurable than your avg run of the mill retail store router and set it up so all inbound connections to port 80 are accepted and redirected to port XX...i still dont see why exactly you would want to do this though as it serves no real purpose. cause in this case they would type in the URL and be directed right to your website running on port XX which really is no different than if it were running on port 80. unless you want to have 1 computer hosting 2 webservers, 1 for internal traffic and another for ATM traffic.

~jeff~
 
Yes I was thinking what would be the point of running it on a port other than 80 if you'll have nat redirect port 80 to it. I figured the original poster wanted it on a different port because his isp was blocking 80. In which case a nat redirect wouldn't help.
 
Back