Created
November 21, 2013 09:53
-
-
Save chirag04/7578881 to your computer and use it in GitHub Desktop.
nginx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~/profile_picture(^.+\.(jpg|jpeg|gif|png)$) { | |
alias /home/chirag/Desktop/xyz/profile_pictures/$1; | |
expires -1; | |
} | |
location ~*(^.+\.(jpg|jpeg|gif|css|png|js|ico|eot|otf|svg|ttf|woff|hbs)$) { | |
alias /home/chirag/Desktop/xyz/static/$1; | |
expires -1; | |
} |
location ~ ^/profile_picture/(.+.(jpg|jpeg|gif|png)$) {
alias /Users/Srini/sites/pb/profile_picture/$1;
expires -1;
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
location ~ ^/(profile_picture/.+.(jpg|jpeg|gif|png)$) {
alias /home/chirag/Desktop/xyz/$1;
expires -1;
}
location ~ ^/profile_picture/(.+.(jpg|jpeg|gif|png)$) {
alias /home/chirag/Desktop/xyz/profile_picture/$1;
expires -1;
}