开发者

Simple .htaccess to nginx

开发者 https://www.devze.com 2023-02-16 07:56 出处:网络
I need help how to convert this simple .htaccess to ngingx format and i r开发者_如何学Goeally have no idea where to start with it. I tried to go through nginx docs but they simply overwhelmed me and I

I need help how to convert this simple .htaccess to ngingx format and i r开发者_如何学Goeally have no idea where to start with it. I tried to go through nginx docs but they simply overwhelmed me and I need it done now so please help :)


   RewriteEngine on
   RewriteRule    ^$ app/host/    [L]
   RewriteRule    (.*) app/host/$1 [L]


Write

rewrite  (.*)  /app/host$1;

in your server { .. }

0

精彩评论

暂无评论...
验证码 换一张
取 消