Apache to Ngnix Rewrite to a Directory confusion
Posted
by
Robin
on Server Fault
See other posts from Server Fault
or by Robin
Published on 2012-06-21T09:06:05Z
Indexed on
2012/06/21
9:17 UTC
Read the original article
Hit count: 239
i could use a little help with rewrite and nginx... Basically the structure of my App looks like this
Headdirectory --
-APPBase
-SomeMoreStuff
-WWWDirectory
.htaccess
So i need to redirect into the WWWDirectory when i open the Headdirectory. In Apache its done with a htaccess and the following Content :
RewriteEngine On
RewriteRule ^(.*) www/$1
I already tried in Nginx :
location /Headdirectory {
rewrite ^/(.*) /www/$1;
}
And i tried to create an Alias but that didnt work...
Would be nice if someone could help me out.
Have a nice Day
© Server Fault or respective owner