I'm still kinda shocked that I got it working, but I actually does what
I wanted!
I was messing around with this, and I have to admit that it was more
trial and error than knowledge, but I got it:
RewriteCond %{SCRIPT_FILENAME} /$
RewriteRule /(.*) http://localhost:81/$1/ [P]
If I'm not mistaken from an earlier post, you actually want more than to
just have
http://cfdev.cota.csulb.edu/cota
or
http://cfdev.cota.csulb.edu/cota/
work. You want to also use the same rewrite for images, etc.
Without knowing the full extent of what you expect the code
to do I don't eve
Well, for example, I would like to be able to input either of the
following into my browser:
http://cfdev.cota.csulb.edu/cota
or
http://cfdev.cota.csulb.edu/cota/
and the web page will be displayed while the application server handling
the requests all see localhost as the originating addres
That's why I was saying you'd probably have to write something a little
complicated.
Its really hard if you don't already have a naming convention in mind.
That way you could just force it to rewrite without the ending slash if
you wanted.
I think its adding the trailing slash because it assu
Hey Pid,
I gave this a try:
RewriteRule /(.*)(/)?$ http://localhost:81/$1$2 [P]
and it's still converting:
http://cfdev.cota.csulb.edu/cota
to
http://localhost:81/cota/
instead of:
http://cfdev.cota.csulb.edu/cota/
Any ideas?
thanks,
Mike
Pid wrote:
RewriteRule /(.*)(/)?$ http://localho
On Monday 17 July 2006 19:40, Mike Soultanian wrote:
> Hello,
> We have to proxy our requests on our web server but we're running into
> some problems.
[ much discussion of over-complicated methods ensued, amongst which
I see just one post mentioning at the simple and effective solution ]
http:/
RewriteRule /(.*)(/)?$ http://localhost:81/$1$2
you need the second dollar variable to pick up the second pair of
brackets, instead of always appending a slash.
Mike Soultanian wrote:
> Boysenberry Payne wrote:
>> How about adding this:
>>
>> RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]
>>
You know, I'm guessing that I'm getting that proxy loop error because
the proxy is listening on both ports 80 and 81 (I have a virtual host on
81)? Just a guess
mike
Mike Soultanian wrote:
See the ProxyPassReverse directive, whose job it is to correct
trailing-slash redirects.
(Hint: You
See the ProxyPassReverse directive, whose job it is to correct
trailing-slash redirects.
(Hint: You don't even need RewriteRule for this. ProxyPass will do fine.)
Joshua.
Hey Joshua,
For kicks I tried ProxyPass (I really have no idea what I'm doing) using
the following:
proxyrequests off
Pr
Sounds you might need something a little more complicated.
For example:
RewriteRule ^(.*)habitat/(.*)$
http://localhost:81/pro/habitat.pl?account=data=$2 [P]
Allowing me to read the whole url then process it.
Otherwise you might want to rewrite for different directories, i.e.
taking care o
On 7/17/06, Mike Soultanian <[EMAIL PROTECTED]> wrote:
Hello,
We have to proxy our requests on our web server but we're running into
some problems. I'm having a problem with the following rewrite rule:
RewriteRule /(.*) http://localhost:81/$1 [P]
If I do not specify the trailing slash when usi
Boysenberry Payne wrote:
> How about adding this:
>
> RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]
>
That almost worked!
That's interesting because it gets me through to the page, but still
leaves off the trailing slash. That in turn breaks the relative links
which are looking for the t
How about adding this:
RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P]
Thanks,
Boysenberry
boysenberrys.com | habitatlife.com | selfgnosis.com
On Jul 17, 2006, at 1:40 PM, Mike Soultanian wrote:
Hello,
We have to proxy our requests on our web server but we're running into
some problems.
Hello,
We have to proxy our requests on our web server but we're running into
some problems. I'm having a problem with the following rewrite rule:
RewriteRule /(.*) http://localhost:81/$1 [P]
If I do not specify the trailing slash when using a folder name, I get
an error. So, for example, i
14 matches
Mail list logo