473,563 Members | 2,897 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache rewrite and reverse proxy

1 New Member
I have back end website running on Tomcat with the following url http://local.domain.co m/app. External user access the website through apache proxy with the following url http://www.domain.com/user1 (user1, user2, etc... It’s uri specific to each user). I want to use apache rewrite or/ and reverse proxy directive to translate the url like http://www.domain.com/user1 into http://local.domain.co m/app?user=user1
Please can someone help me please?

Thanks,

Abdel
Oct 13 '12 #1
1 3327
Luuk
1,047 Recognized Expert Top Contributor
Expand|Select|Wrap|Line Numbers
  1. ProxyPass /user1 http://local.domain.com/app?user=user1
  2. ProxyPassReverse /user1 http://local.domain.com/app?user=user1
  3. ProxyPass /user2 http://local.domain.com/app?user=user2
  4. ProxyPassReverse /user2 http://local.domain.com/app?user=user2
  5.  
I think above should work for user1 and user2, but i dont know how to do this dynamically for x users
Oct 16 '12 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
24680
by: aspguru | last post by:
I have been hunting around recently for reverse proxy solutions to work with IIS. An example use for this would be to put outlook web access on your multi host IIS box on port 80 or an application like sitecope on IIS's port 80. There are many 3rd party solutions below some including ISAPI filters. http://www.at32.com/doc/rproxy.htm...
3
6622
by: A.M | last post by:
Hi, We are developing ADP.NET applications and one of our requirements is implementing a Reverse Proxy on IIS. I have couple of questions about Reverse Proxy:
1
4131
by: bart | last post by:
Hello, We have a web service running on IIS (running on port 8080) that is behind an apache web server (running on port 80) with reverse proxy to the IIS. Accessing the webservice with the url http://ourhost/webservice.asmx?wsdl works fine (in browser). However, the urls described by the wsdl contain port specifications, in this case port...
0
1068
by: stigip | last post by:
I'm having a problem with hosting a web service on a server behind a reverse proxy. When the IIS/.Net Framework is generating the test page for a WebMethod in the .asmx-file it uses an absolute path in the HTTP post of the invoke-button. This poses a problem because the internal host is not known to the public. Is it possible to instruct the...
2
4218
by: =?Utf-8?B?a2NtYXJzaGFsbC5tc3A=?= | last post by:
We're working on an app that will be integrated with another web app through a reverse proxy. Our aspx pages will appear in an IFrame from their site and will appear to the client browser as originating from the other app's domain. Through use of relative URLs we've believe we have links working from page to page. The problem we've...
1
2669
by: Dave Mathew | last post by:
I'm attempting to write a reverse proxy in ASP.Net which will catch requests to my server in ASP.Net, perform some actions, and then get the desired resource off another server to return to the original client (using HttpWebRequest and rewriting it's response to my ASP.Net client). I'm able to get the reverse proxy to work for html pages but...
6
11136
by: dolittle | last post by:
Hi, I`m using Apache as a proxy using ProxyPass (I didn`t set ProxyTimeout), I have two test clients sending and receiving xml messages using xmlhttprequest to a jeti server through the Apache proxy server. I sometime get an error in the Apache logs without being able to reproduce it. The error is: Sat Oct 06 14:46:51 2007] (OS 10060)A...
3
1733
by: Jane Parker | last post by:
I read with interest the recent posting about Reverse Proxies and wondered if it is possible to mix static and dynamic content. If you have a lot of static content on your site it would make sense to keep it outside the network, and only use the reverse proxy when making dynamic data calls, but how could that actually work in practise? Is it...
5
2857
by: kokababu | last post by:
Hi, I have setup a reverse proxy server which will route the request to Server B. Proxy server is working well with Server B. I would like to catch HTTP status error like 404/500 from server B. If my proxy gets error404/500 from Server B then it will redirect the page to other site, using PHP. For this reason, I set ErrorDocument 404/500...
1
3009
by: ampo | last post by:
Hello. I have scenario where a Client send request to Server1. Server1 send request to Server2. Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client. Trying to use APACHE proxy... Anyone can help? What to download / configure / ...?
0
7665
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8106
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7642
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6255
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5484
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3643
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2082
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1200
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
924
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.