質問編集履歴

1

rrrrr

2020/11/19 05:21

投稿

kanekoK
kanekoK

スコア11

test CHANGED
File without changes
test CHANGED
@@ -7,3 +7,315 @@
7
7
  8080ポート番号をserverのconectorに書きたいのですが、
8
8
 
9
9
  conectorがない場合どうしたらいいか教えていただきたいです。
10
+
11
+
12
+
13
+ ```ここに言語を入力
14
+
15
+ <?xml version="1.0" encoding="UTF-8"?>
16
+
17
+ <!--
18
+
19
+ Licensed to the Apache Software Foundation (ASF) under one or more
20
+
21
+ contributor license agreements. See the NOTICE file distributed with
22
+
23
+ this work for additional information regarding copyright ownership.
24
+
25
+ The ASF licenses this file to You under the Apache License, Version 2.0
26
+
27
+ (the "License"); you may not use this file except in compliance with
28
+
29
+ the License. You may obtain a copy of the License at
30
+
31
+
32
+
33
+ http://www.apache.org/licenses/LICENSE-2.0
34
+
35
+
36
+
37
+ Unless required by applicable law or agreed to in writing, software
38
+
39
+ distributed under the License is distributed on an "AS IS" BASIS,
40
+
41
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42
+
43
+ See the License for the specific language governing permissions and
44
+
45
+ limitations under the License.
46
+
47
+ --><!-- Note: A "Server" is not itself a "Container", so you may not
48
+
49
+ define subcomponents such as "Valves" at this level.
50
+
51
+ Documentation at /docs/config/server.html
52
+
53
+ --><Server port="8005" shutdown="SHUTDOWN">
54
+
55
+
56
+
57
+ <!--APR library loader. Documentation at /docs/apr.html -->
58
+
59
+ <Listener SSLEngine="on" className="org.apache.catalina.core.AprLifecycleListener"/>
60
+
61
+ <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
62
+
63
+ <Listener className="org.apache.catalina.core.JasperListener"/>
64
+
65
+ <!-- Prevent memory leaks due to use of particular java/javax APIs-->
66
+
67
+ <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener"/>
68
+
69
+ <!-- JMX Support for the Tomcat server. Documentation at /docs/non-existent.html -->
70
+
71
+ <Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
72
+
73
+ <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
74
+
75
+
76
+
77
+ <!-- Global JNDI resources
78
+
79
+ Documentation at /docs/jndi-resources-howto.html
80
+
81
+ -->
82
+
83
+ <GlobalNamingResources>
84
+
85
+ <!-- Editable user database that can also be used by
86
+
87
+ UserDatabaseRealm to authenticate users
88
+
89
+ -->
90
+
91
+ <Resource auth="Container" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" name="UserDatabase" pathname="conf/tomcat-users.xml" type="org.apache.catalina.UserDatabase"/>
92
+
93
+ </GlobalNamingResources>
94
+
95
+
96
+
97
+ <!-- A "Service" is a collection of one or more "Connectors" that share
98
+
99
+ a single "Container" Note: A "Service" is not itself a "Container",
100
+
101
+ so you may not define subcomponents such as "Valves" at this level.
102
+
103
+ Documentation at /docs/config/service.html
104
+
105
+ -->
106
+
107
+ <Service name="Catalina">
108
+
109
+
110
+
111
+ <!--The connectors can use a shared executor, you can define one or more named thread pools-->
112
+
113
+ <!--
114
+
115
+ <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
116
+
117
+ maxThreads="150" minSpareThreads="4"/>
118
+
119
+ -->
120
+
121
+
122
+
123
+
124
+
125
+ <!-- A "Connector" represents an endpoint by which requests are received
126
+
127
+ and responses are returned. Documentation at :
128
+
129
+ Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
130
+
131
+ Java AJP Connector: /docs/config/ajp.html
132
+
133
+ APR (HTTP/AJP) Connector: /docs/apr.html
134
+
135
+ Define a non-SSL HTTP/1.1 Connector on port 8080
136
+
137
+ -->
138
+
139
+ <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
140
+
141
+ <!-- A "Connector" using the shared thread pool-->
142
+
143
+ <!--
144
+
145
+ <Connector executor="tomcatThreadPool"
146
+
147
+ port="8080" protocol="HTTP/1.1"
148
+
149
+ connectionTimeout="20000"
150
+
151
+ redirectPort="8443" />
152
+
153
+ -->
154
+
155
+ <!-- Define a SSL HTTP/1.1 Connector on port 8443
156
+
157
+ This connector uses the JSSE configuration, when using APR, the
158
+
159
+ connector should be using the OpenSSL style configuration
160
+
161
+ described in the APR documentation -->
162
+
163
+ <!--
164
+
165
+ <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
166
+
167
+ maxThreads="150" scheme="https" secure="true"
168
+
169
+ clientAuth="false" sslProtocol="TLS" />
170
+
171
+ -->
172
+
173
+
174
+
175
+ <!-- Define an AJP 1.3 Connector on port 8009 -->
176
+
177
+ <Connector port="8009" protocol="AJP/1.3" redirectPort="8443"/>
178
+
179
+
180
+
181
+
182
+
183
+ <!-- An Engine represents the entry point (within Catalina) that processes
184
+
185
+ every request. The Engine implementation for Tomcat stand alone
186
+
187
+ analyzes the HTTP headers included with the request, and passes them
188
+
189
+ on to the appropriate Host (virtual host).
190
+
191
+ Documentation at /docs/config/engine.html -->
192
+
193
+
194
+
195
+ <!-- You should set jvmRoute to support load-balancing via AJP ie :
196
+
197
+ <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
198
+
199
+ -->
200
+
201
+ <Engine defaultHost="localhost" name="Catalina">
202
+
203
+
204
+
205
+ <!--For clustering, please take a look at documentation at:
206
+
207
+ /docs/cluster-howto.html (simple how to)
208
+
209
+ /docs/config/cluster.html (reference documentation) -->
210
+
211
+ <!--
212
+
213
+ <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
214
+
215
+ -->
216
+
217
+
218
+
219
+ <!-- The request dumper valve dumps useful debugging information about
220
+
221
+ the request and response data received and sent by Tomcat.
222
+
223
+ Documentation at: /docs/config/valve.html -->
224
+
225
+ <!--
226
+
227
+ <Valve className="org.apache.catalina.valves.RequestDumperValve"/>
228
+
229
+ -->
230
+
231
+
232
+
233
+ <!-- Use the LockOutRealm to prevent attempts to guess user passwords
234
+
235
+ via a brute-force attack -->
236
+
237
+ <Realm className="org.apache.catalina.realm.LockOutRealm">
238
+
239
+ <!-- This Realm uses the UserDatabase configured in the global JNDI
240
+
241
+ resources under the key "UserDatabase". Any edits
242
+
243
+ that are performed against this UserDatabase are immediately
244
+
245
+ available for use by the Realm. -->
246
+
247
+ <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
248
+
249
+ </Realm>
250
+
251
+
252
+
253
+ <!-- Define the default virtual host
254
+
255
+ Note: XML Schema validation will not work with Xerces 2.2.
256
+
257
+ -->
258
+
259
+ <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
260
+
261
+
262
+
263
+ <!-- SingleSignOn valve, share authentication between web applications
264
+
265
+ Documentation at: /docs/config/valve.html -->
266
+
267
+ <!--
268
+
269
+ <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
270
+
271
+ -->
272
+
273
+
274
+
275
+ <!-- Access log processes all example.
276
+
277
+ Documentation at: /docs/config/valve.html -->
278
+
279
+ <!--
280
+
281
+ <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
282
+
283
+ prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
284
+
285
+ -->
286
+
287
+
288
+
289
+ </Host>
290
+
291
+ </Engine>
292
+
293
+ </Service>
294
+
295
+ </Server>
296
+
297
+ ```
298
+
299
+
300
+
301
+ <Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443"/>
302
+
303
+ ありがとうございます。connectorありました。
304
+
305
+ ポート番号を8080にへんこうしました。
306
+
307
+
308
+
309
+ ![イメージ説明](6456158fa5377d67724b54bf7fd01568.png)
310
+
311
+
312
+
313
+ ![イメージ説明](73b2c97b87ff64b980448078ee4dbfff.png)
314
+
315
+
316
+
317
+ 上記キャプチャのconnectorで属性追加とwebにあるのですが、connectorは
318
+
319
+ serviceのエディタを使わないとconnectorは確認できないのですが、
320
+
321
+ どのようにしたら属性の追加で新規属性を作成できるのか教えていただきたいです。