Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #setup subdomain i.domain.com
- server {
- server_name i.domain.com;
- access_log /var/log/nginx/i..com.access.log;
- error_log /var/log/nginx/i.domain.com.error.log;
- root /var/www/domain.com/test1/images;
- index index.php index.html index.htm;
- #error_page 403 = /notfound.jpg;
- #error_page 500 = /notfound.jpg;
- location / {
- #change this to a 404 img file .jpg
- try_files $uri $uri/ /notfound.jpg;
- rewrite "/s([A-Za-z0-9.]+)?" /small/$1 break;
- rewrite "/o/([A-Za-z0-9.]+)?" /orig/$1 break;
- rewrite "/([A-Za-z0-9.]+)?" /medium/$1 break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement