You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Manu Kits <ma...@hotmail.com> on 2003/03/05 21:42:51 UTC

[users@httpd] Re:AliasMatch Error: HowTo remove ~ in URL

Hello Lee:

Thank you for your reply.

I can access www.hostname.com/~hari/index.html - which I think it accesses 
/home/hari/public_html/index.html page.

BUT how do I access www.hostname.com/hari/index.html such that it still 
access /home/hari/public_html/index.html page?

I used AliasMatch but in vain!
AliasMatch ^/([^/]*)/?(.*) /home/$1/public_html/$2

So, when I type www.hostname.com/hari/index.html it SHOULD DISPLAY 
/home/hari/public_html/index.html file...but it is showing:
-------------------------------------------------------------------
Internal Server Error
The server encountered an internal error or misconfiguration and was unable 
to complete your request.
Please contact the server administrator,
-------------------------------------------------------------------


>From: Lee Fellows <lf...@4lane.com>
>Reply-To: users@httpd.apache.org
>To: users@httpd.apache.org
>Subject: Re: [users@httpd] AliasMatch Error: HowTo remove ~ in URL
>Date: 05 Mar 2003 14:02:08 -0500
>
>On Wed, 2003-03-05 at 13:16, Manu Kits wrote:
>[snip]
> >
> > I used AliasMatch but in vain!
> > AliasMatch ^/([^/]*)/?(.*) /home/$1/public_html/$2
>
>
>   How did this fail?  What happened?  What did you expect to happen?
>   What appears in the error log?
>
>Lee Fellows <lf...@4lane.com>


_________________________________________________________________
Help STOP SPAM with the new MSN 8 and get 2 months FREE*  
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re:AliasMatch Error: HowTo remove ~ in URL

Posted by Lee Fellows <lf...@4lane.com>.
On Wed, 2003-03-05 at 15:42, Manu Kits wrote:

> So, when I type www.hostname.com/hari/index.html it SHOULD DISPLAY 
> /home/hari/public_html/index.html file...but it is showing:
> -------------------------------------------------------------------
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable 
> to complete your request.
> Please contact the server administrator,
> -------------------------------------------------------------------
> 

  So what does the error.log show?


-- 
Lee Fellows <lf...@4lane.com>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org