• Nginx简易配置文件(一)(静态页面及PHP页面解析)


    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;
    		}
    	}
    }
    
  • 相关阅读:
    虚函数
    类的继承
    析构
    构造
    枚举类型
    c++中的静态类型 static
    c++中的类
    sizeof和strlen的区别
    剑指36 二叉搜索书与双向链表
    剑指35 复杂链表的复制
  • 原文地址:https://www.cnblogs.com/configure/p/5364183.html
Copyright © 2020-2023  润新知