VPS侦探论坛

 找回密码
 注册
查看: 8082|回复: 1

[Apache] nginx转发后,访问速度变慢

[复制链接]
发表于 2014-7-24 14:41:27 | 显示全部楼层 |阅读模式

nginx配置如下:
    server {
        listen       8050;
        server_name  localhost;

        charset utf-8;
        #access_log  logs/host.access.log  main;


#-------------------------------------------------
        location ~ ^/status/ {

stub_status on;

access_log off;
        }
        location /aa {
            proxy_pass  http://payrollciicfs;
            proxy_set_header    X-Real-IP  $remote_addr;
            proxy_set_header    Host       $host;

   
proxy_set_header    X-Forwarded-Proto https;
            proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
#            proxy_buffer_size 4k;
#            proxy_buffers 4 32k;
#            proxy_busy_buffers_size 64k;
#            proxy_temp_file_write_size 64k;
#            proxy_max_temp_file_size 512m;

   
proxy_redirect http://域名/aa https://域名/aa;
    }

请大侠指点。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2014-7-24 17:17:38 | 显示全部楼层


这个不清楚什么原因
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-30 23:13 , Processed in 0.026364 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表