|
On Sat, Apr 30, 2005 at 03:54:09AM +0000, Derek Raycraft wrote:
> I want to setup Apache so when I go to a certain url its passed
> through to the other server, with out having to do something like put
> the port number in the url.
>
> ie.
> www.domain.com would be covered by apache.
> www.domain.com/otherserver would be covered by this other server
> running on a different port.
Easy. In the root of the port 80 server, create the following
.htaccess file:
RewriteEngine On
RewriteRule ^otherserver/(.*) http://localhost:8080/$1 [P]
And that should be it! Now, requests to anything under that directory
will be "proxied" to the other location.
HTH!
--
Dan Boger
dan@peeron.com
|
|
Message has 1 Reply: | | Re: Apache
|
| Thanks, for the help Dan. Unfortunately the harddrive on my iMac failed about 12 hours after I posted my question. Although it's still under warranty, I don't have time before I head to California to get it replaced, let alone setup to were I had it (...) (20 years ago, 1-May-05, to lugnet.org.ca.rtltoronto)
|
Message is in Reply To:
| | Apache
|
| Dumb question, because I'm not in the mood to read. I have an Apache server running on my computer. Port 80 and all that. I have another HTTP server running on lets say port 8080. Doesn't matter what it is really, just that it's there. I want to (...) (20 years ago, 30-Apr-05, to lugnet.org.ca.rtltoronto)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|