Advertisement
Guest User

sdsads

a guest
Jan 29th, 2012
1,193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #setup subdomain i.domain.com
  2. server {
  3. server_name i.domain.com;
  4. access_log /var/log/nginx/i..com.access.log;
  5. error_log /var/log/nginx/i.domain.com.error.log;
  6.  
  7. root /var/www/domain.com/test1/images;
  8. index index.php index.html index.htm;
  9.  
  10. #error_page 403 = /notfound.jpg;
  11. #error_page 500 = /notfound.jpg;
  12.  
  13. location / {
  14. #change this to a 404 img file .jpg
  15. try_files $uri $uri/ /notfound.jpg;
  16.  
  17. rewrite "/s([A-Za-z0-9.]+)?" /small/$1 break;
  18. rewrite "/o/([A-Za-z0-9.]+)?" /orig/$1 break;
  19. rewrite "/([A-Za-z0-9.]+)?" /medium/$1 break;
  20. }
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement