allowoverride all nginx_override和new_override wamp(13)

电脑杂谈  发布时间:2017-04-06 10:09:28  来源:网络整理

gzip on;

gzip_http_version 1.0;

gzip_min_length 1100;

gzip_comp_level 3;

gzip_buffers 4 32k;

gzip_types text/plain text/xml text/css application/x-javascriptapplication/xml application/xml+rss text/javascriptapplication/atom+xml;

ignore_invalid_headers on;

client_header_timeout 3m;

client_body_timeout 3m;

send_timeout 3m;

connection_pool_size 256;

server_names_hash_max_size 2048;

server_names_hash_bucket_size 256;

client_header_buffer_size 256k;

large_client_header_buffers 4 256k;

request_pool_size 32k;

output_buffers 4 64k;

postpone_output 1460;

open_file_cache max=1000 inactive=300s;

open_file_cache_valid 600s;

open_file_cache_min_uses 2;

open_file_cache_errors off;

include "/usr/local/nginx/conf/vhosts/*.conf";

server {

listen 80;

server_name _;

access_log off;

location ~* \.(ftpquota|htaccess|asp|aspx|jsp|asa|mdb)$ {

deny all;

}

location / {

client_max_body_size 100m;

client_body_buffer_size 128k;

proxy_send_timeout 300;

proxy_read_timeout 300;

proxy_buffer_size 4k;

proxy_buffers 16 32k;

proxy_busy_buffers_size 64k;

proxy_temp_file_write_size 64k;

proxy_connect_timeout 30s;

proxy_pass :81/;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

}

}

#配置pure-ftpd,这里采用PureDB的验证方式.

vim /usr/local/pureftpd/etc/pure-ftpd.conf

#查找 PureDB /etc/pureftpd.pdb 取消前面的#号并设置成

PureDB /usr/local/pureftpd/etc/pureftpd.pdb

#查找 PassivePortRange 取消前面的#号

三、设置各服务开机自运行并启动服务

# chkconfig --level 35 mysql on


本文来自电脑杂谈,转载请注明本文网址:
https://www.pc-fly.com/a/jisuanjixue/article-39787-13.html

相关阅读
    发表评论  请自觉遵守互联网相关的政策法规,严禁发布、暴力、反动的言论

    • 孙不二
      孙不二

      全世界国家的主政府是美国说了算

    • 王乙雯
      王乙雯

      爱你

    • 陈百强
      陈百强

      那些炮弹难道真是在电视上让那些鼓吹的军事家的咸蛋与茶叶蛋吗

    热点图片
    拼命载入中...