Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Servidor principal que se hace cargo de las peticiones
- server {
- listen 111.222.333.444:80;
- server_name cdnc1.dng.pw cdnc2.dng.pw cdnc3.dng.pw;
- root /ruta/sitio/web/original/html;
- access_log /ruta/sitio/web/original/logs/access_cndc.log;
- error_log /ruta/sitio/web/original/logs/error_cdnc.log;
- charset UTF-8;
- location ~* \.(jpg|jpeg|gif|png|ico) {
- add_header Pragma "public";
- add_header Cache-Control "max-age=7776000, public, must-revalidate, proxy-revalidate"; # Cache de 3 meses, en segundos
- add_header X-Powered-By "CDN Images CloudFlare DNG/1.0";
- }
- # Habilitamos compresión gzip
- gzip on;
- gzip_types text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;
- location ~* \.js$ {
- types {}
- default_type application/x-javascript;
- add_header Vary "Accept-Encoding";
- add_header Pragma "public";
- add_header Cache-Control "max-age=7776000, public, must-revalidate, proxy-revalidate"; # Cache de 3 meses, en segundos
- add_header X-Powered-By "CDN Js CloudFlare DNG/1.0";
- }
- location ~* \.css$ {
- types {}
- default_type text/css;
- add_header Vary "Accept-Encoding";
- add_header Pragma "public";
- add_header Cache-Control "max-age=7776000, public, must-revalidate, proxy-revalidate"; # Cache de 3 meses, en segundos
- add_header X-Powered-By "CDN Css CloudFlare DNG/1.0";
- }
- location / {
- deny all;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement