Monday, 15 April 2013

nginx try_files help for static files -



nginx try_files help for static files -

say have file:

/www/public/mysite/blog/4554/some-page-title.html

how can nginx ignore after number (id)

so reads /www/public/mysite/blog/4554.html

so if users seek access /blog/[any number]/[any title] in fact delivered /blog/[any number].html

thanks!

rewrite "/blog/([a-za-z0-9_-]*)/?" /blog/$1.html;

thanks help friend.

nginx

No comments:

Post a Comment