在实际的项目开发中,有时候难免会遇到内网开发,但是内网开发的话测试就没法在外网进行测试,这个时候我们就可以部署一个内网和一个外网的,这样就可以保证内网正常使用的同时,测试也可以使用外网进行测试,不会耽误进度
user root;
worker_processes auto;
error_log logs/error.log;
#error_log logs/error.log notice;
#error_log logs/error.log info;
pid logs/nginx.pid;
events {
use epoll;
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"';
log_format main '$remote_addr - $remote_user [$time_local] "$request" "$request_time" '
'$status $body_bytes_sent "$http_referer" '
'"$ht