dlebowski Posted December 2, 2008 Share Posted December 2, 2008 I have a server running Centos 5 and I have running a site from that server. I need anyone browsing to www.url.com to go to www.url.com:8080. I made a DNS entry on our network for www.url.com to point to 172.20.3.14 and that is working OK. I just need it to somehow resolve to www.url.com:8080. I am assuming this needs modified in the apache config, but not sure. Any help would be great! Thanks. Ryan Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 the users browser will have to have the 8080 in the location bar. you can probably use an apache directive to forward port 80 traffic to 8080 though Quote Link to comment Share on other sites More sharing options...
dlebowski Posted December 2, 2008 Author Share Posted December 2, 2008 I have not done that in the past. Can you give me an example of what that would look like and what file needs modified? Thanks for your help! Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted December 2, 2008 Share Posted December 2, 2008 What exactly are you trying to accomplish? The port number is part of the protocol and to use a different port than the standard one will require that the URL include the port number. You might be able to use url rewriting, but if you are going to that much trouble, you should probably just be using a subdomain or a second domain and setup virtual hosts on your server. Quote Link to comment Share on other sites More sharing options...
dlebowski Posted December 2, 2008 Author Share Posted December 2, 2008 All I am wanting to do is have a user on our network browse to www.url.com and it redirect them to www.url.com:8080. That will take care of my problem. May not even be an apache related issue. This is where I thought I'd start. Currently if a user MANUALLY types in www.url.com:8080 on our network, it works fine. I just want them to be able to type in www.url.com and it take them to www.url.com:8080. Thanks for your help. Ryan Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 for the forward to happen with apache, apache needs to be listening on port 80 (the standard port) anyways...so why not just have apache use port 80 instead of 8080...then there won't be a need for a port number in the url Quote Link to comment Share on other sites More sharing options...
dlebowski Posted December 2, 2008 Author Share Posted December 2, 2008 I am using Zenoss. It requires me to use port 8080. On the server itself I have to enter in 172.20.3.14:8080 to bring up in browser. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 ok is there another webserver running on port 80? the only way i know how to forward is with apache running on port 80. if you are unsure, what happens currently when you go to the url without the 8080 Quote Link to comment Share on other sites More sharing options...
rhodesa Posted December 2, 2008 Share Posted December 2, 2008 you may want to give this a read too: http://www.zenoss.com/community/docs/howtos/setup-zenoss-with-apache/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.