Logo Linux Bash SSH Ubuntu Git Menu
 

Create a case-insensitive apache alias

I am currently using Apache 2.4.4. Now, the problem is that when I am creating alias like

Alias /mysite "D:/MySite"

it doesn't work for http://127.0.0.1/MySite. So how can I make it case insensitive?


1 Answers

Not with Alias but it should work with AliasMatch like this:

AliasMatch (?i)^/MySite(.*) "D:/MySite/$1"
like image 74
faker Avatar answered Mar 29 '26 09:03

faker