user  nobody nobody;
worker_processes  4;

error_log  	logs/error.log;
pid        	logs/nginx.pid;

events {
	use epoll;
    worker_connections  1024;
}


http {
    include       		mime.types;
    default_type  	application/octet-stream;
	snedfile				on;
	
	sendfile        		on;
    keepalive_timeout  	65;
	
	access_log  logs/access.log  main;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';

	server {
		listen       80;
		server_name  www.test.com;

	location / {
		root   html/www;
		index  index.htm index.html;
		}
	} 

	server {
		listen 80;
		server_name bbs.test.com;

		index index.php index.html index.html;
		root html/bbs;

		location ~ \.(php)?$
		{
		include fastcgi_params;
		fastcgi_index index.php;
		fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
		fastcgi_pass 127.0.0.1:9000;
		}
	}
}

 

相关文章:

  • 2022-12-23
  • 2021-09-24
  • 2022-02-13
  • 2021-12-23
  • 2022-02-06
  • 2022-01-14
  • 2021-09-26
猜你喜欢
  • 2022-12-23
  • 2021-10-04
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
相关资源
相似解决方案