验证中...
助力高校计算机教育 —— 码云为老师推出免费高校版,高达 200 人的协作团队
片段 1 片段 2 片段 3
gistfile1.txt
原始数据 复制代码
server {
listen 80;
server_name 192.168.1.123;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://192.168.1.123:8080;
}
location ~ .*\.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css)$ {
root D:/baai-mobile-frontend2.0;
index D:/baai-mobile-frontend2.0/index.html;
}
location /baai {
rewrite ^/baai/(.*)$ /$1 break;
proxy_pass http://www.baai.com;
}
}
8}MU]`Z6[5X{G7A[KY($%Z0.png
nginx.conf
原始数据 复制代码
#user nobody;
worker_processes 1;
#error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name 192.168.1.123;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
proxy_pass http://192.168.1.123:8080;
}
location ~ .*\.(html|htm|gif|jpg|jpeg|bmp|png|ico|txt|js|css)$ {
root D:/baai-mobile-frontend2.0;
index D:/baai-mobile-frontend2.0/index.html;
}
location /baai {
rewrite ^/baai/(.*)$ /$1 break;
proxy_pass http://www.baai.com;
}
}
# another virtual host using mix of IP-, name-, and port-based configuration
#
#server {
# listen 8000;
# listen somename:8080;
# server_name somename alias another.alias;
# location / {
# root html;
# index index.html index.htm;
# }
#}
# HTTPS server
#
#server {
# listen 443 ssl;
# server_name localhost;
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
# ssl_ciphers HIGH:!aNULL:!MD5;
# ssl_prefer_server_ciphers on;
# location / {
# root html;
# index index.html index.htm;
# }
#}
}

评论列表( 0 )

你可以在登录后,发表评论

10_float_left_people 10_float_left_close