精品论文xml配置文件计算机安全7019Word下载.docx
- 文档编号:7843766
- 上传时间:2023-05-09
- 格式:DOCX
- 页数:10
- 大小:20.60KB
精品论文xml配置文件计算机安全7019Word下载.docx
《精品论文xml配置文件计算机安全7019Word下载.docx》由会员分享,可在线阅读,更多相关《精品论文xml配置文件计算机安全7019Word下载.docx(10页珍藏版)》请在冰点文库上搜索。
-->
Serverport="
8005"
shutdown="
SHUTDOWN"
>
<
--CommenttheseentriesouttodisableJMXMBeanssupportusedforthe
administrationwebapplication-->
ListenerclassName="
org.apache.catalina.core.AprLifecycleListener"
/>
org.apache.catalina.mbeans.ServerLifecycleListener"
org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"
org.apache.catalina.storeconfig.StoreConfigLifecycleListener"
/>
--GlobalJNDIresources-->
GlobalNamingResources>
--Testentryfordemonstrationpurposes-->
Environmentname="
simpleValue"
type="
java.lang.Integer"
value="
30"
--Editableuserdatabasethatcanalsobeusedby
UserDatabaseRealmtoauthenticateusers-->
Resourcename="
UserDatabase"
auth="
org.apache.catalina.UserDatabase"
description="
Userdatabasethatcanbeupdatedandsaved"
factory="
org.apache.catalina.users.MemoryUserDatabaseFactory"
pathname="
conf/tomcat-users.xml"
/GlobalNamingResources>
isacollectionofoneormore"
Connectors"
thatshare
asingle"
(andthereforethewebapplicationsvisible
withinthatContainer).
Normally,thatContainerisan"
Engine"
butthisisnotrequired.
-->
--DefinetheTomcatStand-AloneService-->
Servicename="
Catalina"
Connector"
representsanendpointbywhichrequestsarereceived
andresponsesarereturned.
EachConnectorpassesrequestsontothe
associated"
(normallyanEngine)forprocessing.
Bydefault,anon-SSLHTTP/1.1Connectorisestablishedonport8080.
YoucanalsoenableanSSLHTTP/1.1Connectoronport8443by
followingtheinstructionsbelowanduncommentingthesecondConnector
entry.
SSLsupportrequiresthefollowingsteps(seetheSSLConfig
HOWTOintheTomcat5documentationbundleformoredetailed
instructions):
*IfyourJDKversion1.3orprior,downloadandinstallJSSE1.0.2or
later,andputtheJARfilesinto"
$JAVA_HOME/jre/lib/ext"
.
*Execute:
%JAVA_HOME%\bin\keytool-genkey-aliastomcat-keyalgRSA(Windows)
$JAVA_HOME/bin/keytool-genkey-aliastomcat-keyalgRSA
(Unix)
withapasswordvalueof"
changeit"
forboththecertificateand
thekeystoreitself.
Bydefault,DNSlookupsareenabledwhenawebapplicationcalls
request.getRemoteHost().
Thiscanhaveanadverseimpacton
performance,soyoucandisableitbysettingthe
"
enableLookups"
attributeto"
false"
.
WhenDNSlookupsaredisabled,
request.getRemoteHost()willreturntheStringversionofthe
IPaddressoftheremoteclient.
--Defineanon-SSLHTTP/1.1Connectoronport8080-->
Connector
port="
8080"
maxHttpHeaderSize="
8192"
maxThreads="
150"
minSpareThreads="
25"
maxSpareThreads="
75"
enableLookups="
redirectPort="
8443"
acceptCount="
100"
connectionTimeout="
20000"
disableUploadTimeout="
true"
--Note:
Todisableconnectiontimeouts,setconnectionTimeoutvalue
to0-->
Tousegzipcompressionyoucouldsetthefollowingproperties:
compression="
on"
compressionMinSize="
2048"
noCompressionUserAgents="
gozilla,traviata"
compressableMimeType="
text/html,text/xml"
--DefineaSSLHTTP/1.1Connectoronport8443-->
--
Connectorport="
scheme="
https"
secure="
clientAuth="
sslProtocol="
TLS"
--DefineanAJP1.3Connectoronport8009-->
8009"
protocol="
AJP/1.3"
--DefineaProxiedHTTP/1.1Connectoronport8082-->
--Seeproxydocumentationformoreinformationaboutusingthis.-->
8082"
proxyPort="
80"
--AnEnginerepresentstheentrypoint(withinCatalina)thatprocesses
everyrequest.
TheEngineimplementationforTomcatstandalone
analyzestheHTTPheadersincludedwiththerequest,andpassesthem
ontotheappropriateHost(virtualhost).-->
--YoushouldsetjvmRoutetosupportload-balancingviaAJPie:
Enginename="
Standalone"
defaultHost="
localhost"
jvmRoute="
jvm1"
--Definethetoplevelcontainerinourcontainerhierarchy-->
--Therequestdumpervalvedumpsusefuldebugginginformationabout
therequestheadersandcookiesthatwerereceived,andtheresponse
headersandcookiesthatweresent,forallrequestsreceivedby
thisinstanceofTomcat.
Ifyoucareonlyaboutrequeststoa
particularvirtualhost,oraparticularapplication,nestthis
elementinsidethecorresponding<
Host>
or<
Context>
entryinstead.
ForasimilarmechanismthatisportabletoallServlet2.4
containers,checkoutthe"
RequestDumperFilter"
Filterinthe
exampleapplication(thesourceforthisfiltermaybefoundin
$CATALINA_HOME/webapps/examples/WEB-INF/classes/filters"
).
Requestdumpingisdisabledbydefault.
Uncommentthefollowing
elementtoenableit.-->
ValveclassName="
org.apache.catalina.valves.RequestDumperValve"
--BecausethisRealmishere,aninstancewillbesharedglobally-->
--ThisRealmusestheUserDatabaseconfiguredintheglobalJNDI
resourcesunderthekey"
Anyedits
thatareperformedagainstthisUserDatabaseareimmediately
availableforusebytheRealm.
RealmclassName="
org.apache.catalina.realm.UserDatabaseRealm"
resourceName="
--Commentouttheoldrealmbutleaveherefornowincasewe
needtogobackquickly-->
org.apache.catalina.realm.MemoryRealm"
--ReplacetheaboveRealmwithoneofthefollowingtogetaRealm
storedinadatabaseandaccessedviaJDBC-->
Realm
className="
org.apache.catalina.realm.JDBCRealm"
driverName="
org.gjt.mm.mysql.Driver"
connectionURL="
jdbc:
mysql:
//localhost/authority"
connectionName="
test"
connectionPassword="
userTable="
users"
userNameCol="
user_name"
userCredCol="
user_pass"
userRoleTable="
user_roles"
roleNameCol="
role_name"
oracle.jdbc.driver.OracleDriver"
oracle:
thin:
@ntserver:
1521:
ORCL"
scott"
tiger"
sun.jdbc.odbc.JdbcOdbcDriver"
odbc:
CATALINA"
--Definethedefaultvirtualhost
XMLSchemavalidationwillnotworkwithXerces2.2.
Hostname="
appBase="
webapps"
unpackWARs="
autoDeploy="
xmlValidation="
xmlNamespaceAware="
Contextpath="
/CdShop"
docbase="
CdShop"
debug="
0"
reloadable="
crossContext="
LoggerclassName="
org.apache.catalina.logger.FileLogger"
prefix="
localhost_quality_log."
suffix="
.txt"
timestamp="
jdbc/connectDB"
auth="
type="
javax.sql.DataSource"
ResourceParamsname="
parameter>
name>
maxActive<
/name>
value>
100<
/value>
/parameter>
maxIdle<
30<
maxWait<
10000<
removeAbandoned<
true<
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 精品 论文 xml 配置文件 计算机 安全 7019