4 Replies - 2759 Views - Last Post: 19 August 2010 - 08:44 AM

#1 dontstealmyfish   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 11-February 09

apache web server port redirects

Posted 17 August 2010 - 05:22 PM

i am currently running apache 2.2.11 on a windows machine. I have a web application that needs to run on a port other than tcp port 80 (for example, tcp port 8000). i want to make it so that the web app can be accessed by going to a subdomain on port 80 instead of going to the domain at port 8000. what i mean is, is any way to make it so that if i go to a subdomain like subdomain.domain.com that it will connect to my web app on port 8000 and forward its tcp packets through port 80 so the end user wont have to worry about corporate firewalls.

Thanks in advance!

Is This A Good Question/Topic? 0
  • +

Replies To: apache web server port redirects

#2 no2pencil   User is offline

  • Professor Snuggly Pants
  • member icon

Reputation: 6727
  • View blog
  • Posts: 31,157
  • Joined: 10-May 07

Re: apache web server port redirects

Posted 18 August 2010 - 02:31 AM

I wouldn't set this up under Apache, I would just make a port redirect in the firewall of the server, or using netcat. Apache is only going to listen on the port it's configured for. You can't have it listen on port 80, but redirect to itself on port 8000.
Was This Post Helpful? 0
  • +
  • -

#3 dontstealmyfish   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 11-February 09

Re: apache web server port redirects

Posted 18 August 2010 - 09:46 AM

what i am going for is to make sure that all traffic across the wan/internet is done through standard port 80, to give it the greatest chance of being unblocked through company firewalls. the thing is, i cant have two services both listen on tcp port 80 for web communication on the same machine. right now the main website can be accessed from http://domainname.com, and the web application has to be accessed from http://domainname.com:8000 , which is often blocked by company firewalls. i want to be able to access the website from http://domainname.com and the web application from http://webapp.domainname.com . but like i said, both services are on the same server.

i need a way so that when apache receives a request for webapp.domainname.com it will communicate via the lan through port 8000, and once that data leaves my lan, it communicates with the public through port 80 via wan/internet.
Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades   User is offline

  • Saucy!
  • member icon

Reputation: 6248
  • View blog
  • Posts: 24,014
  • Joined: 23-August 08

Re: apache web server port redirects

Posted 18 August 2010 - 10:23 AM

Sounds like something nginx might be able to do for you.
Was This Post Helpful? 0
  • +
  • -

#5 dontstealmyfish   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 11-February 09

Re: apache web server port redirects

Posted 19 August 2010 - 08:44 AM

View PostJackOfAllTrades, on 18 August 2010 - 09:23 AM, said:

Sounds like something nginx might be able to do for you.

Thanks, i might test out nginx on a virtual server, but for now if there is a way to implement a reverse proxy type setup in apache that would be great. i believe there is, as i vaguely remember reading about that on one of apaches sites. i just wasnt sure how to implement it.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1