Skip to content

Instantly share code, notes, and snippets.

@bsdlp
Last active December 14, 2015 16:09
Show Gist options
  • Save bsdlp/5112954 to your computer and use it in GitHub Desktop.
Save bsdlp/5112954 to your computer and use it in GitHub Desktop.
server {
listen 80;
server_name www.myserver.com myserver.com;
root /home/public_html/Prosper202;
index index.php index.html index.htm;
access_log /home/public_html/Prosper202/log/access.log;
error_log /home/public_html/Prosper202/log/error.log;
}
server {
listen 80;
server_name track.myserver.com;
root /home/public_html/Prosper202/track;
index index.php index.html index.htm;
access_log /home/public_html/Prosper202/log/access.log;
error_log /home/public_html/Prosper202/log/error.log;
location / {
}
location /tracking202/static {
}
location /tracking202/redirect {
}
try_files $uri $uri/ /index.php?$args;
# Pass all .php files onto a php-fpm/php-fcgi server.
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
# fastcgi_intercept_errors on;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment