Nginx 分发 Apache


    # 不使用目录下的 .htaccess 文件
    AllowOverride none
    Allow from all
    
    Options +FollowSymLinks
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]



  location / {    #通用匹配,最后执行
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $host;
        proxy_pass http://127.0.0.1:8098;
        #try_files $uri $uri/ /index.php;
        #try_files $uri $uri/ /index.php?$query_string;
        #return 200 $request_uri; 
    }

你可能感兴趣的:(Nginx 分发 Apache)