Skip to content

Instantly share code, notes, and snippets.

@malwador
Created October 30, 2014 21:20
Show Gist options
  • Save malwador/94d943ef0bd844631a2b to your computer and use it in GitHub Desktop.
Save malwador/94d943ef0bd844631a2b to your computer and use it in GitHub Desktop.
server {
server_name sears.com.mx www2.sears.com.mx;
rewrite ^ $scheme://www.sears.com.mx$uri redirect;
}
server {
server_name www.sears.com.mx;
# agregado para remediacion de SEARS por motivos de PCI Compliance
ssl_protocols SSLv3 TLSv1.1 TLSv1.2;
# server_tokens off
# termina cambios por remediación de SEARS por motivos de PCI Compliance
root /webs/tienda_sears/web;
index ini.php index.html;
error_log /var/log/nginx/error_sears.log notice;
error_page 404 /error404.php;
error_page 500 /error502.html;
error_page 501 /error502.html;
error_page 502 /error502.html;
#error_page 405 $uri;
if ($request_method !~ ^(GET|HEAD|POST)$ ) {
return 444;
}
rewrite ^/categoria/([a-zA-Z0-9,]+)/[a-zA-Z0-9\-_]+/([a-zA-Z0-9,]+)/[a-zA-Z0-9\-_]+/$ /producto/ini.php?id=$2&cat=$1 last;
rewrite ^/([a-zA-Z\-_]+)/([0-9,]+)/[a-zA-Z0-9\-_]+/$ /$1/ini.php?id=$2 last;
rewrite /vanheusen /servicio-tecnico/?t=vanheuser-sony-y-sears-te-llevan-al-super-bowl-xlvii last;
location ^~ /mi-cuenta/ {
rewrite ^ https://www.sears.com.mx$uri redirect;
}
location ^~ /credito-sears/ {
rewrite ^ https://www.sears.com.mx$uri redirect;
}
location ^~ /caja/ {
rewrite ^ https://www.sears.com.mx$uri redirect;
}
location ^~ /registrate/ {
rewrite ^ https://www.sears.com.mx$uri redirect;
}
location ^~ /mesaregalos/ {
rewrite ^ https://www.sears.com.mx$uri redirect;
}
location ^~ /boletin/ {
rewrite ^ https://www.sears.com.mx$uri redirect;
}
location ^~ /searssite/ {
access_log off;
error_log /dev/null crit;
return 404;
}
location /credito-sears/conciliacion {
rewrite ^ https://www.sears.com.mx/credito-sears/conciliacion;
auth_basic "Area Privada";
auth_basic_user_file /plataforma/configs/nginx/extras/area_privada.htpasswd;
}
location ~* \.(ico|css|js|gif|jpe?g|png)$ {
access_log off;
add_header Expires "Thu, 31 Dec 2037 23:55:55 GMT";
add_header Cache-Control "public, max-age=315360000";
}
location ~ /.svn/ {
deny all;
}
location ~ \.php$ {
include /plataforma/configs/nginx/parametros_fastcgi_sears;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment