Apache Server configuration support - AliasMatch

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > AliasMatch





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author AliasMatch
vivi74@rocketmail.com

2006-02-09, 6:08 pm

Hello Everyone,

I am runing in to an issue with AliasMatch directive, at this point am
not even sure if i should be using AliasMatch or RedirectMatch. Also to
make matters worse i cant use mod_rewrite or any Rewriting rules. Here
is the issue

i have a url https://test.com/a/login.jsp?group=mytest . i need to
aliasmatch it to
https://test.com/c/d.html

i tried using AliasMatch "/a/login.jsp/?(.*)" "/c/d.html" but dont work

to be more ambitious i tried using Alias instead of AliasMatch this
Alias "/a/login.jsp?group=mytest" "/c/d.html"
still invain

Appreciate any help.

Thanks

Robert Ionescu

2006-02-12, 5:58 pm

vivi74@rocketmail.com wrote:
> Also to make matters worse i cant use mod_rewrite


Well, this is definitely a mod_rewrite issue... why don't you recompile
apache with mod_rewrite?

> i tried using AliasMatch "/a/login.jsp/?(.*)" "/c/d.html" but dont work


The query string cannot be handled with mod_alias. So you'll get
/c/d.html?group=mytest.
You must use a full physical path and not a local URLpath on the right side.

The directive should look like this:
AliasMatch ^/a/login\.jsp$ "/var/www/htdocs/c/d.html"

--
Robert
vivi74@rocketmail.com

2006-02-13, 8:54 pm


Robert Ionescu wrote:
> vivi74@rocketmail.com wrote:
>
> Well, this is definitely a mod_rewrite issue... why don't you recompile
> apache with mod_rewrite?
>
>
> The query string cannot be handled with mod_alias. So you'll get
> /c/d.html?group=mytest.
> You must use a full physical path and not a local URLpath on the right side.
>
> The directive should look like this:
> AliasMatch ^/a/login\.jsp$ "/var/www/htdocs/c/d.html"
>
> --
> Robert


Thank you Robert. That worked.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com