質問編集履歴
1
server.xmlのソースコード追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -500,6 +500,102 @@
|
|
500
500
|
|
501
501
|
```
|
502
502
|
|
503
|
+
```ここに言語を入力
|
504
|
+
|
505
|
+
server.xml
|
506
|
+
|
507
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
<Server port="8005" shutdown="SHUTDOWN">
|
512
|
+
|
513
|
+
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />
|
514
|
+
|
515
|
+
<!--APR library loader. Documentation at /docs/apr.html -->
|
516
|
+
|
517
|
+
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
|
518
|
+
|
519
|
+
<!-- Prevent memory leaks due to use of particular java/javax APIs-->
|
520
|
+
|
521
|
+
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
|
522
|
+
|
523
|
+
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
|
524
|
+
|
525
|
+
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
<GlobalNamingResources>
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
<Resource name="UserDatabase" auth="Container"
|
536
|
+
|
537
|
+
type="org.apache.catalina.UserDatabase"
|
538
|
+
|
539
|
+
description="User database that can be updated and saved"
|
540
|
+
|
541
|
+
factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
|
542
|
+
|
543
|
+
pathname="conf/tomcat-users.xml" />
|
544
|
+
|
545
|
+
</GlobalNamingResources>
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
<Service name="Catalina">
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
<Connector port="8080" protocol="HTTP/1.1"
|
554
|
+
|
555
|
+
connectionTimeout="20000"
|
556
|
+
|
557
|
+
redirectPort="8443" />
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
<Engine name="Catalina" defaultHost="localhost">
|
562
|
+
|
563
|
+
|
564
|
+
|
565
|
+
<Realm className="org.apache.catalina.realm.LockOutRealm">
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
<Realm className="org.apache.catalina.realm.JDBCRealm" connectionName="(ユーザ名)" connectionPassword="(パスワード)" connectionURL="jdbc:mysql://localhost:3306/myrecipe_db" driverName="com.mysql.jdbc.Driver" roleNameCol="rolename" userCredCol="password" userNameCol="username" userRoleTable="auth_roles" userTable="auth_users">
|
570
|
+
|
571
|
+
<CredentialHandler algorithm="SHA-256" className="org.apache.catalina.realm.MessageDigestCredentialHandler"/>
|
572
|
+
|
573
|
+
</Realm>
|
574
|
+
|
575
|
+
</Realm>
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
<Host name="localhost" appBase="webapps"
|
580
|
+
|
581
|
+
unpackWARs="true" autoDeploy="true">
|
582
|
+
|
583
|
+
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
|
584
|
+
|
585
|
+
prefix="localhost_access_log" suffix=".txt"
|
586
|
+
|
587
|
+
pattern="%h %l %u %t "%r" %s %b" />
|
588
|
+
|
589
|
+
</Host>
|
590
|
+
|
591
|
+
</Engine>
|
592
|
+
|
593
|
+
</Service>
|
594
|
+
|
595
|
+
</Server>
|
596
|
+
|
597
|
+
```
|
598
|
+
|
503
599
|
|
504
600
|
|
505
601
|
### 試したこと
|