| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- server {
- listen 80;
- server_name curso.especificos.com.ar;
- rewrite ^ https://curso.especificosba.com.ar permanent;
- }
- server {
- listen 80;
- server_name especificos.com.ar www.especificos.com.ar especificosba.com.ar www.especificosba.com.ar especificosba.com.mx www.especificosba.com.mx;
- rewrite ^ https://especificosba.com.ar permanent;
- }
- server {
- listen 443 ssl http2; ## listen for ipv4; this line is default and implied
- include /etc/nginx/ssl;
- root /var/www/eba;
- index index.html index.htm;
- server_name especificosba.com.mx www.especificosba.com.mx www.especificosba.com.ar especificosba.com.ar;
- error_log /var/log/nginx/error.eba.log ;
-
- location /Mailing {
- index index.php index.html index.htm;
- }
- location /images/profile {
- sendfile off;
- expires off;
- }
- location ~* ^.+\.(?:css|js|cur|jpe?g|gif|htc|ico|png|xml|otf|ttf|eot|woff|svg)$ {
- access_log off;
- expires 7d;
- open_file_cache max=3000 inactive=300s;
- open_file_cache_valid 360s;
- open_file_cache_min_uses 2;
- open_file_cache_errors off;
- }
- location ~ /ELearning(.*)$ {
- rewrite ^(.*)$ http://curso.especificosba.com.ar permanent;
- }
- location / {
- try_files $uri $uri/ /index.html;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- # deny access to .htaccess files, if Apache's document root
- # concurs with nginx's one
- #
- location ~ /\.ht {
- deny all;
- }
- }
- server {
- listen 80;
- listen 443 ssl http2;
- include /etc/nginx/ssl;
- root /var/www/eba/ELearning;
- index index.php index.html index.htm;
- access_log /var/log/nginx/access_curso.eba.com.log ;
- error_log /var/log/nginx/error_curso.eba.com.log ;
- server_name curso.especificosba.com.ar;
- location ~* /pdfs/(.+)$ {
- types { application/octet-stream .pdf; }
- default_type application/octet-stream;
- access_log off;
- expires 0d;
- keepalive_timeout 65;
- #add_header Content-disposition "attachment; filename=$1.pdf";
- #add_header Pragma public;
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- }
- location /ws/ {
- proxy_set_header Upgrade $http_upgrade;
- proxy_set_header Connection "upgrade";
- proxy_http_version 1.1;
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
- proxy_set_header Host $host;
- proxy_pass http://backend;
- proxy_read_timeout 12000;
- }
- location ~* ^.+\.(?:cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
- access_log off;
- expires 10d;
- ## No need to bleed constant updates. Send the all shebang in one
- ## fell swoop.
- tcp_nodelay on;
- ## Set the OS file cache.
- open_file_cache max=3000 inactive=120s;
- open_file_cache_valid 45s;
- open_file_cache_min_uses 2;
- open_file_cache_errors off;
- }
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ /index.html;
- # Uncomment to enable naxsi on this location
- # include /etc/nginx/naxsi.rules
- }
- location ~ (images|videos)\.php$ {
- add_header Access-Control-Allow-Origin *;
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- location /hls_mobile {
- add_header Access-Control-Allow-Origin *;
- types {
- application/vnd.apple.mpegurl m3u8;
- video/mp2t ts;
- }
- root /tmp/;
- add_header Cache-Control no-cache;
- }
- location /dash_mobile {
- root /tmp;
- add_header Cache-Control no-cache;
- add_header Access-Control-Allow-Origin *;
- # To avoid issues with cross-domain HTTP requests (e.g. during development)
- }
- location /hls {
- add_header Access-Control-Allow-Origin *;
- types {
- application/vnd.apple.mpegurl m3u8;
- video/mp2t ts;
- }
- root /tmp/;
- add_header Cache-Control no-cache;
- }
- location /dash {
- root /tmp;
- add_header Cache-Control no-cache;
- add_header Access-Control-Allow-Origin *;
- # To avoid issues with cross-domain HTTP requests (e.g. during development)
- }
- location /stat {
- rtmp_stat all;
- rtmp_stat_stylesheet stat.xsl;
- deny 127.0.0.2;
- }
-
- location /stat.xsl {
- root /var/www/eba/ELearning/;
- }
- }
- server {
- listen 80; ## listen for ipv4; this line is default and implied
- listen 443 ssl http2; ## listen for ipv4; this line is default and implied
- include /etc/nginx/ssl;
- root /var/www/piwik;
- index index.php index.html index.htm;
- server_name stats.especificosba.com.ar;
-
- location ~* ^.+\.(?:cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
- access_log off;
- expires 10d;
- ## No need to bleed constant updates. Send the all shebang in one
- ## fell swoop.
- tcp_nodelay on;
- ## Set the OS file cache.
- open_file_cache max=3000 inactive=120s;
- open_file_cache_valid 45s;
- open_file_cache_min_uses 2;
- open_file_cache_errors off;
- }
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ /index.html;
- # Uncomment to enable naxsi on this location
- # include /etc/nginx/naxsi.rules
- }
- location ~ \.php$ {
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
- server {
- listen 80; ## listen for ipv4; this line is default and implied
- listen 443 ssl http2; ## listen for ipv4; this line is default and implied
- include /etc/nginx/ssl;
- root /var/www/uv;
- index index.php index.html index.htm;
- server_name iuv.especificosba.com.ar uv.especificosba.com.ar;
-
- location ~* ^.+\.(?:cur|js|jpe?g|gif|htc|ico|png|html|xml|otf|ttf|eot|woff|svg)$ {
- access_log off;
- expires 10d;
- ## No need to bleed constant updates. Send the all shebang in one
- ## fell swoop.
- tcp_nodelay on;
- ## Set the OS file cache.
- open_file_cache max=3000 inactive=120s;
- open_file_cache_valid 45s;
- open_file_cache_min_uses 2;
- open_file_cache_errors off;
- }
- location / {
- # First attempt to serve request as file, then
- # as directory, then fall back to displaying a 404.
- try_files $uri $uri/ /index.html;
- # Uncomment to enable naxsi on this location
- # include /etc/nginx/naxsi.rules
- }
- location ~ \.php$ {
- add_header Access-Control-Allow-Origin *;
- try_files $uri =404;
- fastcgi_split_path_info ^(.+\.php)(/.+)$;
- # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- fastcgi_index index.php;
- include fastcgi_params;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- }
- }
|