October 25, 2011 07:51AM

How i can create this rules in nginx ?

When i have : ---> --->

and when: ---> --->

Re: Assets
October 29, 2011 10:56PM
You can rewrite those urls as such like so:

rewrite ^/css/css.css$ /template/webroot/css/css.css last;
rewrite ^/img/img.jpg$ /template/webroot/img/img.jpg last;

rewrite ^/css/admin/css.css$ /admin/webroot/css/admin/css.csslast;
rewrite ^/img/admin/img.jpg$ /admin/webroot/img/admin/img.jpg last;

You should also take a look at:

For more info ;)
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready