1. yang xiaoyong
  2. woocode

Source

woocode / sa-auto / conf / nginx / surna.com_8088.conf

server {
	listen 8088;
	server_name cms.surna.com ;

	location / {
		proxy_set_header Host cms.zjxyz.com;
		proxy_set_header X-Real-IP $remote_addr;
		proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

		proxy_pass http://local;

	}

	location /u/ {
		alias /apps/dat/cms/ufile/u/;
	}

	location /d/ {
		alias /apps/dat/cms/dfile/d/;
	}

}

server {
	listen 8088;
	server_name n.surna.com ;
	ssi on;
	ssi_silent_errors off;
	access_log  logs/n.surna.com.access.log;
	index index.shtml index.html index.htm index.php;
	location / {
		root  /apps/dat/www/n.surna.com;
	}

	location /u/ {
		alias /apps/dat/cms/ufile/u/;
	}

	location /d/ {
		alias /apps/dat/cms/dfile/d/;
	}

}