20 Unstar Star 52 Fork 33

wuwenbin / bookmark

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
nginx.conf 1.19 KB
Copy Edit Web IDE Raw Blame History
daemon off;
worker_processes 1;
pid /var/run/nginx.pid;
load_module modules/ndk_http_module.so;
load_module modules/ngx_http_lua_module.so;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format default '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" '
'$request_time $bytes_sent $request_length';
access_log /var/log/nginx_access.log default;
error_log /var/log/nginx_error.log error;
server {
listen 80;
location / {
index index.php index.html index.htm;
root /data/app;
location ~ \.php$ {
fastcgi_index index.php;
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi.conf;
}
rewrite ^/([0-9]+)$ /?do=User_Index&uid=$1&$args last;
rewrite ^/m/([0-9]+)$ /m/?do=User_Index&uid=$1&$args last;
rewrite ^/login/(weibo|qq|baidu)/callback$ /?do=User_LoginCallback&type=$1&$args last;
}
}
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://git.oschina.net/wuwenbin/bookmark.git
git@git.oschina.net:wuwenbin/bookmark.git
wuwenbin
bookmark
bookmark
master

Search

132457 8cb2edc1 1899542 131848 70c8d3a4 1899542