Guest User

Untitled

a guest
Oct 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ~^/A/shopby/(?<brand>[a-zA-Z]+) ~^/category/by-brand/$brand;
  2.  
  3. map $request_uri $new_uri {
  4. include /etc/nginx/urls.map;
  5. }
  6.  
  7. server {
  8. rewrite_log on;
  9. error_log /var/log/nginx/error.log notice;
  10.  
  11. if ($new_uri) {
  12. # return 200 $new_uri; for debugging
  13. rewrite $request_uri $new_uri permanent;
  14. }
  15.  
  16. location / {
  17. root /a_root;
  18. index index.html;
  19. try_files $uri $uri/ /index.html;
  20. }
  21. }
Add Comment
Please, Sign In to add comment