Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3221698
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:54:23+00:00 2026-05-17T15:54:23+00:00

I am working with a web development framework which publish its applications in apache

  • 0

I am working with a web development framework which publish its applications in apache server ports:8080, 8081, 8082, etc.

For instance MyApp1 runs in localhost:8080, MyApp2 runs in localhost:8081, and so on.

What I would like to achieve is that my domains point to a “port” where its application is running in my apache web server, e.g. http://www.mydomainclient1.com should point to 8080 port and http://www.mydomainclient2.com should point to 8081 port.

What I have done is I have entered to my Domain Name Provider web site, then went to Total DNS Control and point these domains to my dedicated server IP.

Now, my domains point to mydedicatedserverIP, so when I do http://www.mydomainclient1.com and http://www.mydomainclient2.com they both access mydedicatedserverIP, by default 80 port.

The situation I am trying to solve is:

I’d like to have http://www.mydomainclient1.com pointing directly to mydedicatedserverIP:8080 and http://www.mydomainclient2.com pointing to mydedicatedserverIP:8081.

What do you think would be a good solution for this?
(I hope my question is clear enough due I am not a native english speaker as you can see)

Environment: Linux Debian 5 Lenny, Apache Server 2.2.9-10+lenny8

As I am a newbie in apache server any comment or suggestion will be very appreciated, even if you think is something obvious :-).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:54:23+00:00Added an answer on May 17, 2026 at 3:54 pm

    To make sure I understand what you meant: You want –

    • Client issues HTTP request to http://mydomain1.com (port 80) – then go to port 8080 on your server;
    • Client issues HTTP request to http://mydomain2.com (port 80) – then go to port 8081 on your server.

    The only reasonable way (that I know of) you can achieve this in Apache is by using what’s called a Reverse Proxy, explained here: http://httpd.apache.org/docs/current/mod/mod_proxy.html

    In a nutshell: Define two name-based virtual hosts listening on port 80, each reverse-proxying requests to the "hidden" server. The two definitions would be almost exactly the same…. here’s a sketch of one of them, you should be able to conclude the other one.

    <NameVirtualHost *:80>
        ServerName mydomain1.com
        ServerAlias www.domain1.com
        ... *other aliases as you wish* ...
        ProxyPass / http://localhost:8080/
        ProxyPassReverse / http://localhost:8080/
    </NameVirtualHost>
    

    The above definition causes all HTTP requests coming in on port 80, having mydomain1.com in their "Server path" header (that’s standard behavior when someone types in a URL containing a server name; don’t worry about it) or any of the mentioned aliases, to be reverse-proxied to localhost:8080.

    Try this and let us know how it went. Good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working at a small web development company, we mostly do campaign sites
I'm working on a web-based contest which is supposed to allow anonymous users to
I am working on a web-application in which dynamically-created images are used to display
I am working on a web application, where I transfer data from the server
I need to have a working web browser in a fullscreen Direct3D application. For
I've been working with web start for a couple years now and have experience
I am working on a web application using Python (Django) and would like to
I'm working on a web page where I'm making an AJAX call that returns
I am working on a web application (J2EE) and I would like to know
I am working on a web app that uses Perl and I need to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.