Created
December 17, 2015 23:04
-
-
Save juanpablocs/b43f2e2f51c544dc1bb8 to your computer and use it in GitHub Desktop.
mi configuración para trackear urls distintas a /
This file contains hidden or 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
``` | |
server { | |
server_name www.mysite.com; | |
return 301 $scheme://mysite.com$request_uri; | |
} | |
server { | |
server_name mysite.com; | |
root /home/nginx/domains/mysite.com; | |
try_files $uri /index.php?$query_string; | |
location ~ ^/descarga.+\.html$ { | |
try_files $uri /index.php?$query_string; | |
} | |
location ~ ^/stream/.+\.mp3$ { | |
try_files $uri /index.php?$query_string; | |
} | |
# ngx_pagespeed & ngx_pagespeed handler | |
#include /usr/local/nginx/conf/pagespeed.conf; | |
#include /usr/local/nginx/conf/pagespeedhandler.conf; | |
#include /usr/local/nginx/conf/pagespeedstatslog.conf; | |
#logs | |
access_log /home/nginx/domains/mysite.com/log/access.log; | |
error_log /home/nginx/domains/mysite.com/log/error.log; | |
include /usr/local/nginx/conf/staticfiles.conf; | |
include /usr/local/nginx/conf/php.conf; | |
include /usr/local/nginx/conf/drop.conf; | |
} | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment