Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- MIX ~ :)
- # cat /etc/nginx/sites-enabled/cursocoex.com
- server {
- listen 188.165.192.181:80;
- server_name cdn.cursocoex.com;
- gzip_vary on;
- index index.html;
- charset utf-8;
- root /home/www/cursocoex.com/www;
- location / {
- root /home/www/cursocoex.com/www;
- index index.html;
- }
- location ~ \.php(/|$) {
- deny all;
- }
- location ~* ^.+.(jpg|jpeg|gif|png|swf|ico|xml|zip|pdf)$ {
- access_log off;
- expires 31d;
- }
- location ~* ^.+.(html|htm)$ {
- expires 1d;
- }
- location ~* ^.+.(css|js)$ {
- expires 31d;
- }
- location ~* ^.+.(flv)$ {
- flv;
- }
- location ~* ^.+.(mp4)$ {
- mp4;
- }
- location ~* \.(eot|ttf|woff)$ {
- add_header Access-Control-Allow-Origin *;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement