Click to See Complete Forum and Search --> : Apache on port 81 question, please help!


djarre4
07-11-2002, 09:36 AM
My isp blocks port 80 so I have to run it on another port, so I picked 81. I setup apache to listen to port 81, and it works fine. My problem is getting my domain to point to port 81. I do not want to use a commercial service as I run my own DNS server. How can this be achieved, that is how can I get my domain to be forwarded to my.ip.address:81

ee99ee2
07-12-2002, 12:49 AM
Normally, you can't. All broswers default to port 80, so there's nothing you can do about that.

However, what you can do is find a server that's not blocked by your ISP (ask your ISP if they have free web space, for example), and put a small webpage on there that redirects users to your server on port 81...

To redirect them, add this between the <head> and </head> tags in your HTML:

<meta http-equiv="refresh" content="0;url=http://your.site.here:81">

Hope this helps.

djarre4
07-12-2002, 11:35 AM
Actually, I thought about this after I posted the message. Apache allows name based virutal servers, so the same ip can be used for multiple web-sites based on the domain named typed in. So I think I can setup a virtual host that when mydomain.com is typed in, it goes to the virtual host on another port. I'm going to try it in a coupel of days.

Thanks for the assistance though.

Golden_Eternity
07-12-2002, 11:48 AM
I think I can setup a virtual host that when mydomain.com is typed in, it goes to the virtual host on another port. I'm going to try it in a coupel of days.


How is it going to redirect them if they can't hit your server to begin with?

I did this myself for about a year. Never did find a solution. Your users just have to rely on bookmarks and links if they don't want to type in the port number.