質問編集履歴
6
文言追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,9 @@
|
|
28
28
|
|
29
29
|
Welcome to nginx!
|
30
30
|
|
31
|
+
すべての設定は終わりましたが、
|
32
|
+
|
31
|
-
↑ページのままで、画面が変わらない
|
33
|
+
なぜか↑ページのままで、画面が変わらない
|
32
34
|
|
33
35
|
```
|
34
36
|
|
5
文言追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
サーバー移行(Windows>Ubuntu)
|
1
|
+
サーバー移行(Windows>Ubuntu)のnginx設定
|
test
CHANGED
File without changes
|
4
文言追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -138,7 +138,7 @@
|
|
138
138
|
|
139
139
|
|
140
140
|
|
141
|
-
location ^~/pms
|
141
|
+
location ^~/pms-pic/ {
|
142
142
|
|
143
143
|
proxy_pass http://127.0.0.1:8080;
|
144
144
|
|
@@ -174,6 +174,204 @@
|
|
174
174
|
|
175
175
|
|
176
176
|
|
177
|
+
/opt/apache-tomcat-9.0.38/conf/server.xml
|
178
|
+
|
179
|
+
このファイルの最後に、<Context reloadable="false" docBase="/usr/upload" path="/pms-pic"/>を追加しただけです。
|
180
|
+
|
181
|
+
```
|
182
|
+
|
183
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
184
|
+
|
185
|
+
<!--
|
186
|
+
|
187
|
+
Licensed to the Apache Software Foundation (ASF) under one or more
|
188
|
+
|
189
|
+
contributor license agreements. See the NOTICE file distributed with
|
190
|
+
|
191
|
+
this work for additional information regarding copyright ownership.
|
192
|
+
|
193
|
+
The ASF licenses this file to You under the Apache License, Version 2.0
|
194
|
+
|
195
|
+
(the "License"); you may not use this file except in compliance with
|
196
|
+
|
197
|
+
the License. You may obtain a copy of the License at
|
198
|
+
|
199
|
+
|
200
|
+
|
201
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
Unless required by applicable law or agreed to in writing, software
|
206
|
+
|
207
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
208
|
+
|
209
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
210
|
+
|
211
|
+
See the License for the specific language governing permissions and
|
212
|
+
|
213
|
+
limitations under the License.
|
214
|
+
|
215
|
+
-->
|
216
|
+
|
217
|
+
<!-- Note: A "Server" is not itself a "Container", so you may not
|
218
|
+
|
219
|
+
define subcomponents such as "Valves" at this level.
|
220
|
+
|
221
|
+
Documentation at /docs/config/server.html
|
222
|
+
|
223
|
+
-->
|
224
|
+
|
225
|
+
<Server port="8005" shutdown="SHUTDOWN">
|
226
|
+
|
227
|
+
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
|
228
|
+
|
229
|
+
<!-- Security listener. Documentation at /docs/config/listeners.html
|
230
|
+
|
231
|
+
<Listener className="org.apache.catalina.security.SecurityListener" />
|
232
|
+
|
233
|
+
-->
|
234
|
+
|
235
|
+
<!--APR library loader. Documentation at /docs/apr.html -->
|
236
|
+
|
237
|
+
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
238
|
+
|
239
|
+
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
240
|
+
|
241
|
+
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
242
|
+
|
243
|
+
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
244
|
+
|
245
|
+
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<!-- Global JNDI resources
|
250
|
+
|
251
|
+
Documentation at /docs/jndi-resources-howto.html
|
252
|
+
|
253
|
+
-->
|
254
|
+
|
255
|
+
<GlobalNamingResources>
|
256
|
+
|
257
|
+
<!-- Editable user database that can also be used by
|
258
|
+
|
259
|
+
UserDatabaseRealm to authenticate users
|
260
|
+
|
261
|
+
-->
|
262
|
+
|
263
|
+
<Resource name="UserDatabase" auth="Container"
|
264
|
+
|
265
|
+
type="org.apache.catalina.UserDatabase"
|
266
|
+
|
267
|
+
description="User database that can be updated and saved"
|
268
|
+
|
269
|
+
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
|
270
|
+
|
271
|
+
pathname="conf/tomcat-users.xml" />
|
272
|
+
|
273
|
+
</GlobalNamingResources>
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<Service name="Catalina">
|
278
|
+
|
279
|
+
<Connector port="8080" protocol="HTTP/1.1"
|
280
|
+
|
281
|
+
connectionTimeout="20000"
|
282
|
+
|
283
|
+
redirectPort="8443" />
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
<Engine name="Catalina" defaultHost="localhost">
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
<!--For clustering, please take a look at documentation at:
|
294
|
+
|
295
|
+
/docs/cluster-howto.html (simple how to)
|
296
|
+
|
297
|
+
/docs/config/cluster.html (reference documentation) -->
|
298
|
+
|
299
|
+
<!--
|
300
|
+
|
301
|
+
<Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
|
302
|
+
|
303
|
+
-->
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
<!-- Use the LockOutRealm to prevent attempts to guess user passwords
|
308
|
+
|
309
|
+
via a brute-force attack -->
|
310
|
+
|
311
|
+
<Realm className="org.apache.catalina.realm.LockOutRealm">
|
312
|
+
|
313
|
+
<!-- This Realm uses the UserDatabase configured in the global JNDI
|
314
|
+
|
315
|
+
resources under the key "UserDatabase". Any edits
|
316
|
+
|
317
|
+
that are performed against this UserDatabase are immediately
|
318
|
+
|
319
|
+
available for use by the Realm. -->
|
320
|
+
|
321
|
+
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
|
322
|
+
|
323
|
+
resourceName="UserDatabase"/>
|
324
|
+
|
325
|
+
</Realm>
|
326
|
+
|
327
|
+
|
328
|
+
|
329
|
+
<Host name="localhost" appBase="webapps"
|
330
|
+
|
331
|
+
unpackWARs="true" autoDeploy="true">
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
<!-- SingleSignOn valve, share authentication between web applications
|
336
|
+
|
337
|
+
Documentation at: /docs/config/valve.html -->
|
338
|
+
|
339
|
+
<!--
|
340
|
+
|
341
|
+
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
|
342
|
+
|
343
|
+
-->
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
<!-- Access log processes all example.
|
348
|
+
|
349
|
+
Documentation at: /docs/config/valve.html
|
350
|
+
|
351
|
+
Note: The pattern used is equivalent to using pattern="common" -->
|
352
|
+
|
353
|
+
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
354
|
+
|
355
|
+
prefix="localhost_access_log" suffix=".txt"
|
356
|
+
|
357
|
+
pattern="%h %l %u %t "%r" %s %b" />
|
358
|
+
|
359
|
+
<Context reloadable="false" docBase="/usr/upload" path="/pms-pic"/>
|
360
|
+
|
361
|
+
</Host>
|
362
|
+
|
363
|
+
</Engine>
|
364
|
+
|
365
|
+
</Service>
|
366
|
+
|
367
|
+
</Server>
|
368
|
+
|
369
|
+
```
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
177
375
|
### 試したこと
|
178
376
|
|
179
377
|
・JAVA_HOME設定追加
|
3
文言追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -104,11 +104,9 @@
|
|
104
104
|
|
105
105
|
listen 80;
|
106
106
|
|
107
|
-
server_name
|
107
|
+
server_name xxxx.japaneast.cloudapp.azure.com;
|
108
108
|
|
109
|
-
index index.html;
|
110
|
-
|
111
|
-
r
|
109
|
+
return 301 https://$host$request_uri;
|
112
110
|
|
113
111
|
}
|
114
112
|
|
@@ -118,11 +116,39 @@
|
|
118
116
|
|
119
117
|
listen 443;
|
120
118
|
|
121
|
-
server_name xxxx
|
119
|
+
server_name xxxx.japaneast.cloudapp.azure.com;
|
122
120
|
|
123
121
|
index index.html;
|
124
122
|
|
125
123
|
root /usr/share/nginx/dist;
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
location ^~/pms_web/ {
|
128
|
+
|
129
|
+
proxy_pass http://127.0.0.1:8080;
|
130
|
+
|
131
|
+
proxy_set_header Host $host:$server_port;
|
132
|
+
|
133
|
+
proxy_set_header X-Real-IP $remote_addr;
|
134
|
+
|
135
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
136
|
+
|
137
|
+
}
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
location ^~/pms_pic/ {
|
142
|
+
|
143
|
+
proxy_pass http://127.0.0.1:8080;
|
144
|
+
|
145
|
+
proxy_set_header Host $host:$server_port;
|
146
|
+
|
147
|
+
proxy_set_header X-Real-IP $remote_addr;
|
148
|
+
|
149
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
150
|
+
|
151
|
+
}
|
126
152
|
|
127
153
|
|
128
154
|
|
2
文言追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -150,6 +150,6 @@
|
|
150
150
|
|
151
151
|
### 試したこと
|
152
152
|
|
153
|
-
・JAVA_HOME
|
153
|
+
・JAVA_HOME設定追加
|
154
154
|
|
155
155
|
・nginx再起動
|
1
文言追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,13 +4,13 @@
|
|
4
4
|
|
5
5
|
**手順:**
|
6
6
|
|
7
|
-
1.Ubuntu 1
|
7
|
+
1.Ubuntu 18.04 LTS に OpenJDK 9 をインストールする
|
8
8
|
|
9
|
-
2.Apache Tomcat 9 を Ubuntu 1
|
9
|
+
2.Apache Tomcat 9 を Ubuntu 18.04 LTS にインストールする
|
10
10
|
|
11
11
|
3.MySQLサーバとクライアントツールのインストール
|
12
12
|
|
13
|
-
4.Redis を Ubuntu 1
|
13
|
+
4.Redis を Ubuntu 18.04 LTS にインストールする
|
14
14
|
|
15
15
|
5.Ubuntu 18.04にNginxをインストールする
|
16
16
|
|