Created
October 2, 2015 18:22
-
-
Save Ryan4CN/a0c76d5cdad3612dc3b9 to your computer and use it in GitHub Desktop.
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
location ~* ^/api/base { | |
default_type 'application/json'; | |
content_by_lua_file lua/api_base.lua; | |
break; | |
} | |
location /real/api/base { | |
proxy_pass http://127.0.0.1:81/api/base; | |
} | |
server { | |
listen 81; | |
root /var/www/gc/public; | |
index index.php index.html index.htm; | |
server_name 127.0.0.1; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.(hh|php)$ { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass 127.0.0.1:9000; | |
fastcgi_index index.php; | |
fastcgi_connect_timeout 300; | |
fastcgi_send_timeout 300; | |
fastcgi_read_timeout 300; | |
fastcgi_buffer_size 64k; | |
fastcgi_buffers 4 64k; | |
fastcgi_busy_buffers_size 128k; | |
fastcgi_temp_file_write_size 128k; | |
include /etc/nginx/fastcgi_params; | |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | |
fastcgi_param PATH_INFO $fastcgi_path_info; | |
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment