httpd.conf配置文件:ServerTokens Prod
ServerSignature Off
Timeout 180
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
StartServers 2
ServerLimit 30
MaxClients 3000
MinSpareThreads 75
MaxSpareThreads 600
ThreadsPerChild 100
MaxRequestsPerChild 10000
UseCanonicalName Off
HostnameLookups Off
AddDefaultCharset GB2312
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
DocumentRoot "/home/admin/cai/htdocs"
ServerRoot "/home/admin/cai"
ServerAdmin aguda@taobao.com
ServerName taobao.com
PidFile /home/admin/cai/logs/httpd.pid
Listen 80
User admin
Group admin
LoadModule authz_host_module /opt/taobao/install/httpd/modules/mod_authz_host.so
#LoadModule include_module /opt/taobao/install/httpd/modules/mod_include.so
LoadModule deflate_module /opt/taobao/install/httpd/modules/mod_deflate.so
LoadModule log_config_module /opt/taobao/install/httpd/modules/mod_log_config.so
#LoadModule env_module /opt/taobao/install/httpd/modules/mod_env.so
LoadModule mime_magic_module /opt/taobao/install/httpd/modules/mod_mime_magic.so
#LoadModule expires_module /opt/taobao/install/httpd/modules/mod_expires.so
#LoadModule headers_module /opt/taobao/install/httpd/modules/mod_headers.so
LoadModule setenvif_module /opt/taobao/install/httpd/modules/mod_setenvif.so
LoadModule mime_module /opt/taobao/install/httpd/modules/mod_mime.so
LoadModule dir_module /opt/taobao/install/httpd/modules/mod_dir.so
LoadModule alias_module /opt/taobao/install/httpd/modules/mod_alias.so
LoadModule rewrite_module /opt/taobao/install/httpd/modules/mod_rewrite.so
#LoadModule php4_module /opt/taobao/install/httpd/modules/libphp4.so
LoadModule php5_module /opt/taobao/install/httpd/modules/libphp5.so
#LoadModule cgid_module /opt/taobao/install/httpd/modules/mod_cgid.so
LoadModule fcgid_module /opt/taobao/install/httpd/modules/mod_fcgid.so
#LoadModule fastcgi_module /opt/taobao/install/httpd/modules/mod_fastcgi.so
LoadModule evasive20_module /opt/taobao/install/httpd/modules/mod_evasive20.so
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
ErrorDocument 400 /home/error.html
ErrorDocument 403 /home/error.html
ErrorDocument 404 /home/error.html
ErrorDocument 405 /home/error.html
ErrorDocument 408 /home/error.html
ErrorDocument 410 /home/error.html
ErrorDocument 411 /home/error.html
ErrorDocument 412 /home/error.html
ErrorDocument 413 /home/error.html
ErrorDocument 414 /home/error.html
ErrorDocument 415 /home/error.html
ErrorDocument 500 /toolarge.html
ErrorDocument 501 /toolarge.html
ErrorDocument 502 /toolarge.html
ErrorDocument 503 /toolarge.html
ErrorDocument 506 /toolarge.html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
DirectoryIndex index.php
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /opt/taobao/install/httpd/conf/magic
</IfModule>
<Location />
SetOutputFilter DEFLATE
# SetEnvIfNoCase Request_URI ^/auction/checkcode$ no-gzip
</Location>
##========================================================================================
#DDOS路脌脫霉脛拢驴茅脡猫脰脙
##===========================
<IfModule mod_evasive20.c>
DOSHashTableSize 4000
DOSPageCount 2
DOSSiteCount 50
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 10
</IfModule>
##===========================
##===========================
ErrorLog "|/opt/taobao/install/cronolog/sbin/cronolog /home/admin/cai/logs/cronolog/%Y/%m/%Y-%m-%d-error_log"
LogLevel warn
LogFormat "%h %l %u %t \"%m
http://%V%U%q\"%>s%b\"% {Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
SetEnvIf Remote_Addr "127\.0\.0\.1" dontlog
SetEnvIf Remote_Addr "192\.168\." dontlog
SetEnvIf Remote_Addr "10\.0\." dontlog
SetEnvIf Remote_Addr "60\.191\.55\.49" dontlog
SetEnvIf Request_URI "^/robots\.txt$" dontlog
SetEnvIf Request_URI "\.swf$" dontlog
SetEnvIf Request_URI "\.gif$" dontlog
SetEnvIf Request_URI "\.jpg$" dontlog
SetEnvIf Request_URI "\.ico$" dontlog
SetEnvIf Request_URI "\.jpeg$" dontlog
SetEnvIf Request_URI "\.bmp$" dontlog
SetEnvIf Request_URI "\.png$" dontlog
SetEnvIf Request_URI "\.js$" dontlog
SetEnvIf Request_URI "\.css$" dontlog
SetEnvIf Request_URI "\.wav$" dontlog
SetEnvIf Request_URI "\.swf$" dontlog
SetEnvIf Request_URI "home/css" dontlog
CustomLog "|/opt/taobao/install/cronolog/sbin/cronolog /home/admin/cai/logs/cronolog/%Y/%m/%Y-%m-%d-taobao-access_log" combined env=
!dontlog
<IfModule mod_fcgid.c>
AddHandler fcgid-script .fcgi
IPCCommTimeout 40
IPCConnectTimeout 10
DefaultInitEnv RAILS_ENV production
SocketPath /tmp/fcgidsock
</IfModule>
#AddHandler fastcgi-script .fcgi
NameVirtualHost *
<VirtualHost *>
ServerName rails.taobao.com
DocumentRoot /home/admin/rails/rails.taobao.com/public
ErrorLog /home/admin/rails/logs/rails_taobao_com.log
<Directory "/home/admin/rails/">
Options Indexes ExecCGI FollowSymLinks
AllowOverride all
Allow from all
Order allow,deny
</Directory>
RewriteEngine on
</VirtualHost>
另外public下的.htaccess和dispatch.fcgi稍做改动,我的如下:
.htaccess:RewriteEngine On
RewriteRule ^$ index.html [QSA]
RewriteRule ^([^.]+)$ $1.html [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"
dispatch.fcgi:#!/usr/local/bin/ruby
require File.dirname(__FILE__) + "/../config/environment"
require 'fcgi_handler'
RailsFCGIHandler.process!
分享到:
相关推荐
XML 元素中,"<" 和 "&" 是非法的。"<" 会产生错误,因为解析器会把该字符解释为新元素的开始。"&" 也会产生错误,因为解析器会把该...[CDATA[文本内容]]>CDATA的文本内容中不能出现字符串“]]>”,另外,CDATA不能嵌套。
[CDATA[toUser]]></ToUserName> <FromUserName><![CDATA[fromUser]]></FromUserName> <CreateTime>1348831860</CreateTime> <MsgType><![CDATA[text]]></MsgType> <Content><![CDATA[this is a test]]></...
[CDATA[%s]]></ToUserName> <FromUserName><![CDATA[%s]]></FromUserName> <CreateTime>%s</CreateTime> <MsgType><![CDATA[%s]]></MsgType> <Content><![CDATA[%s]]></Content> <FuncFlag>0</FuncFlag> </xml...
自己将数据导入到xml中的,希望有需要的朋友可以自己下载,格式为<!DOCTYPE PCAroot[ <!ELEMENT PCAroot (Province*)> <!ELEMENT Province (City*)> <!ELEMENT City (Area*)> <!ELEMENT Area (#PCDATA)> <!...
本文给大家解析使用<![CDATA[ ]]>解决xml文件不被转义的问题, 对mybatis 中的<![CDATA[ ]]>相关知识感兴趣的朋友一起看看吧
<preconditions><![CDATA[1.使用udp_bi用户在PLSQL正常登陆UAT数据库<br> (UAT数据库IP: 10.0.13.178)<br> 2.数据库脚本已下载至本地环境]]></preconditions><importance><![CDATA[2]]></importance><steps> <step>
ATTLIST 电话 类别 CDATA "移动电话"> ]> <联系人列表> <说明>&content;</说明> <联系人> <姓名>刘保文</姓名> <ID>201003101115</ID> <公司>腾飞汇通有限公司</公司> <电话 类别="移动电话">18993380967</...
[CDATA["&fromusername&"]]></ToUserName>" &_ "<FromUserName><![CDATA["&tousername&"]]></FromUserName>" &_ "<CreateTime>"&now&"</CreateTime>" &_ "<MsgType>news</MsgType>" &_ "<ArticleCount>3</...
<srvver>1.0</srvver> <srvcode>000</srvcode> <payload> <param type=XML key=data> <![CDATA[ <Response> <Execution> <Status code=0 sql_code=0 description=执行成功!/> </Execution> <ResponseContent...
[CDATA[10]]></LoginTimeOut> <QueryTimeOut><![CDATA[3600]]></QueryTimeOut> 原始set.xml数据库连接节点缺少以上两个节点请添加,LoginTimeOut为数据库连接超时时间,单位秒,QueryTimeOut为SQL语句执行超时时间...
微信小程序支付JSAPI交易类型 已通过测试 返回例子如下: <xml><return_code><![CDATA[SUCCESS]]></return_code> <return_msg><![CDATA[OK]]></return_msg> <result_code><![CDATA[SUCCESS]]></result_code>
4、支持 CDATA 。5、开源(如果有任何问题可以自己修改)。缺点:。1、加载速度稍微逊色于支持库,但是查询速度很快。2、不支持DTD,也就是类似于如下的节点。 <!DOCTYPE note [。 <!ELEMENT note (to,from,...
[CDATA[//><!-- var scrollPic_02 = new ScrollPic(); scrollPic_02.scrollContId = "ISL_Cont_1"; //内容容器ID scrollPic_02.arrLeftId = "LeftArr";//左箭头ID scrollPic_02.arrRightId = "RightArr"; //...
android 使用saxparser 解析<![CDATA[ ]]>标签数据。 见附件实例
[^<>]*["'\s][^<>]*>]]></value> </property> <property name="replaceRegexUrl"> <!-- 替换可能包含URL的字符串 --> <value><![CDATA[<[^!<>]*\shref\s*=\s*["']?reptile-replace-string["'\s][^<>]*>]...
将txt文件转换成xml文件 方便处理,希望对大家有用
[CDATA[FAIL]]></return> <return><![CDATA[openid is invalid]]></return> </xml> 原因是,传有效过去不是的opendid。不小心看错了,把用户id 当做openid传过去了。 当统一下单成功,会返回以下格式的...
用android程序读取网上xml文件,这个xml文件中包含了<!CDATA>
字符数据中,不能含有&,<,>,',",需要采用实体引用的方式 字符数据段 <![CDATA[字符数据]]> 引用 <!ENTITY 引用名 "......."> 3)杂项 处理指令 XML为其它应用程序准备的接口。 <?处理...