Sun Java SystemWeb Server 7.0 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054 U.S.A. 820 0872 2006 10
2006 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Sun Sun Berkeley BSD UNIX X/Open Company, Ltd. / Sun Sun Microsystems Sun docs.sun.com AnswerBook AnswerBook2 Java Solaris Sun Microsystems, Inc. / SPARC SPARC International, Inc. / SPARC Sun Microsystems, Inc. OPEN LOOK Sun TM Sun Microsystems, Inc. Sun Xerox Sun Xerox Xerox OPEN LOOK GUI Sun Sun Sun Microsystems, Inc. FAR Federal Acquisition Regulations 070531@17466
...19 1...25... 25... 25 Administration Server... 26 Unix/Linux Administration Server... 26 Unix/Linux Administration Server... 26 Windows Administration Server... 26... 26... 27 GUI... 29 CLI... 29 CLI... 29 wadm CLI... 30 CLI... 30 Web Server 7.0... 31 2...35... 35... 35... 36... 37... 38... 38... 38... 39 3
... 39... 40... 40... 40... 41... 42... 42... 43 3...45 Sun Java System Web Server... 45... 45... 46... 47... 49 4...51... 51... 53... 55 Web Server... 55... 56... 56... 58... 60... 60... 61 Web... 62... 63 Solaris Zones... 63 5...65... 65... 65 4 Sun Java SystemWeb Server 7.0 2006 10
... 66... 66... 66... 67... 67... 67... 67... 68... 68... 69... 69 HTTP... 69 HTTP... 70 HTTP... 70 6...73... 73... 74... 74... 74... 76... 76... 76... 77... 78... 78... 79... 79... 80... 80 Administration Server... 80 (Certificate Revocation List, CRL)... 81 CRL... 81 CRL... 81... 82 5
... 82 SSL... 83 SSL... 83 HTTP... 84 7...87... 87... 88 /... 89... 90... 90 SSL... 91... 91 /IP... 93 ACL... 93 ACL... 94... 94 (Access Control List, ACL)... 94 (Access Control Entry, ACE)... 96.htaccess... 98... 99... 99... 100 8... 101... 101... 101... 102 (Distinguished Name, DN)... 102 LDIF... 103... 103... 104... 105... 105... 105 6 Sun Java SystemWeb Server 7.0 2006 10
... 106... 107... 107... 108... 108 9... 111... 111... 112 MIME... 112 MIME... 113 (UNIX/Linux)... 113... 114... 114... 115 URL... 115 URL... 116 CGI... 117 CGI... 119... 121 Windows Shell CGI... 121 Windows Shell CGI... 121... 122... 123... 124... 124... 124 (UNIX/Linux)... 125... 125 HTML... 126 HTML... 126... 127... 127... 128... 128 7
... 128... 129... 129... 130 URI... 130... 131 P3P... 132 P3P... 132 10 WebDAV Web...135 WebDAV... 136 WebDAV... 136 WebDAV... 139 WebDAV... 140 WebDAV... 140 WebDAV... 140 WebDAV... 140 WebDAV... 140 WebDAV... 140 WebDAV... 141 WebDAV... 141 WebDAV... 141 WebDAV... 141 WebDAV... 141 WebDAV... 142 WebDAV... 143 WebDAV... 143 WebDAV URI Translate:f... 144... 144... 145... 145... 145 11 Java Web...147 Java Sun Java System Web Server... 147 8 Sun Java SystemWeb Server 7.0 2006 10
Java... 147 Java... 148 Java... 148 JVM... 149 JVM... 149 JVM... 149 JVM... 149 JVM... 150 Java... 150 JVM... 150 Java Web... 151 Web... 151 Web... 151 Web... 152 JSP... 152 Servlet... 153 Servlet... 153 Servlet... 153... 154... 154... 154... 155 Java... 156 JDBC... 157 Sun Java System Web Server JDBC... 157 JDBC... 160 JDBC... 160 JDBC... 160 JDBC... 160... 162... 162 JNDI... 163 JNDI... 163... 164... 164 SOAP... 165 9
SOAP... 166 SOAP... 166... 167... 168... 168... 169... 171 12... 173... 173... 174... 175... 175... 175... 177... 177... 179... 179... 179... 180... 180... 180... 181... 181... 181... 181... 182... 182... 184... 185... 185... 186 13... 187 Sun Java System Web Server... 187 10 Sun Java SystemWeb Server 7.0 2006 10
... 188... 188... 189... 190 SNMP... 190 SNMP... 191 CLI SNMP... 193 Solaris SNMP... 193 Linux SNMP... 194 Windows SNMP... 194 (magt)... 195... 195... 196... 196... 196 Administration Server... 199... 199... 200... 200 14... 201... 201... 201 LDAP... 201... 202 WebDAV... 202... 202... 202... 202 A CLI...205 B FastCGI...209... 209 11
(SAF)... 210 auth-fastcgi... 210 responder-fastcgi... 210 filter-fastcgi... 211 error-fastcgi... 211 FastCGI SAF... 211 error-fastcgi SAF... 213 Web Server FastCGI... 213 magnus.conf... 214 MIME... 214 obj.conf... 215 FastCGI... 216 FastCGI... 217 FastCGI... 217 FastCGI... 219 PHP (ListDir.php)... 219 Perl (SimpleAuth.pl)... 219 C (SimpleFilter.c)... 220 C Web...225 Web Server 7.0 JWSDP 2.0... 225 JWSDP 2.0... 225... 229... 237 12 Sun Java SystemWeb Server 7.0 2006 10
4 1 Web... 54 4 2... 57 4 3... 58 13
14
6 1 HTTP... 85 7 1... 92 7 2 ACL... 95 7 3 ACE... 96 7 4... 99 8 1...110 9 1 URL...116 9 2 CGI...120 10 1 WebDAV...142 10 2 WebDAV...143 10 3 Sun Java System Web Server...146 11 1 Servlet...153 11 2 JDBC...158 11 3...162 11 4 JNDI...164 11 5...165 11 6 SOAP...166 11 7...169 11 8...170 12 1 >...178 13 1...188 13 2 >...190 13 3 > SNMP...191 13 4...192 13 5 >...197 13 6 >...197 13 7 >...198 A 1 CLI...205 15
16
17
18
Sun Java TM System Web Server 7.0 Sun Java System Web Server Web Sun Java System Web Server 7.0 Sun Java Enterprise System (Java ES) Internet Sun Java System Web Server 7.0 Java ES http://docs.sun.com/coll/1286.2 http://docs.sun.com/coll/1382.2 Sun Java SystemWeb Server 7.0 Sun Java System Web Server 7.0 Web Server Sun Java System Web Server 7.0 URL http://docs.sun.com/coll/1308.3 http://docs.sun.com/coll/1395.2 Sun Java System Web Server 7.0 19
P 1 Sun Java System Web Server 7.0 Sun Java System Web Server 7.0 Documentation Center Web Server Sun Java System Web Server 7.0 Web Server Sun Java System Web Server 7.0 Installation and Migration Guide Sun Java System Web Server 7.0 Sun Java System Web Server 7.0 Developer s Guide Sun Java System Web Server 7.0 Update 1 NSAPI Developer s Guide Sun Java System Web Server 7.0 Developer s Guide to Java Web Applications Sun Java System Web Server 7.0 Administrator s Configuration File Reference Sun Java System Web Server 7.0 Performance Tuning, Sizing, and Scaling Guide Sun Java System Web Server 7.0 Troubleshooting Guide Web Server Sun ONE Web Server 6.0 6.1 Sun Java System Web Server 7.0 JavaPlatform Enterprise Edition (Java EE) WebDAV Web API Sun Java System Web Server Netscape (Netscape Server Application Programmer s Interface, NSAPI) Sun Java System Web Server Java Servlet JavaServer Pages TM (JSP TM ) Sun Java System Web Server Web Server 20 Sun Java SystemWeb Server 7.0 2006 10
Sun Java Enterprise System (Java ES) URL http://docs.sun.com/app/docs/prod/entsys.06q4 http://docs.sun.com/app/docs/prod/entsys.06q4?l=zh P 2 install_dir Sun Java System Web Server 7.0 Solaris TM Sun Java Enterprise System (Java ES) /opt/sunwwbserver7 Linux HP-UX Java ES /opt/sun/webserver/ Windows Java ES System Drive:\Program Files\Sun\JavaES5\WebServer7 Solaris Linux HP-UX user's home directory/sun/webserver7 Solaris Linux HP-UX /sun/webserver7 Windows SystemDrive:\Program Files\Sun\WebServer7 21
P 2 instance_root Solaris /var/opt/sunwwbsvr7 Linux HP-UX /var/opt/sun/webserver7 Windows System Drive:\Program Files\sun\WebServer7 Java ES Windows System Drive:\Program Files\Sun\JavaES5\WebServer7 P 3 AaBbCc123 AaBbCc123.login ls -a machine_name% you have mail. machine_name% su Password: AaBbCc123 rm filename 6 22 Sun Java SystemWeb Server 7.0 2006 10
P 4 [] ls [-l] -l { } -d {y n} -d y n ${ } ${com.sun.javaroot} com.sun.javaroot - Ctrl-A A Ctrl + Ctrl+A+N Ctrl Sun http://docs.sun.com (docs.sun.com SM ) Web Sun docs.sun.com PDF HTML Sun http://www.sun.com Sun Sun Sun docs.sun.com Web Sun search-term site:docs.sun.com "Web Server" Web Server site:docs.sun.com 23
Sun Web java.sun.com www.sun.com developers.sun.com "sun.com" "docs.sun.com" Web URL Sun Web Sun Sun Sun Sun http://docs.sun.com "Send Comments", URL 820-0872 24 Sun Java SystemWeb Server 7.0 2006 10
1 1 Sun Java System Web Server 7.0 25 25 26 Administration Server 26 27 29 CLI 31 Web Server 7.0 Sun Java System Web Server 7.0 Web Web Server 7.0 Web Server 6.0 6.1 Sun Java System Web Server 7.0 Sun Java System Web Server 7.0 Sun Java System Web Server 7.0 1 Sun Java System Web Server 25
Administration Server Administration Server Administration Server Unix/Linux Administration Server Administration Server 1 2 Unix/Linux Administration Server install_root /admin-server/bin /usr/sjsws7.0/admin-server/bin./startserv Administration Server Windows Administration Server Sun Java System Web Server Windows Administration Server Web Server Administration Server applet Sun Java System Web Server (GUI) (wadm shell) wadm shell Web 26 Sun Java SystemWeb Server 7.0 2006 10
Sun Java System Web Server "Administration Server" URL Sun Java System Web Server Administration Server Administration Server SSL 1234 URL https://myserver.sun.com:1234/ Sun Java System Web Server Administration Server Sun Java System Web Server 1 27
28 Sun Java SystemWeb Server 7.0 2006 10
CLI GUI GUI CLI Sun Java System Web Server 7.0 Sun Java System Web Server 7.0 wadm CLI GUI Sun Java System Web Server 6.1 HttpServerAdmin wdeploy flexanlg CLI (wadm) JACL shell CLI CLI Sun Java System Web Server 7.0 HttpServerAdmin Sun Java System Web Server 7.0 wdeploy 6.x Administration Server CLI wadm 3 shell wadm CLI shell --password-file --password-file wadm> create-config --user=admin --password-file=./admin.pwd --http-port=2222 --server-name=syrinx myconfig Shell shell wadmwadm shell exit quit shell wadm -user=admin -host=serverhost --password-file=admin.pwd --port=8989 1 29
CLI wadm wadm -user=admin -host=serverhost --password-file=admin.pwd --port=8989 -commands-file=/space/scripts/admscr wadm wadm CLI wadm CLI : Sun Java System Web Server 7.0 CLI : CLI install-root/bin/wadm CLI localhost SSL 8989 admin CLI install-root/admin-server/bin/startserv CLI wadm Administration Server wadm shell shell user password-file host port ssl 30 Sun Java SystemWeb Server 7.0 2006 10
Web Server 7.0 CLI bindpw user-password token-pin password-file wadm SSL Administration Server SSLAdministration Server Administration Server truststore (~/.wadmtruststore) wadm truststore truststore Web Server 7.0 Web Server Web Server Web Server Sun Java System Web Server Sun Java System Web Server 7.0 Administrator s Configuration File Reference Guide Web Server 7.0 Web CLI Web Web Web Web 1 31
Web Server 7.0 Web Server CLI Web Web <install_dir>/admin-server/config-store/<config_name>/web-app/<virtual_servername>/ config-store Web current.zip <install_dir>/admin-server/config-store/<config_name> Web 32 Sun Java SystemWeb Server 7.0 2006 10
Web Server 7.0 CLI Web 1 33
Web Server 7.0 Administration Server Web Administration Server GUI Administration Server Administration Server Administration Server Administration Server SSL Administration Server Administration Server Administration Server Administration Server 34 Sun Java SystemWeb Server 7.0 2006 10
2 Web Server 7.0 35 35 38 42 Web GUI 36 37 38 38 35
Web 1. 2. 1 Web../docs 64 / Web 64 UNIX root 2 HTTP IP IP * IP 3 Java CGI SHTML Java/CGI SHTML Java Java Java Web Java Java SE Java SE Java SE CGI CGI CGI CGI URI 36 Sun Java SystemWeb Server 7.0 2006 10
SHTML SHTML 4 CLI CLI wadm> create-config --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --http-port=8800 --server-user=user --server-name=servername config1 config1 CLI create-config(1) 1. 2. 3. 4. 2 37
CLI CLI wadm> copy-config --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 copyconfig1 copyconfig1 CLI copy-config(1) 1. 2. 3. 1. 2. 3. 39 39 40 40 40 38 Sun Java SystemWeb Server 7.0 2006 10
41 1. 2. 1. 2. 3. [ 2] 4. CLI wadm> create-instance --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 serverhost CLI create-instance(1) 1. 2. 3. 4. 5. CLI CLI wadm> start-instance --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 nodehost1 CLI start-instance(1) 2 39
1. 2. 3. 4. 5. CLI CLI wadm> stop-instance --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 nodehost1 CLI stop-instance(1) 1. 2. 3. 4. 5. CLI wadm> restart-instance --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 nodehost1 CLI restart-instance(1) Administration Server 40 Sun Java SystemWeb Server 7.0 2006 10
pkcs11cgi DNS DNS ACL SSL JVM 1. 2. 3. 4. 5. CLI CLI wadm> reconfig-instance --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 serverhost CLI reconfig-instance(1) 1. 2. 3. 4. 5. CLI CLI wadm> delete-instance --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 serverhost CLI delete-instance(1) 2 41
1. 2. > 1 2 3 4 > 1. 2. 1 31 4,23,9 1. 2. 42 Sun Java SystemWeb Server 7.0 2006 10
CLI CLI wadm> create-event --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --time=10:10 --command=restart CLI create-event(1) 1 2 3 > 2 43
44
3 45 Sun Java System Web Server 45 47 Sun Java SystemWeb Server Administration Server Administration Server Administration Server Sun Java System Web Server Web Administration Server wadm CLI 45
1 Administration Server Sun Java System Web Server GUI wadm CLI 8989 Administration Server SSL SSL SSL SSL wadm CLI 2 Administration Server wadm CLI wadm> register-node --user <admin-user> --port <SSL Port> --host <node name> host CLI SSL 167 46 Sun Java SystemWeb Server 7.0 2006 10
Web Java Web Web Web 2 JVM 3 47
48 Sun Java SystemWeb Server 7.0 2006 10
MachineA MachineB MachineC MachineD MachineE Web 1 2 3 4 MachineA Administration Server 46 Web MachineB MachineC MachineD MachineE 4 Web Web WEb-INF/sun-web.xml <session-manager persistence-type="replicated"/> wadm wadm --host MachineA --port 8089 wadm> create-config --http-port=8080 --server-name=samplecluster lb wadm> create-reverse-proxy --config=lb --vs=lb -uri-prefix=/ --server="http://machineb:8080,http://machinec:8080, ttp://machined:8080,http://machinee:8080" wadm> create-instance --config=lb MachineA wadm> deploy-config lb wadm> start-instance --config=lb 5 3 49
wadm> create-config --http-port=8080 --server-name=samplecluster clusterof4 wadm> set-session-replication-prop --config=clusterof4 enabled=true Web wadm> add-webapp --config=clusterof4 --uri=/simple webapps-simple.war wadm> create-instance --config=clusterof4 MachineB MachineC MachineD MachineE wadm> start-instance --config=clusterof4 start-instance 50 Sun Java SystemWeb Server 7.0 2006 10
4 Sun Java System Web Server7.0 51 53 56 60 63 63 Solaris Zones Web Server 51
Web Server Administration Server Administration Server Web Web / Administration Server Administration Server Web Server Web Web Server config-store 52 Sun Java SystemWeb Server 7.0 2006 10
config-store Sun Java System Web Server config-store wadm deploy-config Sun Java System Web Server 7.0 CLI Reference Manual Web Web Server Web CGI Web Web Server 4 53
4 1 Web 55 55 Web Server 54 Sun Java SystemWeb Server 7.0 2006 10
Web Server 1. Web Server Web Server Administration Server HTTP Web Server Sun Java System Web Server 7.0 Installation and Migration Guide 2 Installing the Web Server Sun Java System Web Server 7.0 2. Administration Server Administration Server SSL Web Server Web Server 1. HTTP CLI create-instance <install_dir>/admin-server/ config-store config-store Sun Java System Web Server 2. 4 55
Web Server 1) 2) Administration Server 3) HTTP Solaris 9 SPARC Solaris 9 SPARC Sun Java System Web Server 7.0 56 Sun Java SystemWeb Server 7.0 2006 10
4 2 4 57
(De-Militarized Zone, DMZ) Administration Server (Militarized Zone) Administration Server DMZ Solaris 10 Solaris zone HTTP 4 3 1. Web Server Administration Server 58 Sun Java SystemWeb Server 7.0 2006 10
2. Web Server Web Server 3. Administration Server SSL 4. Administration Server Administration Server Administration Server Administration Server 5. install_dir/admin-server/bin/ Administration Server install_dir/admin-server/bin>./startserv 6. wadm wadm install_dir/bin install_dir/bin>./wadm 7. Administration Server register-node./wadm register-node -user=admin --host=abc.sfbay.sun.com --port=8989 abc.sfbay.sun.com Administration Server port Administration Server SSL 8. Administration Server Administration Server Administration Server Administration Server Administration Server SSL Sun Java System Web Server 7.0 Installation and Migration Guide Registering the Administration Node From the Command-Line 9. install_dir /admin-server/bin/ startserv 10. CLI Administration Server HTTP 11. 4 59
12. Web Server Web Server 7.0 Web Server Web Web Server 7.0 1. Web Server 2. rp 3. > >> 4. URI URL URL hostname:portnumber 5. 6. 7. HTTP Web Web Web Server server.xml 60 Sun Java SystemWeb Server 7.0 2006 10
Administration Server A B C D Web Server A D B A C B D C Web Server A A Web D A A B D B B A D B C C D D B A B B D A ping A A D A B Web Server 7.0 Web Server Java Web Java CGI PHP CLI cookie 4 61
server.xml server.xml <cluster> <local-host>hosta</local-host> <instance> <host>hostb</host> </instance> <instance> <host>hostc</host> </instance> <instance> <host>hostd</host> </instance> <instance> <host>hosta</host> <session-replication/> </cluster> server.xml Port number 1099 Protocol jrmp Encrypted false Getattribute Triggers Replication true Replica Discovery MaxHops 1 Startup Discovery Timeout? Cookie Name CLUSTERSESSIONLOCATOR Sun Java System Web Server 7.0 Administrator s Configuration File Reference Web Web 1. Web <web-application>/web-inf sun-web.xml sunweb.xml <session-manager/> <session-manager persistence-type="replicated"> sun-web.xml 62 Sun Java SystemWeb Server 7.0 2006 10
Solaris Zones <sun-web-app> <session-config> <session-manager persistence-type="replicated"> </session-manager> </session-config> </sun-web-app> 2. sunweb.xml Web jar Web war 3. Web 4. Web Web http://webserver-name/webapplication-name/ Administration Server 1MB Web Administration Server Web Server Solaris Zones Solaris Zones Solaris 10 Solaris ID 4 63
Solaris Zones Solaris Zones http://docs.sun.com/app/docs/doc/817-1592 System Administration Guide Solaris Containers-Resource Management and Solaris Zones 64 Sun Java SystemWeb Server 7.0 2006 10
5 65 65 67 69 HTTP IP Web Web HTTP HTTP Sun Java System Web Server HTTP IP URL ACL mime.types Java Web Sun Java System Web Server 65
Sun Java System Web Server HTTP IP 80 127.0.0.1 10.0.0.1 example.com DNS 10.0.0.1 80 "ANY:80" "0.0.0.0:80" VS1 http://127.0.0.1/ example.com http://localhost/ example.com http://example.com/ http://10.0.0.1/ Web HTTP 83 SSL Sun Java System Web Server phone.example.com maps.example.com is.example.com example.com Web URL HTTP URL URL SSL URL HTTP IP HTTP 66 Sun Java SystemWeb Server 7.0 2006 10
HTTP IP HTTP/1.1 Host SSL IP URL HTTP HTTP ISP URL CGI 67 68 69 1 / / HTTP 5 67
2 3 > a. (.) (-) (_) b. c. HTTP HTTP HTTP 4 5 CLI CLI wadm> create-virtual-server --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --document-root=../docs config1_vs_1 CLI create-virtual-server(1) 68 1 2 68 Sun Java SystemWeb Server 7.0 2006 10
HTTP 3 Web URL 1 2 3 CLI CLI wadm> copy-virtual-server --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 copiedvs copiedvs CLI copy-virtual-server(1) HTTP 70 HTTP 70 HTTP HTTP HTTP HTTP 5 69
HTTP HTTP IP IPv4 IPv6 IP "*" IP HTTP HTTP HTTP HTTP 1. 2. HTTP HTTP 3. HTTP HTTP HTTP HTTP IP IPv4 IPv6 "*" HTTP IP sales.mycomp.com HTTP HTTP CLI CLI HTTP wadm> create-http-listener --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --listener-port=18003 --config=config1 --server-name=config1.com --default-virtual-server-name=config1_vs_1 config1_ls_1 CLI create-http-listener(1) HTTP HTTP 1. HTTP 2. HTTP HTTP 3. HTTP HTTP 70 Sun Java SystemWeb Server 7.0 2006 10
HTTP HTTP HTTP HTTP HTTP HTTP IP IPv4 IPv6 "*" HTTP IP sales.mycomp.com HTTP 1 128 HTTP I/O HTTP 5 71
72
6 Sun Java System Web Server 73 74 76 76 81 (Certificate Revocation List, CRL) 82 83 SSL 83 SSL 84 HTTP CA CA Internet CA CA CA 73
RSA Sun Java System Web Server 7.0 (Elliptic Curve Cryptography, ECC) ECC RSA (Elliptic Curve Cryptography, ECC) RSA ECC RSA 1024 ECC ANSI X9.62 NIST SECG Sun Java System Web Server 7.0 CA CA ECC ECC CA ECC ECC prime256v1 secp256r1 nistp256 74 Sun Java SystemWeb Server 7.0 2006 10
secp256k1 secp384r1 nistp384 secp521r1 nistp521 sect163k1 nistk163 sect163r1 sect163r2 nistb163 sect193r1 sect193r2 sect233k1 nistk233k1 nistk233 sect233r1 nistb233 sect239k1 sect283k1 nistk283 sect283r1 nistb283 sect409k1 nistk409 sect571k1 nistk571 sect571r1 nistb571 secp160k1 secp160r1 secp160r2 secp192k1 secp192r1 nistp192 secp224k1 secp224r1 nistp224 prime192v1 6 75
CA CA SSL CLI wadm> create-selfsigned-cert --user=admin --port=8989 --password-file=admin.pwd --config=config1 --token=internal --org-unit=org1 --locality=xyz --state=def --validity=10 --org=sun --country=abc --server-name=serverhost --nickname=cert1 CLI create-selfsigned-cert(1) 76 78 79 80 SSL CA CA Internet CA (Certificate Authority, CA) CA CA CA Internet CA Web Web Server 76 Sun Java SystemWeb Server 7.0 2006 10
1 2 3 4 > Sun Java System Web Server 7.0 CA CA CA DNS www.sun.com URL CA CA Inc. Corp. / / / / ISO US [DN] 5 RSA ECC RSA 1024 2048 4098 ECC CA 6 77
6 7 8 CA (Certificate Signing Authority, CSA) HTTP CA ASCII HTTP CLI CLI wadm> create-cert-request --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --server-name=servername.org --org=sun --country=abc --state=def --locality=xyz --token=internal CLI create-cert-request(1) CA 1 2 3 > Sun Java System Web Server 7.0 78 Sun Java SystemWeb Server 7.0 2006 10
4 5 6 "Begin Certificate" "End Certificate".DER HTTP CLI CLI wadm> install-cert --user=admin --port=8989 --password-file=admin.pwd --config=config1 --token=internal --cert-type=server --nickname=cert1 cert.req cert.req CLI install-cert(1) 1 2 3 4 > > RSA ECC RSA 1024 2048 4098 ECC 6 79
5 1 2 3 CLI CLI wadm> delete-cert --user=admin --port=8989 --token=internal --config=config1 cert1 --password-file=admin.pwd CLI delete-cert(1) Administration Server CLI renew-admin-certs Admin-CA-Cert Admin-Server-Cert Admin-Client-Cert wadm> renew-admin-certs --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --validity=120 CLI renew-admin-certs(1) 80 Sun Java SystemWeb Server 7.0 2006 10
(Certificate Revocation List, CRL) (Certificate Revocation List, CRL) (Certificate Revocation List, CRL) CRL CRL CA 1 2 3 4 5 6 CRL CA CRL CA CRL > CRL CRL 7 CLI CLI CRL wadm> install-crl --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 data/install-crl/serversign.crl CLI install-crl(1) 1 2 CRL > 6 81
3 4 CRL CLI CLI CRL wadm> delete-crl --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 issuer CLI delete-crl(1) PKCS11 1 2 3 4 5 6 7 > PKCS11 PKCS11 CLI CLI PKCS11 wadm> set-token-pin --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --token=internal CLI set-token-pin(1) 82 Sun Java SystemWeb Server 7.0 2006 10
SSL SSL create-cert-request CA CA install-cert Java migrate-jks-keycert / create-selfsigned-cert wadm> create-selfsigned-cert --server-name=hostname --nickname=myservercert --token=internal SSL wadm> create-http-listener --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --listener-port=18003 --config=config1 --server-name=config1.com --default-virtual-server-name=config1_vs_1 config1_ls_1 SSL wadm> set-ssl-prop --http-listener=http-listener-ssl enabled=true wadm> set-ssl-prop --http-listener=http-listener-ssl server-cert-nickname=myservercert wadm> deploy-config config_name wadm> start-instance --config config_name hostname SSL SSL wadm> enable-ciphers --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --http-listener=http-listener-1 --cipher-type=ssl2 SSL_RC4_128_WITH_MD5 CLI enable-ciphers(1) 6 83
HTTP HTTP HTTP HTTP Sun Java System Web Server SSL TLS SSL TLS SSL2 SSL3 TLS SSL 2.0 SSL SSL 3 SSL 2 SSL 2 Sun Java System Web Server (Secure Sockets Layer, SSL) (Transport Layer Security, TLS) SSL TLS SSL TLS SSL TLS > HTTP > HTTP 84 Sun Java SystemWeb Server 7.0 2006 10
HTTP 6 1 HTTP SSL 2/SSL 3 TLS SSL3/SSL2/TLS HTTP / HTTP RSA ECC "False" [0.001 3600] 60 [0 2147.0483647.0] 104857.06 / SSL 2/SSL 3 / TLS TLS TLS Web SSL SSL 2.0 SSL 3.0 TLS SSL TLS Server Manager SSL TLS 6 85
86
7 Web Sun Java System Web Server 7.0 87 88 89 / 93 /IP 93 ACL 94 98.htaccess 99 Web htaccess Administration Server Web Web (access control entry, ACE) ACE (access control list, ACL) 87
ACL ACL Sun Java System Web Server ACL ACL ACE / /IP (SSL) ACL IP LDAP ACL ACL uri ACL default ACL Web Server 7.0 Web 88 Sun Java SystemWeb Server 7.0 2006 10
/ Server Web Server obj.conf PathCheck Web Server HTTP 401 Web Server check-acl Web Server / Web / Administration Server Administration Server ACL SSL / Web Server LDAP LDAP / 7 89
/ SSL / / Web SSL server.xml server.xml ACL ACL obj.conf ACL Web Web LDAP Sun Java System Directory Server Web Administration Server Web /Web SSL SSL /IP 90 Sun Java SystemWeb Server 7.0 2006 10
/ SSL LDAP CA (certificate authority, CA) certmap.conf ACL ACL CA SSL CA LDAP Web SSL SSL Web CA Web certmap.conf certmap.conf certmap.conf ID SSL certmap.conf LDAP magnus.conf AcceptTimeout LDAP Web MD5 7 91
/ LDAP Sun Java System Directory Server Directory Server LDAP Web dbswitch.conf digestauth ACL 7 1 ACL "default" "basic" "digest" method = digest ACL Authorization 401 Authorization nonce nonce 401 stale=true 401 server_root/https-server_name/config/ magnus.conf DigestStaleTimeout nonce magnus.conf DigestStaleTimeout seconds seconds nonce nonce 401 LDAP LDAP 401 // 401 92 Sun Java SystemWeb Server 7.0 2006 10
ACL Authorization-Info /IP Administration Server Web IP /IP /IP / /IP DNS /IP DNS DNS Server Manager DNS DNS DNS DNS CGI IP IP iponly=1 obj.conf AddLog fn="flex-log" name="access" AddLog fn="flex-log" name="access" iponly=1 ACL ACL magnus.conf ACLCacheLifetime ACL ACLCacheLifetime ACLCacheLifetime 120 0 LDAP 120 LDAP LDAP magnus.conf ACLUserCacheSize 200 magnus.conf ACLGroupCacheSize 4 LDAP ACL NSAPI Developer s Guide 7 93
ACL CLI ACL wadm> set-acl-cache-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 property=value CLI set-acl-cache-prop(1) enabled true max-age 0.001 3600 max-groups-per-user 1 1024 max-age 0.001 3600 (access control list, ACL) ACL John misc Web ACL ACL SSL 1. 2. > 3. ACL ACL ACL (Access Control List, ACL) ACL 1. 2. > 94 Sun Java SystemWeb Server 7.0 2006 10
3. ACL 7 2 ACL /URI/ URI "/sales""/usr/sun/server4/docs/cgi-bin/*" keyfile 1. HTTP SSL 2. SSL SSL "SSL" 3. Web Server MD5 auth-db auth-db LDAP auth-db 4. API 40 Web ACL 1. 2. URL URL 7 95
CLI CLI ACL wadm> set-acl --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --vs=config1_vs_1 --config=config1 --aclfile=aclfile1 CLI set-acl(1) (Access Control Entry, ACE) (Access Control Entry, ACE) 1. 2. > 3. 4. ACE 7 3 ACE (ACE) 1. 2. 3. 96 Sun Java SystemWeb Server 7.0 2006 10
7 3 ACE Administration Server Web Administration Server Web IP IP IP IP IP DNS * IP *.sun.com Administration Server IP * *.sun.com *users.sun.com * *.sun.com users.*.com IP * 198.95.251.* 198.95.251.3* * IP 198.* 198.*.251.30 7 97
.htaccess 7 3 ACE Web HTTP GET HEAD POST INDEX HTTP PUT DELETE MKDIR RMDIR MOVE CGI Java applet index.html URI http_head (access control expression, ACE) ACE ACE ACE ACE ACE ACE ACE ACE.htaccess.htaccess.htaccess.htaccess PathCheck.htaccess /.htaccess SSL.htaccess HTTP.htaccess.htaccess.htaccess /sun/server/docs 98 Sun Java SystemWeb Server 7.0 2006 10
/sun/server/docs/reports/index.html /sun/server/docs/reports/.htaccess /sun/server/docs/.htaccess.htaccess CGI.htaccess /sun/server/docs CGI /sun/server/docs/cgi-bin/program.cgi CGI CGI /sun/server/docs/.htaccess /sun/server/docs/cgi-bin/.htaccess /sun/server/docs/cgi-bin CGI /sun/server/docs/cgi-bin/.htaccess /sun/server/docs/.htaccess /sun/server/docs/cgi-bin CGI (Denial-of-Service, DoS) Web Sun Java System Web Server URI DoS DoS > > > 7 4 RPS / 7 99
7 4 RPS (request per second, RPS) 30 RPS HTTP HTTP 503 CLI CLI wadm> enable-request-limits --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 CLI enable-request-limits(1) 1 2 3 4 5 > 100 Sun Java SystemWeb Server 7.0 2006 10
8 Sun Java System Web Server 101 101 102 (Distinguished Name, DN) 103 LDIF 103 105 107 Administration Server (ACL) (Lightweight Directory Access Protocol, LDAP) Sun Java System Directory Server LDAP TCP/IP Sun Java System Directory Server Web Server 7.0 default 101
(Distinguished Name, DN) server.xml Web Server 7.0 LDAP LDAP file HTTP HTTP LDAP (Distinguished Name, DN) LDAP (Distinguished Name, DN) DN DN DN DN Sun Microsystems DN 102 Sun Java SystemWeb Server 7.0 2006 10
uid=doe,e=doe@sun.com,cn=john Doe,o=Sun Microsystems Inc.,c=US uid ID e cn o c / DN / LDAP LDIF Directory Server Administration Server LDIF LDIF LDIF Directory Server LDIF LDIF LDIF ldapmodify LDIF LDIF LDIF Directory Server LDIF auth-db auth-db auth-db ACL 1. LDAP LDAP Sun Java System Directory Server 2. auth-db auth-db a. keyfile keyfile b. digestfile digestfile keyfile HTTP c. htaccess 3. PAM PAM Sun Java System Web Server 7.0 auth-db PAM auth-db Solaris PAM Web Solaris Web 8 103
Solaris 9 10 PAM auth-db Web > > > > PAM LDAP DN PAM CLI wadm> create-authdb --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --url=ldap://ldapserver.com:20002/dc=xxx,dc=sun,dc=com LDAP1 CLI create-authdb(1) URL URL ldap://ds.example.come/dc=example,dc=com LDAP 104 Sun Java SystemWeb Server 7.0 2006 10
Administration Server LDAP auth-db 1 2 3 4 > ID ID LDAP Administration Server DN ID ID Directory Server ldapmodify ID CLI CLI wadm> create-user --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --authdb=keyfile1 --full-name=keyfile-config1-u1 keyfile-config1-u1 CLI create-user(1) 1 2 3 4 > 8 105
5 keyfile digestfile CLI CLI wadm> create-group --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --authdb=ldap1 group1 CLI create-group(1) 1 2 3 4 5 > ID ID keyfile/digestfile keyfile/digestfile CLI CLI wadm> delete-user --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config config1 --authdb KEYFILE1 user1 CLI delete-user(1) 106 Sun Java SystemWeb Server 7.0 2006 10
1 2 3 4 5 > ID ID CLI CLI wadm> delete-group --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config config1 --authdb LDAP1 group1 CLI delete-group(1) LDAP Web Server 7.0 Marketing LDAP CN uniquemembers / memberurls / membercertdescriptions CN=<Groupname> LDAP URL memberurl Sales LDAP "ou=sales,o=airius.com" memberurl ldap:///ou=sales,o=sun??sub?(uid=*) 8 107
"ou=sales,o=sun" uid Sales membercertdescription ACL SSL LDAP Administration Server DN Administration Server groupofurls objectclass memberurl LDAP URL LDAP ACL DN Web Server department=marketing DN department=marketing department=marketing DN ACL Web Server Web Server LDAP objectclass = groupofurls groupofurls memberurl LDAP URL URL ldap:///o=mcom.com??sub?(department=marketing) 108 Sun Java SystemWeb Server 7.0 2006 10
"o=mcom.com" "marketing" LDAP URL DN LDAP LDAP URL DN DN ACL Sun ONE Web Server LDAP ACL LDAP cn Web Server cn (commonname) ACL dbswitch.conf ACL LDAP URL ACL ACL ACL LDAP "staff" ACL groupof<anything> CN "staff" DN groupofuniquenames LDAP URLgroupOfURLs objectclass = groupofuniquemembers objectclass = groupofurl"uniquemember" "memberurl" DN Web Server DN Web Server memberurl DN DN DN DN memberurl Administration Server LDAP URL ldap:///<basedn>?<attributes>?<scope>?<(filter)> 8 109
8 1 <base_dn> <attributes> <scope> (Distinguished Name, DN) LDAP "o=mcom.com" "cn,mail,telephonenumber" base URL (<base_dn>) one URL (<base_dn>) sub URL (<base_dn>) <(filter)> Administration Server <attributes> <scope> <(filter)> URL 110 Sun Java SystemWeb Server 7.0 2006 10
9 111 112 MIME 113 (UNIX/Linux) 115 URL 116 URL 117 CGI 119 CGI 121 121 Windows Shell CGI 122 123 124 125 (UNIX/Linux) 126 HTML 127 128 130 132 P3P 111
MIME 1 2 3 4 > URL URI CLI CLI wadm> create-document-dir --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri-prefix=/config1_uri --directory=../docs1 CLI create-document-dir(1) MIME text/plain MIME text/plain text/html text/richtext image/tiff image/jpeg image/gif application/x-tar application/postscript 112 Sun Java SystemWeb Server 7.0 2006 10
(UNIX/Linux) application/x-gzip audio/basic 1 2 3 4 MIME > MIME CLI CLI MIME wadm> create-mime-type --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --extensions=sxc application/sxc CLI create-mime-type(1) MIME MIME MIME (mime.types) (UNIX/Linux) Web URL URL ~ public_html http://www.sun.com/~jdoe/aboutjane.html ~jdoe jdoe Jane ~/jdoe/public_html/aboutjane.html 9 113
(UNIX/Linux) 1 2 3 4 5 URL ~ UNIX/Linux HTML public_html * /etc/passwd username:*:*:groupid:*:homedir:* 6 7 URL /etc/passwd jdoe::1234:1234:john Doe:/home/jdoe:/bin/sh jdoe::1234:1234:john Doe:/home/jdoe/:/bin/sh Sun Java System Web Server URI 404 Web 404 114 Sun Java SystemWeb Server 7.0 2006 10
URL /etc/passwd Web URL URL HTTP URL HTTP URL URL URL URL http://www.sun.com/info/movies film.sun.com URL http://www.sun.com/info/movies http://film.sun.com/info/movies URL /info/movies http://www.sun.com/explain.html URL URL 1. 2. 3. URL 4. URL 5. URL 9 115
URL 9 1 URL URL URL URL URL URL HTTP URL URL URL URL URL HTTP URL / URL URL HTML URL URL URL CLI CLI URL wadm> create-url-redirect --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --no-ssl --config=config1 --vs=config1_vs_1 --uri-prefix=/redirect --target-url=http://www.cnet.com CLI create-url-redirect(1) URL Sun Java System Web Server 7.0 server.xml URL SAF SAF URI from url url-prefix URL Sun Java System Web Server 7.0 from from URI obj.conf <If> <Elseif> <Else> SAF - obj.conf - SAF Sun Java System Web Server 7.0 URL Apache HTTP mod_rewrite Apache mod_rewrite <If> URI SAF 116 Sun Java SystemWeb Server 7.0 2006 10
CGI NameTrans fn="redirect" from="/site1" url="http://site1.mycompany.com" <If $uri =~ ^/site1 > NameTrans fn="redirect" url="http://site1.mycompany.com" </If> from /site1/* http://site1.mycompany.com/*/index.html <If $uri =~ ^/site1/(.*) > NameTrans fn="redirect" url="http://site1.mycompany.com/$1/index.html" </If> <If> (.*) $1 url $1 obj.conf /site1/download http://site1.mycompany.com.com/download/index.html <If> redirect mod_rewrite mod_rewrite <If> URL <If> SAF 302 Sun Java System Web Server 7.0 status="301" 301 NameTrans fn="redirect" from="/path" url="http://server.example.com" status="301" CGI (Common Gateway Interface, CGI) UNIX/Linux CGI Bourne shell Perl UNIX/Linux CGIStub CGI CGI CGI CGIStub Sun Java System Web Server Performance Tuning and Sizing Guide MinCGIStub MaxCGIStub CGIStubIdleTimeout 9 117
CGI Windows CGI C++ Windows Windows Visual Basic CGI Windows CGI Path server_root/bin/https/bin CGI CGI Sun Java System Web Server Developer s Guide http://hoohoo.ncsa.uiuc.edu/cgi/overview.html CGI Web http://docs.sun.com Web Server 7.0 CGI CGI CGI 118 Sun Java SystemWeb Server 7.0 2006 10
CGI CGI.cgi.exe.bat CGI CGI HTML CGI CGI HTML CGI.cgi.exe.bat CGI CGI CGI.cgi.exe.bat MIME CGI MIME CGI Sun Java System Web Server GUI CGI CGI 1. 2. 3. CGI 4. CGI 5. CGI 9 119
CGI 9 2 CGI CGI Chroot Nice URL URL CGI cgi-bin URL CGI URL http://yourserver.domain.com /cgi-bin/program-name CGI URL URL CGI CGI CGI chroot nice CGI nice 0 nice 0 CGI 19 CGI nice -1 CGI CGI CGI URL CGI CGI CGI HTML CGI CGI 1. 2. 3. CGI 4. CGI CGI.bat.exe.cgi CGI CGI 120 Sun Java SystemWeb Server 7.0 2006 10
Windows Shell CGI CLI CGI CGI CGI.cgi.exe.bat CLI CGI wadm> create-cgi-dir --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri-prefix=/config1_urlprefix --directory=/cgi-dir CLI create-cgi-dir(1).exe CGI.exe.exe magnus-internal/cgi.exe application/octet-stream MIME Server Manager MIME.exe CGI obj.conf http://developer.netscape.com/docs/manuals/enterprise/admnunix/programs.htm Windows Shell CGI Windows Shell CGI Shell CGI Windows CGI hello.pl shell CGI.pl Windows.pl C:\\bin\\perl.exe hello.pl 9 121
c:\\bin\\perl.exe hello.pl shell CGI shell CGI Sun ONE Web Server MIME shell CGI Windows Windows CGI HTML CGI 1. 2. 3. 4. CGI 5. CLI CLI wadm> set-error-page --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --code=500 --error-page=/server-error-uri-new CLI set-error-page(1) 122 Sun Java SystemWeb Server 7.0 2006 10
HTTP MIME charset Content-Type: text/html;charset=iso-8859-1 Content-Type: text/html;charset=iso-2022-jp RFC 17.000 charset x- us-ascii iso-8859-1 iso-2022-jp x-sjis x-euc-jp x-mac-roman us-ascii ansi_x3.4-1968 iso-ir-6 ansi_x3.4-1986 iso_646.irv:1991 ascii iso646-us us ibm367.0 cp367.0 so_8859-1 latin1 iso_8859-1 iso_8859-1:1987.0 iso-ir-100 ibm819 cp819 9 123
1 2 3 4 NONE CGI HTML (.shtml) CGI HTML 1 2 3 4 5 6 7.065 :LASTMOD: 124 Sun Java SystemWeb Server 7.0 2006 10
(UNIX/Linux) CLI CLI wadm> enable-document-footer --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --mime-type=text/html --date-format=%b --footer="config1 footer" CLI enable-document-footer(1) (UNIX/Linux) UNIX/Linux 1 2 3 4 5 / 9 125
HTML CLI CLI wadm> set-symlinks-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 allow-soft-links=true allow-hard-links=false directory=/abc CLI set-symlinks-prop(1) HTML HTML HTML HTML HTML HTML 1 2 3 4 5 HTML HTML/SSI HTML HTML exec HTML exec HTML.shtml HTML HTML UNIX/Linux UNIX/Linux HTML Sun Java System Web Server Developer s Guide 126 Sun Java SystemWeb Server 7.0 2006 10
CLI CLI HTML wadm> enable-parsed-html --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs1 CLI enable-parsed-html(1) Sun Java System Web Server HTTP 1.1 HTTP 1.1 -- HTTP/1.1 (RFC 2068) http://www.ietf.org/ 1 2 3 4 9 127
CLI CLI wadm> set-cache-control-directives --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 public=true private=true must-revalidate=true CLI set-cache-control-directives(1) Sun Java System Web Server 7.0 HTTP Web Sun Java System Web Server Accept-encoding: gzip Web Server myfile.html myfile.html myfile.html.gz Accept-encoding 1 2 3 > / 128 Sun Java SystemWeb Server 7.0 2006 10
Vary Vary: Accept-encoding Vary: Accept-encoding Vary: Accept-encoding 4 Sun Java System Web Server 7.0 HTML Web 1 2 3 4 / Vary Vary: Accept-encoding Vary: Accept-encoding Vary: Accept-encoding (zlib) 8096 1 9 1 9 6 9 129
CLI CLI wadm> enable-on-demand-compression --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --insertvaryheader=true --fragment-size=100 --compression-level=5 CLI enable-on-demand-compression(1) Web 1 2 3 4 URI > URI URI URI URL URL 130 Sun Java SystemWeb Server 7.0 2006 10
1 2 3 4 > "URI" URI URI URL URL Cookie Cookie Cookie URI URI URI URI ":" ID ID ID HTTP Cookie Cookie Cookie Cookie ID 9 131
P3P CLI 1. create-reverse-proxy wadm> create-reverse-proxy --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=test --vs=test --uri-prefix=// --server=http://rick.india.sun.com:8080 CLI create-reverse-proxy(1) 2. obj.conf NameTrans fn="map" from="/" name="reverse-proxy-/" to="http:/"... <Object name="reverse-proxy-/"> Route fn="set-origin-server" server="http://rick.india.sun.com:8080" </Object> <Object ppath="http:*"> Service fn="proxy-retrieve" method="*" </Object> --server https P3P 132 P3P (Platform for Privacy Preference, P3P) Web P3P http://www.w3.org/p3p/ 1 2 3 P3P "P3P" 132 Sun Java SystemWeb Server 7.0 2006 10
P3P P3P URL P3P P3P P3P CLI P3P wadm> enable-p3p --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --policy-url=http://xyz.com/policyurl CLI enable-p3p(1) 9 133
134
10 WebDAV Web 136 WebDAV 136 WebDAV 139 WebDAV 140 WebDAV 141 WebDAV 143 WebDAV 143 WebDAV 144 WebDAV URI Translate:f 144 145 Sun Java System Web Server 7.0 WebDAV Web Web WebDAV HTTP/1.1 Web WebDAV WebDAV Sun Java System Web Server 7.0 WebDAV WebDAV Adobe(R) GoLive(R) Macromedia(R) DreamWeaver(R) WebDAV Web Sun Java System Web Server 7.0 WebDAV WebDAV WebDAV PROPFIND XML WebDAV server.xml DAV 135
WebDAV WebDAV server.xml DAVCOLLECTION WebDAV WebDAV HTTP/1.1 HTTP Web HTML XML WebDAV WebDAV PROPFIND PROPPATCH Web WebDAV GET PUT DELETE MKCOL WebDAV WebDAV LOCK UNLOCK WebDAV COPY MOVE Web Sun Java System Web Server 7.0 WebDAV RFC 2518 RFC 2518 WebDAV WebDAV WebDAV URI URI URL URL URL URI URI URI URI foo.jsp JSP URI /docs/date.jsp HTML Java foo.jsp GET Java foo.jsp 136 Sun Java SystemWeb Server 7.0 2006 10
WebDAV URI /publish/docs foo.jsp /docs /publish/docs/foo.jsp /docs/foo.jsp Java URI WebDAV WebDAV URI URI WebDAV URI URI URI URI URI URL http://info.sun.com/resources/info WebDAV URL http://info.sun.com/resources/ WebDAV URL http://info.sun.com/resources/ http://info.sun.com/resources/info / "creationdate" "author" getcontentlength GET Sun Java System Web Server creationdate displayname getcontentlanguage getcontentlength getcontenttype gettag getlastmodified lockdiscovery resourcetype supportedlock executable 10 WebDAV Web 137
WebDAV Sun Java System Web Server executable executable PROPPATCH PROPPATCH /test/index.html HTTP/1.1 Host: sun Content-type: text/xml Content-length: XXXX <?xml version="1.0"?> <A:propertyupdate xmlns:a="dav:" xmlns:b="http://apache.org/dav/props/"> <A:set> <A:prop> <B:executable>T</B:executable> </A:prop> </A:set> </A:propertyupdate> Sun Java System Web Server HTTP WebDAV HTTP/1.1 HTTP WebDAV Destination: Lock-Token: Timeout: DAV: If: Depth: Overwrite: HTTP WebDAV HTTP WebDAV HTTP GET PUT DELETE WebDAV HTTP 138 Sun Java SystemWeb Server 7.0 2006 10
WebDAV COPY Depth: Destination: COPY Overwrite: MOVE Depth: Destination: MOVE Overwrite: MKCOL PUT PROPPATCH PROPFIND PROPFIND 0 1 infinity Depth: 0 URI 1 URI infinity URI LOCK Lock-Token: UNLOCK Lock-Token: WebDAV Administration Server WebDAV WebDAV magnus.conf file Init fn="load-modules" shlib="/s1ws6.1/lib/libdavplugin.so" funcs="init-dav,ntrans-dav,pcheck-dav,service-dav" shlib_flags="(global now)" Init fn="init-dav" LateInit=yes init-dav WebDAV WebDAV CLI wadm> enable-webdav --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=test CLI enable-webdav(1) 10 WebDAV Web 139
WebDAV WebDAV WebDAV WebDAV wadm> enable-dav-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/dav_config1 CLI enable-dav-collection(1) WebDAV WebDAV wadm> disable-dav-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/dav_config1 CLI disable-dav-collection(1) WebDAV WebDAV wadm> create-dav-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/dav_config1 --source-uri=/dav_config1 CLI create-dav-collection(1) WebDAV WebDAV wadm> list-dav-collections --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 CLI list-dav-collections(1) WebDAV WebDAV 140 Sun Java SystemWeb Server 7.0 2006 10
WebDAV wadm> delete-dav-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/dav_config1 CLI delete-dav-collection(1) WebDAV WebDAV WebDAV wadm> set-webdav-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 acl-max-entries=120 CLI set-webdav-prop(1) WebDAV WebDAV wadm> get-webdav-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 CLI get-webdav-prop(1) WebDAV WebDAV wadm> set-dav-collection-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/dav_config1 min-lock-timeout=1 CLI set-dav-collection-prop(1) WebDAV WebDAV wadm> get-dav-collection-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 -config=config1 --vs=config1_vs_1 --uri=/dav_config1 10 WebDAV Web 141
WebDAV CLI get-dav-collection-prop(1) WebDAV WebDAV 10 1 WebDAV URI PROPFIND -1 XML 8192 (8K) PROPFIND 0 0 1 "infinity" WebDAV URI PROPFIND WebDAV 0 WebDAV ACL DAV ACL ACE 0 2147.0483647.0 1 WebDAV ACL 0 2147.0483647.0 1 WebDAV ACL 0.001 3600 0 WebDAV ACL DAV WebDAV 0 2147.0483647.0 1 142 Sun Java SystemWeb Server 7.0 2006 10
WebDAV 10 1 WebDAV WebDAV 0.01 3600 0 WebDAV WebDAV WebDAV wadm> disable-webdav --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 CLI disable-webdav(1) WebDAV WebDAV WebDAV 10 2 WebDAV keyfile HTTP SSL SSL SSL "SSL" Web Server MD5 auth-db auth-db LDAP auth-db API 10 WebDAV Web 143
WebDAV URI Translate:f 10 2 WebDAV 40 Web ACL WebDAV URI Translate:f WebDAV HTTP GET PUT WebDAV Microsoft WebDAV Translate:f WebDAV Microsoft WebFolders Sun Java System Web Server7.0 Translate:f Translate:f Sun Java System Web Server URI WebDAV URI URI Translate:f URI URI dav-src ACL ACL deny (all) user = "anyone"; URI Sun Java System Web Server Sun Java System Web Server opaquelocktoken URI (Universal Unique Identifier, UUID) ISO-1157.08 144 Sun Java SystemWeb Server 7.0 2006 10
Sun Java System Web Server server.xml DAV DAVCOLLECTION minlocktimeout minlocktimeout -1 0 Timeout Timeout Timeout Infinite WebDAV Timeout server.xml minlocktimeout Timeout server.xml minlocktimeout server.xml minlocktimeout Sun Java System Web Server 10 WebDAV Web 145
10 3 Sun Java System Web Server Timeout Infinite -1-1 Second-xxx xxx server.xml minlocktimeout xxx xxx server.xml minlocktimeout server.xml minlocktimeout CLI CLI wadm> expire-lock --user=admin --password-file=admin.pwd --host=serverhost--port=8989 --config=config1 --vs=config1 --collection-uri=/dav1 --lock-uri=/dav1/file.html --opaque-token=opaquelocktoken CLI expire-lock(1) opaque-token ID CLI wadm> list-locks --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs config1 --collection-uri=/dav1 CLI list-locks(1) 146 Sun Java SystemWeb Server 7.0 2006 10
11 Java Web Java wadm Java Sun Java System Web Server Java Sun Java System Web Server Java Web 147 Java Sun Java System Web Server 148 Java 149 JVM 151 Java Web 153 Servlet 154 156 Java 165 SOAP 167 169 Java Sun Java SystemWeb Server Java Java 1 2 Java "Java" > 147
Java 3 4 5 Java / Java Java Java Java Java SE config HTTP JVM / HTTP CLI Java wadm> enable-java --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 CLI enable-java(1) Java JVM 1 2 Java "Java" > XML 148 Sun Java SystemWeb Server 7.0 2006 10
JVM com.sun.appserv.bytecodepreprocessor JVM Java JVM JVM 1 2 JVM "Java" > JVM JVM JVM / JVM JVM JVM JVM -Djava.security.auth.login.config=login.conf, -Djava.util.logging.manager=com.iplanet.ias.server.logging. ServerLogManager and -Xms128m -Xmx256m CLI CLI JVM wadm> create-jvm-options --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 -Dhttp.proxyHost=proxyhost.com -Dhttp.proxyPort=8080 CLI create-jvm-options(1) JVM JVM Java 11 Java Web 149
JVM 1 2 3 4 JVM "Java" > JVM JVM JVM CLI JVM CLI CLI JVM wadm> create-jvm-profiler --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 CLI create-jvm-profiler(1) Java JVM JPDA Java Platform Debugger Architecture Java Sun Java System Web Server JPDA 1 2 3 JVM "Java" > JVM Java 150 Sun Java SystemWeb Server 7.0 2006 10
JavaWeb 4 JVM JPDA -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7896 suspend=y JVM JVM JVM address=port_number JPDA Java Web Web Web Web Web Web.war Web Web wadm IDE 1 2 3 4 Web Web Web > Web Web Web 11 Java Web 151
JavaWeb 5 6 7 8 9 Web URI URI Web / JSP Web JSP Web Web http://<your-server>:<port>/<uri> CLI wadm> add-webapp --user=admin --password-file=admin.passwd --host=localhost --port=8888 --config=config1 --vs=hostname --uri=/hello /home/test/hello.war CLI add-webapp(1) Web file-on-server wadm> add-webapp --user=admin-user --password-file=admin.passwd --port=8989 --vs=vs1 --config=config1 --file-on-server --uri=/mywebapp /space/tmp/mywebapp JSP Web JSP precompilejsp wadm> add-webapp --user=admin-user --password-file=admin.passwd --port=8989 --vs=vs1 --config=config1 --file-on-server --uri=/mywebapp --precompilejsp mywebapp.war 152 Sun Java SystemWeb Server 7.0 2006 10
Servlet Servlet servlet 1 2 Servlet "Java" > Servlet Servlet servlet 11 1 Servlet servlet finestfiner fine info warning failure config security catastrophe Web 1 60-1 ANYONE Servlet SingleThreadedServlet servlet 1 4096 Cookie ID Servlet 0 2147.0483647.0 20 false servlet cookie true ID false 11 Java Web 153
11 1 Servlet Cookie Dynamic/True/False JSESSIONID cookie (HTTPS) dynamic Cookie True false Java Server Java Web Java singleton RMI Web 1 2 "Java" > 154 Sun Java SystemWeb Server 7.0 2006 10
3 Java com.sun.appserv.server.lifecyclelistener 100 100 Java / 1 2 3 "Java" > 11 Java Web 155
Java CLI com.mylifecyclemodule test mylifecyclemodule Java wadm> create-lifecycle-module --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --class=com.sun.webserver.tests.lifecycleclass LifecycleTest CLI create-lifecycle-module(1) Java wadm> list-lifecycle-modules --config=test CLI list-lifecycle-modules(1) Java wadm> create-lifecycle-module-userprop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --module=lifecycletest info=testing CLI create-lifecycle-module-userprop(1) Java wadm> set-lifecycle-module-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --module=lifecycletest class-path=/space CLI set-lifecycle-module-prop(1) Java Web SQL URL Java EE Java (Java Naming and Directory Interface, JNDI) Sun Java System Web Server Java EE JDBC JDBC Java JNDI 156 Sun Java SystemWeb Server 7.0 2006 10
Java JDBC JDBC Java EE Sun Java System Web Server JDBC API API JDBC API JDBC Java EE JDBC Java JDBC Java EE Sun Java System Web Server JDBC API SQL Java JDBC SQL (database management system, DBMS) DBMS DBMS JDBC CLI JDBC wadm> create-jdbc-resource --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --datasource-class=oracle.jdbc.pool.oracledatasource jdbc CLI create-jdbc-resource(1) com.pointbase.jdbc.jdbcdatasource JDBC JDBC 157 Sun Java System Web Server JDBC Sun Java SystemWeb Server JDBC JDBC JDBC 160 JDBC 11 Java Web 157
Java 11 2 JDBC Oracle oracle.jdbc.pool.oracledatasource url user password Oracle SJS JDBC com.sun.sql.jdbcx.oracle. OracleDataSource servername portnumber user password SID DB2 IBM com.ibm.db2.jdbc.db2datasource servername databasename portnumber user password drivertype DB2 SJS JDBC com.sun.sql.jdbcx.db2. DB2DataSource databasename locationname packagename password portnumber servername user MS SQLServer MS SJS JDBC com.ddtek.jdbcx.sqlserver. SQLServerDataSource com.sun.sql.jdbcx.sqlserver. SQLServerDataSource databasename password user servername portnumber databasename password user servername portnumber Sybase com.sybase.jdbcx.sybdatasource databasename password portnumber servername user 158 Sun Java SystemWeb Server 7.0 2006 10
Java 11 2 JDBC Sybase SJS JDBC com.sun.sql.jdbcx.sybase. SybaseDataSource databasename password user portnumber servername MySQL MM org.gjt.mm.mysql.jdbc2.optional. MysqlDataSource servername port databasename user password Informix com.informix.jdbcx.ifxdatasource portnumber databasename IfxIFXHOST Informix IP servername user password Informix SJS JDBC com.sun.sql.jdbcx.informix. InformixDataSource databasename informixserver Informix password portnumber severname PostgreSQL org.postgresql.ds. PGSimpleDataSource servername databasename portnumber user password Apache Derby org.apache.derby.jdbc. EmbeddedDataSource databasename user password 11 Java Web 159
Java JDBC 1 2 3 4 5 6 JDBC "Java" > JDBC JNDI JDBC JDBC JDBC JDBC JDBC JDBC JDBC Sun Java System Web Server 7.0 JDBC jdbc-resource Oracle JDBC 1 2 JDBC wadm JDBC JDBC wadm> create-jdbc-resource --config=test --datasourceclass=oracle.jdbc.pool.oracledatasource jdbc/mypool 160 Sun Java SystemWeb Server 7.0 2006 10
Java 3 4 5 6 7 url user password JDBC wadm> add-jdbc-resource-userprop --config=test --jndi-name=jdbc/mypool url=jdbc:oracle:thin:@hostname:1521:mysid user=myuser password=mypassword Web wadm> set-jdbc-resource-prop --config=test --jndi-name=jdbc/mypool connection-validation-table-name=test connection-validation=table wadm> set-jdbc-resource-prop --config=test --jndi-name=jdbc/mypool max-connections=100 wadm> deploy-config test JDBC Jar jar lib lib jar JVM JDBC jar wadm> set-jvm-prop --config=test class-path-suffix=/export/home/lib/classes12.jar 8 Web WEB-INF/web.xml <web-app>... <resource-ref> <description>jdbc Connection Pool</description> <res-ref-name>jdbc/myjdbc</res-ref-name> <res-type>javax.sql.datasource</res-type> <res-auth>container</res-auth> </resource-ref>... </web-app> 11 Java Web 161
Java WEB-INF/sun-web.xml <sun-web-app>... <resource-ref> <res-ref-name>jdbc/myjdbc</res-ref-name> <jndi-name>jdbc/mypool</jndi-name> </resource-ref>... </sun-web-app> Context initcontext = new InitialContext(); Context webcontext = (Context)context.lookup("java:/comp/env"); DataSource ds = (DataSource) webcontext.lookup("jdbc/myjdbc"); Connection dbcon = ds.getconnection(); 1 2 3 "Java" > 11 3 JNDI JNDI JDBC 162 Sun Java SystemWeb Server 7.0 2006 10
Java 11 3 javax.naming.spi.objectfactory CLI CLI CLI wadm> create-custom-resource --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --res-type=samples.jndi.customresource.mybean --factory-class=samples.jndi.customresource.mycustomconnectionfactory custom CLI create-custom-resource(1) JNDI JNDI Java (Java Naming and Directory Interface, JNDI) JNDI JNDI 1 2 3 JNDI "Java" > JNDI JNDI JNDI 11 Java Web 163
Java 11 4 JNDI JNDI JNDI JNDI JNDI JNDI CLI CLI CLI JNDI wadm> create-external-jndi-resource --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --res-type=org.apache.naming.resources.resource --factory-class=samples.jndi.externalresource.myexternalconnectionfactory --jndilookupname=index.html external-jndi CLI create-external-jndi-resource(1) JMS Java EE Sun Java System Web Server Internet Java EE JavaMail API Internet JavaMail 1 2 3 "Java" > 164 Sun Java SystemWeb Server 7.0 2006 10
SOAP 11 5 JNDI /IP com.sun.mail.imap.imapstore com.sun.mail.smtp.smtptransport CLI wadm> create-mail-resource --config=test --server-host=localhost --mail-user=nobody --from=xyz@foo.com mail/session CLI create-mail-resource(1) SOAP Java SOAP 11 Java Web 165
SOAP 1 2 3 SOAP "Java" > Web SOAP SOAP SOAP 11 6 SOAP SOAP javax.security.auth.xxx / sender content XML before-content after-content / sender content XML CLI 166 Sun Java SystemWeb Server 7.0 2006 10
CLI CLI SOAP wadm> create-soap-auth-provider --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --class-name=javax.security.auth.soapauthprovider soap-auth CLI create-soap-auth-provider(1) Sun Java System Web Server 7.0 Web HTTP HTTP 11 Java Web 167
Web Server C Web Server B Web Server D 1 2 "Java" > 168 Sun Java SystemWeb Server 7.0 2006 10
11 7 Getatrribute Cookie Administration Server 8888 false HttpSession.getAttribute true 1 2147.0483647-1 0.001 3600 cookie Java EE Java Java auth-db auth-db ACL ACL Java Java Servlet Web web.xml server.xml auth-realm Sun Java System Web Server 7.0 11 Java Web 169
11 8 File LDAP PAM Certificate Native file Sun Java System Web Server file Java auth-db auth-db ACL ACL Java Java Servlet Web web.xml ldap LDAP LDAP ldap ldap LDAP Administration Server LDAP PAM Solaris Solaris PAM PAM auth-db Solaris 9 Solaris 10 certificate SSL Certificate Sun Java System Web Server Java EE DN X.509 SSL TLS native ACL Java EE/Servlet Native Java Web ACL Java Web Java Web Native LDAP LDAP Native Java Web Native Web Java JAAS Oracle 170 Sun Java SystemWeb Server 7.0 2006 10
1 2 3 4 "Java" > web.xml Java Java property name="file" value="instance_dir/config/keyfile" property name="jaas-context" value="filerealm CLI CLI wadm> create-auth-realm --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 basic CLI create-auth-realm(1) file ldap pam native certificate 11 Java Web 171
172
12 Web 173 174 175 177 179 179 179 180 181 181 Sun Java System Web Server Web <server-root>/config/server.xml VS 173
Web Web JSP JSP Sun Java System Web Server Java Web Java 1. 2. 3. 4. 5. 6. URI URI 174 Sun Java SystemWeb Server 7.0 2006 10
CLI CLI CLI wadm> set-search-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8888 --no-ssl --rcfile=null --config=config1 --vs=config1_vs_1 enabled=true max-hits=1200 CLI set-search-prop(1) 1. HTML.html.htm 2. ASCII.txt 3. PDF 1. 2. 3. 4. 12 175
5. 6. 1. a. b. c. d. 2. a. b. c. *.* Perl d. / e. / 3. 3 a. 176 Sun Java SystemWeb Server 7.0 2006 10
CLI CLI wadm> create-search-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 --uri=/search_config1 --document-root=../docs searchcoll CLI create-search-collection(1) 1. 2. 3. 4. 5. 6. CLI CLI wadm> delete-search-collection --user=admin --password-file=admin.pwd --host=serverhost --port=8989 --config=config1 --vs=config1_vs_1 searchcoll CLI delete-search-collection(1) 1. 2. 12 177
3. 4. 5. 6. 7. 12 1 > 1. 2. 3. 4. 5. ISO-8859-1 HTML 1. 2. 1 31 4,23,9 1. 2. 178 Sun Java SystemWeb Server 7.0 2006 10
Sun Java System Web Server Web JSP URL URL http://<server-instance >:port number/search http://plaza:8080/search URL Java Web Web 12 179
1 2 3 Web URL http://<server-instance>:port number/search ENTER Web 1 2 3 Web URL http://<server-instance>:port number/search Web / "Since" Web 180 Sun Java SystemWeb Server 7.0 2006 10
Sun Java(TM)System Web Server "Title" "Author" "URL" Einstein "Title" "Author" "Keywords" Einstein Einstein Einstein Einstein Author = "Albert Einstein" Albert Einstein 1. Author <author> 2. Keywords <keywords> 3. Date 4. Title HTML <title> Web HTML 10 Sun Java System Web Server Web Web JSP JSP /bin/https/webapps/search 12 181
10 URL <s1ws:form> <collelem> <querybox> <submitbutton> <s1ws:form> <s1ws:collelem> <s1ws:querybox> <s1ws:submitbutton> </s1ws:form> <searchform> 182 Sun Java SystemWeb Server 7.0 2006 10
<s1ws:form> <table cellspacing="0" cellpadding="3" border="0"> <tr class="navbar"> <td class="navbar"><s1ws:collelem type= select ></td> <td class="navbar"> <s1ws:querybox size="30"> <s1ws:submitbutton class="navbar" style="padding: 0px; margin: 0px; width: 50px"> </td> </tr> </table> </s1ws:form> <s1ws:searchform> <table> <!--... other sidebar items... --> <tr class="title"><td>search</td></tr> <tr class="body"> <td> <table cellspacing="0" cellpadding="3" border="0"> <tr class="formblock"> <td class="formblock"> <s1ws:collelem type="checkbox" cols="1" values="1,0,1,0" /> </td> </tr> <tr class="formblock"> <td class="formblock"> <s1ws:querybox size="15" maxlength="50"> </td> </tr> <tr class="formblock"> <td class="formblock"> <s1ws:submitbutton class="navbar" style="padding: 0px; margin: 0px; width: 50p </tr> </table> </td> </tr> </table> </s1ws:searchform> 12 183
<formaction> <formaction> <search> <resultiteration> <search> <formaction> pagecontext <resultiteration> 1 10 URL <s1ws:formaction /> <s1ws:formsubmission success="true" > <s1ws:search scope="page" /> <!--search results--> (...html omitted...) <s1ws:resultstat formid="test" type="total" /></b> Results Found, Sorted by Relevance</span></td><td> <span class="body"><a href="/search/search.jsp?">sort by Date</a></span></td> <td align="right"><span class="body"> <s1ws:resultnav formid="test" type="previous" caption="<img border=0 src=\\"images/arrow-left.gif\\" alt=\\"pr <s1ws:resultstat formid="test" type="range" /> <s1ws:resultnav formid="test" type="next" caption="<img border=0 src=\\"images/arrow-right.gif\\" alt=\\ <!img alt="next" src="images/arrow-right.gif" border="0" WIDTH="13" HEIGHT="9"> (...html omitted...) <table border=0> <s1ws:resultiteration formid="test" start="1" results="15"> <tr class=body> <td valign=top> <s1ws:item property= number />. </td> <td> <b><a href="<s1ws:item property= url />"><s1ws:item property= title /></a></b> <br> <s1ws:item property= passages /> <font color="#999999" size="-2"> <s1ws:item property= url /> - <s1ws:item property= date /> - 184 Sun Java SystemWeb Server 7.0 2006 10
<s1ws:item property= size /> KB </font><br><br> </td> </tr> </s1ws:resultiteration> </table> (...html omitted...) <s1ws:resultnav formid="test" type="previous" /> <s1ws:resultnav formid="test" type="full" offset="8" /> <s1ws:resultnav formid="test" type="next" /> (...html omitted...) </s1ws:formsubmission> HTML <search> <resultiterate> Java Web <s1ws:search collection="articles" query="java Web Services" /> <table cellspacing="0" cellpadding="3" border="0"> <tr class="title"><td>java Web Services</td></tr> </table> <table cellspacing="0" cellpadding="3" border="0"> <s1ws:resultiteration> <tr> <td><a href="<s1ws:item property= URL />"> <s1ws:item property= Title /></a></td> </tr> </s1ws:resultiteration> </table> <form> <formaction> com.sun.web.search.taglibs pagecontext com.sun.web com.sun.web.searchresults.form_id form_id 12 185
s1ws pagecontext Sun Java System Web Server JSP JSP Sun Java System Web Server 7.0 Developer's Guide to Web Applications 186 Sun Java SystemWeb Server 7.0 2006 10
13 Sun Java System Web Server 187 Sun Java System Web Server 189 191 SNMP 195 199 Administration Server Sun Java SystemWeb Server Sun Java System Web Server / / > 3 187
13 1 / 1 2 3 188 Sun Java SystemWeb Server 7.0 2006 10
CLI get-config-stats get-virtual-serevr-stats get-webapp-stats get-servlet-stats wadm> get-config-stats --user=admin --password-file=admin.passwd --host=localhost --port=8989 --config=test --node=cat.test.com --ssl=true --node wadm> get-vs-stats --user=admin --password-file=admin.passwd --host=localhost --port=8989 --config=test --vs=www.test.com --node=cat.test.com --ssl=true --node wadm> get-webapp-stats --user=admin --password-file=admin.passwd --host=localhost --port=8989 --config=test --node=cat.test.com --vs=www.test.com --uri=/foo --ssl=true Web Web --node wadm> get-servlet-stats --user=admin --password-file=admin.pwd --host=localhost --port=8989 --config=test --node=cat.test.com --vs=www.test.com --uri=/servlet-simple --ssl=true servlet servlet-simple SNMP SNMP SNMP (Network Management Station, NMS) SNMP Web NMS NMS NMS HP OpenView Web SNMP Sun Java System Web Server NMS Sun Java System Web Server Administration Server 13 189
SNMP SNMP 1. 2. 3. 13 2 > SNMP SNMP / SNMP 5 15 / / SNMP SNMP SNMP SNMP 190 Sun Java SystemWeb Server 7.0 2006 10
SNMP 13 3 > SNMP SNMP / SNMP UNIX SNMP SNMP SNMP (Network Management Station, NMS) SNMP Web NMS NMS NMS Sun Management Center Web SNMP Sun Java System Web Server NMS SNMP 1. 2. 3. SNMP 4. SNMP SNMP SNMP 1. 13 191
SNMP 2. 3. SNMP 4. SNMP SNMP SNMP SNMP SNMP SMUX AIX SMUX Administration Server SNMP (Windows) Windows SNMP (UNIX) Administration Server SNMP 13 4 1. 2. SMUX SMUX SMUX 1. Administration Server 2. 3. 1. SNMP Agent 2. 3. SNMP Agent 4. 5. 1. SNMP 2. 192 Sun Java SystemWeb Server 7.0 2006 10
SNMP CLI SNMP 1 2 3 4 Solaris SNMP SNMP SNMP wadm> set-snmp-prop --user=admin --host=funland --port=1893 --config=test enabled=true master-host=masterhost-name organization=organization-name location=location-name contact=contact-name description=description-name wadm> deploy-config --user=admin --password-file=admin.pwd --host=serverhost --port=8989 config1 $./https-test/bin/startserv (magt) magt snmpd $ cd /etc/init.d/ $ init.dmi stop; init.snmpdx stop; init.sma stop https-admserv/config/logs/pid.masteragt $ rm./https-admserv/config/logs/pid.masteragt wadm> start-snmp-master-agent --snmp-port 161 hostname 5 https-admserv/config/logs/pid.httpagt $ rm./https-admserv/config/logs/pid.httpagt httpagt wadm> start-snmp-subagent hostname 13 193
SNMP 1 2 3 4 Linux SNMP SNMP SNMP wadm> set-snmp-prop --user=admin --host=funland --port=1893 --config=test enabled=true master-host=masterhost-name organization=organization-name location=location-name contact=contact-name description=description-name wadm deploy-config --user=admin --password-file=admin.pwd --host=serverhost --port=8989 config1 $./https-test/bin/startserv (snmpd) snmpd /etc/snmp/snmpd.conf snmpd smuxpeer 1.3.6.1.4.1.42.2.190.1 view systemview included.1.3.6.1.4.1.42.2.190.1 # cd /etc/init.d/ #./snmpd stop #./snmpd start 5 https-admserv/config/logs/pid.httpagt $ rm./https-admserv/config/logs/pid.httpagt httpagt wadm> start-snmp-subagent hostname 1 2 3 Windows SNMP SNMP SNMP wadm> set-snmp-prop --user=admin --host=funland --port=1893 --config=test enabled=true master-host=masterhost-name organization=organization-name location=location-name contact=contact-name description=description-name install-root/lib 194 Sun Java SystemWeb Server 7.0 2006 10
4 5 Windows Web Server SNMP (magt) Solaris 10 Linux OS Solaris 10 OS snmpd SNMP UDP 161 /etc/sma/snmp/snmpd.conf / snmpd.conf Solaris 8 9 OS snmpd linux httpagt snmpd magt Windows Sun Java System Web Server snmp Windows SNMP 1 2 3 4 SNMP (11161) Solaris 10 /etc/sma/snmp/snmpd.conf proxy -v 1 -c public myserver:11161.1.3.6.1.4.1.42.2.190.1 snmpd # cd /etc/init.d # init.dmi stop; init.snmpdx stop; init.sma stop # init.dmi start; init.snmpdx start; init.sma start SNMP snmpwalk $ snmpwalk -c public -v 1 <host-name>:<port> 1.3.6.1.4.1.42.2.190.1 Administration Server 13 195
1. 2. wadm> get-log --user=admin --password-file=admin.passwd --host=localhost --port=8989 --start-date=01/01/2006:09:00:00 --end-date=04/01/2006:10:00:00 --config=test cat.test.com 01/Jan/2006:09:00:00 04/Jan/2006:10:00:00 wadm> get-access-log --user=admin --password-file=admin.passwd --host=localhost --port=8989 --status-code=300 --config=test cat.test.com 300 start-date end-date dd/mm/yyyy:hh:mm:ss rcfile wadm_log_date_format 1. 2. / 3. > 196 Sun Java SystemWeb Server 7.0 2006 10
13 5 > /../logs/access 1. IP address user [date] request status content-length 2. HTTP HTTP HTTP HTTP URI 13 6 >../logs/errors Web finest failure security catastrophe 13 197
13 6 > Web [ %d/%b/%y:%h:%m:%s] "access.199907.0152400" 24 / 1. 2. / 3. > 4. 13 7 > / 198 Sun Java SystemWeb Server 7.0 2006 10
Administration Server 13 7 > 1. 2. 1 31 4,23,9 1. 2. Administration Server Web Web 1 2 3 Administration Server > UNIX../log/errors 13 199
Administration Server 1 2 3 Administration Server > finest failure security catastrophe 1 2 3 Administration Server > [%d/%b/%y:%h:%m:%s] 200 Sun Java SystemWeb Server 7.0 2006 10
14 Sun Java System Web Server 201 202 202 URL 8 LDAP RFC 17.000 (ftp://ds.internic.net/rfc/rfc17.000.txt) ID ASCII UTF-8 8 201
Sun Java System Web Server 7.0 202 WebDAV 202 WebDAV Sun Java System Web Server PROPPPATCH PROPFIND UTF-8 Sun Java System Web Server 7.0 Java Java VM HTML HTML JSP Sun Java System Web Server 7.0 Developer's Guide to Web Applications Accept-language >> > > > > Accept-language fr-ch,de Accept-language URL http://www.someplace.com/somepage.html 1 Accept-language fr-ch,de http://www.someplace.com/fr_ch/somepage.html http://www.someplace.com/somepage_fr_ch.html 202 Sun Java SystemWeb Server 7.0 2006 10
http://www.someplace.com/de/somepage.html http://www.someplace.com/somepage_de.html 2 3 4 /fr-ch fr http://www.someplace.com/fr/somepage.html http://www.someplace.com/somepage_fr.html DefaultLanguage magnus.conf en http://www.someplace.com/en/somepage.html http://www.someplace.com/somepage_en.html http://www.someplace.com/somepage.html / CH TW (-) (_) acceptlanguage Accept-language 14 203
204
A CLI Sun Java System Web Server 7.0 A 1 CLI 6.1 CLI 7.0 CLI Web Web wdeploy list -i INSTANCE_NAME -v VIRTUAL_SERVER wdeploy deploy -i INSTANCE_NAME -v VIRTUAL_SERVER -u URI_PATH war file name HttpServerAdmin list -v -d INSTALL_DIR -sinst https-instance_name wadm> list-webapps --user=admin --port=8888 --password-file=admin.passwd --no-ssl 1. wadm> add-webapp --user=admin --port=8888 --password-file=admin.passwd --config=hostname --vs=virtual_server --uri=uri_path war file name 2. wadm> deploy-config --user=admin --port=8888 --password-file=admin.passwd HOSTNAME wadm> reconfig-instance --user=admin --port=8888 --password-file=admin.passwd --config=hostname wadm> list-virtual-servers --user=admin --port=8888 --password-file=admin.passwd --config=hostname 205
CLI A 1 CLI 6.1 CLI 7.0 CLI JDBC HttpServerAdmin list -r -jdbc -d INSTALL_DIR -sintance https-instance_name HttpServerAdmin create -r -custom -jndiname -poolname -enabled true wadm> list-jdbc-resources --user=admin --port=8888 --password-file=admin.passwd --config=hostname wadm> create-custom-resource --user=admin --port=8888 --password-file=admin.passwd --config=hostname --res-type=type --jndi-name NAME wadm> start-instance --user=admin --port=8888 --password-file=admin.passwd --config=hostname NODENAME* wadm> stop-instance --user=admin --port=8888 --password-file=admin.passwd --config=hostname NODENAME* Web 1. wadm> create-reverse-proxy --user=admin --port=8888 --password-file=admin.passwd --config=hostname --vs= VIRTUAL_SERVER --from= URI --server= target-hostname 2. wadm> set-reverse-proxy-prop --user=admin --password-file=admin.pwd --host=serverhost --port=8888 --config=config1 --vs=config1_vs_1 --uri-prefix=/test/ --server=http://java.com:8080 --sticky-cookie=testcookie wadm> delete-reverse-proxy --user=admin --port=8888 --password-file=admin.passwd --config=hostname --vs= VIRTUAL_SERVER --uri-prefix= URI 206 Sun Java SystemWeb Server 7.0 2006 10
CLI A 1 CLI 6.1 CLI 7.0 CLI WebDAV 1. wadm> enable-webdav --user=admin --port=8888 --password-file=admin.passwd --config=hostname 2. wadm> deploy-config --user=admin --port=8888 --password-file=admin.passwd HOSTNAME Web 1. wadm> create-config --doc-root=[docroot] -http-port=[httpport] --jdk-home=[javahome] --server-user=[serveruser] --server-name=[hostname] CONFIGNAME 2. wadm> create-instance --config=configname NODENAME 3. wadm> deploy-config CONFIGNAME A CLI 207
208
B FastCGI 209 210 (SAF) 213 Web Server FastCGI 219 FastCGI FastCGI CGI Common Gateway InterfaceCGI Web Server CGI FastCGI FastCGI Web Server FastCGI FastCGI Web Server Perl Python FastCGI http://www.fastcgi.com/devkit/doc/fcgi-spec.html 209
(SAF) (SAF) FastCGI (Server Application Function, SAF) FastCGI SAF 210 auth-fastcgi 210 responder-fastcgi 211 filter-fastcgi 211 error-fastcgi 211 FastCGI SAF 213 error-fastcgi SAF auth-fastcgi auth-fastcgi FastCGI 200FastCGI http://www.fastcgi.com/devkit/doc/fcgi-spec.html#s6 FastCGI auth-fastcgi SAF 211 FastCGI SAF obj.conf auth-fastcgi PathCheck fn="auth-fastcgi" app-path="/usr/bin/perl" app-args="/fastcgi/apps/auth/simpleauth.pl" bind-path="localhost:3432" responder-fastcgi responder-fastcgi FastCGI http://www.fastcgi.com/devkit/doc/fcgi-spec.html#s6 FastCGI responder-fastcgi SAF 211 FastCGI SAF obj.conf responder-fastcgi Service fn="responder-fastcgi" app-path="/fastcgi-enabled-php-installation/bin/php" bind-path="localhost:3433" app-env="php_fcgi_children=8" app-env="php_fcgi_max_request=500" 210 Sun Java SystemWeb Server 7.0 2006 10
(SAF) filter-fastcgi filter-fastcgi FastCGI HTTP http://www.fastcgi.com/devkit/doc/fcgi-spec.html#s6 FastCGI filter-fastcgi SAF 211 FastCGI SAF obj.conf filter-fastcgi Service fn="filter-fastcgi" app-path="/fastcgi/apps/filter/simplefilter" bind-path="localhost:3434" app-env="ld_library_path=/fastcgi/fcgi-2.4/libfcgi/.libs" min-procs=2 error-fastcgi error-fastcgi error-fastcgi SAF FastCGI HTTP FastCGI URL error-fastcgi SAF 211 FastCGI SAF obj.conf error-fastcgi Error fn="error-fastcgi" error-reason="invalid Parameters" error-url="http://www.foo.com/errorpage.html" error-fastcgi 211 FastCGI SAF FastCGI SAF FastCGI SAF "auth-fastcgi" " responder-fastcgi" "filter-fastcgi" chroot user group nice UNIX Windows app-path FastCGI bind-path 1. app-path FastCGI UNIX UNIX Windows B FastCGI 211
(SAF) 2. app-path bind-path FastCGI bind-path 3. bind-path FastCGI FastCGI 4. "app-path" "bind-path" app-args FastCGI app-args app-args app-args="value" app-args="value".. bind-path Unix "host:port" "app-path" "bind-path" Unix UNIX Windows bind-path "host:port" min-procs FastCGI 1 max-procs FastCGI min-procs 1 chroot chroot FastCGI Web Server user FastCGI ID Web Server ID group FastCGI Web Server nice FastCGI nice/priority listen-queue 256 app-env FastCGI "app-env" app-env app-env="name=value" app-env="name=value"... reuse-connection FastCGI False 0 false no FastCGI True 1 true yes false connection-timeout connection-timeout "reuse-connection" True 5 reuse-connection resp-timeout FastCGI FastCGI 5 212 Sun Java SystemWeb Server 7.0 2006 10
Web Server FastCGI restart-interval FastCGI 60 1 FastCGI req-retry FastCGI error-fastcgi (Server Application Function, SAF) error-urluri URL URL URI error-reason FastCGI URL error-fastcgi SAF app-path bind-path Fastcgisub Fastcgistub FastCGI Fastcgisub Chroot Nice / FastCGI FastCGI Fastcgi FastCGI FastCGI Web Server FastCGI FastCGI Web Server 7.0 32 FastCGI <install_dir>/plugins/fastcgi 64 Solaris SPARC FastCGI <install_dir>/lib/plugins/fastcgi/64 FastCGI B FastCGI 213
Web Server FastCGI libfastcgi.so Solaris/Linux fastcgi.dll Windows Fastcgistub.exe Windows libfastcgi.sl HP-UX Fastcgistub <instance-dir>/config Web Server FastCGI FastCGI 214 magnus.conf 214 MIME 215 obj.conf 216 FastCGI 217 FastCGI magnus.conf "load-modules" FastCGI Init fn=flex-init access="access" format.access="%ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length%" Init fn="load-modules" shlib="libjava EEplugin.so" shlib_flags="(global now)" Init fn="load-modules" shlib="libfastcgi.so" shlib_flags="(global now)" MIME mime.types MIME MIME #--Sun Microsystems Inc. MIME Information # Do not delete the above line. It is used to identify the file type. # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # 214 Sun Java SystemWeb Server 7.0 2006 10
Web Server FastCGI type=application/octet-stream exts=bin type=application/astound exts=asd,asn...... type=magnus-internal/fastcgi exts=php...... obj.conf obj.conf SAF FastCGI obj.conf # # Copyright 2006 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # You can edit this file, but comments and formatting changes # might be lost when you use the administration GUI or CLI. <object name = "default"> </object> AuthTrans fn="match-browser" browser="*msie*" ssl-unclean-shutdown="true" NameTrans fn="ntrans-java EE" name="java EE" NameTrans fn="pfx2dir" from="/mc-icons" dir="/ws7/lib/icons" name="es-internal" NameTrans fn="assign-name" from="/fcgi/*" name="fcgi.config" B FastCGI 215
Web Server FastCGI <Object name="fcgi.config"> </object>... AuthTrans fn="auth-fastcgi" app-path="/fastcgi/apps/c/simpleauth" bind-path="localhost:2111" Service fn="responder-fastcgi" app-path="/fastcgi_enabled_php_installation_dir/bin/php" app-env="name1=abc" URL SAF MIME FastCGI SAF obj.conf FastCGI Fastcgistub FastCGI Fastcgistub Web Server Fastcgistub.log FastCGI 1. FastCGI Web Server magnus.conf FCGI1000: Sun Java System Web Server 7.0 FastCGI NSAPI Plugin < build info> 2. obj.conf obj.conf Sun Java System Web Server 3. 4. FastCGI 5. Fastcgistub.log 6. FastCGI obj.conf LD_LIBRARY_PATH LD_LIBRARY_PATH=<dependency library paths> app-env FastCGI 216 Sun Java SystemWeb Server 7.0 2006 10
Web Server FastCGI Fastcgistub.log.. <pid> process startup failure, trying to restart... Even after trying <n> time(s), <application path> process failed to start...no more retries obj.conf FastCGI app-env Service fn="responder_fastcgi" app-path="/fastcgi/c/tux-app" bind-path="localhost:2112" app-env="ld_library_path=/tuxedo/lib" FastCGI Perl PHP C Java FastCGI 217 FastCGI 217 FastCGI 218 Perl 218 PHP 218 C/Java 1 2 3 FastCGI Web Server Web Server "fcgi" http://localhost/fcgi/listdir.php FastCGI FastCGI Initialization code Start of response loop body of response loop End of response loop CGI FastCGI B FastCGI 217
Web Server FastCGI FCGI_Accept FastCGI FCGI_Accept FastCGI FCGI_Accept Web Server FastCGI Perl CPAN FCGI ActivePerl http://aspn.activestate.com/aspn/downloads/activeperl/ppm/zips Perl FastCGI http://www.fastcgi.com/devkit/fastcgi-prog-guide/ch3perl.htm#3659 PHP PHP 4.3.0 FastCGI PHP FastCGI PHP 4.3.x --enable-fastcgi./configure <other-options> --enable-fastcgi gmake php FastCGI PHP 5.1.2 PHP 4.x FastCGI bind-path : bind-path = "localhost:3333" PHP 5.1.3 bind-path : bind-path = "myphpbindpath" C/Java FastCGI FastCGI C/Java API http://www.fastcgi.com/devkit/doc/fcgi-devel-kit.htm FastCGI 1. tar fcgi-devel-kit 2. fcgi-devel-kit a../configure b. make C FastCGI http://www.fastcgi.com/devkit/doc/fcgi-devel-kit.htm#s3 Java FastCGI http://www.fastcgi.com/devkit/doc/fcgi-java.htm 218 Sun Java SystemWeb Server 7.0 2006 10
FastCGI FastCGI PHP Perl C FastCGI 219 PHP (ListDir.php) 219 Perl (SimpleAuth.pl) 220 C (SimpleFilter.c) <?php $dir = "/tmp/"; PHP (ListDir.php) // Open a known directory, and proceed to read its contents if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh))!== false) { echo "filename: $file : filetype: ". filetype($dir. $file). "\n"; } closedir($dh); }?> } obj.conf <Object name="default"> NameTrans fn="assign-name" from="/fcgi/*" name="responder.fcgi" </Object> <Object name="responder.fcgi"> Service fn="responder-fastcgi" app-path="/foo/fastcgi-enabled-php-installation/bin/php" bind-path="localhost:3431" min-procs=3 </Object> #!/usr/bin/perl Perl (SimpleAuth.pl) use FCGI; while (FCGI::accept >= 0) { if( $ENV{ HTTP_AUTHORIZATION } ) { # This value can be further decoded to get the actual username and password and then # perform some kind of user validation. This program only checks for the presence of B FastCGI 219
FastCGI } # of this environment param and is not really bothered about its value print( "Status: 200\r\n" ); print( "\r\n" ); } else { print( "Status: 401\r\n" ); print( "WWW-Authenticate: basic realm=\"foo\"\r\n" ); print( "\r\n" ); } Example obj.conf settings for the above example: obj.conf <Object name="responder.fcgi"> AuthTrans fn="auth-fastcgi" app-path="/fastcgi/apps/auth/simpleauth.pl" bind-path="localhost:3432" Service fn="responder-fastcgi" app-path="/foo/fastcgi-enabled-php-installation/bin/php" bind-path="localhost:3433" app-env="php_fcgi_children=8" min-procs=1 </Object> http://localhost/fcgi/php/listdir.php "/tmp" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcgi_stdio.h> C (SimpleFilter.c) void main(void) { size_t PageSize = 1024 * 3; char *page; FCGX_Stream *in, *out, *err; FCGX_ParamArray envp; int count=0; page = (char *)malloc(pagesize); if (page == NULL) { printf("content-type: text/x-server-parsed-html\r\n"); 220 Sun Java SystemWeb Server 7.0 2006 10
FastCGI } printf("<title>malloc failure</title>"); printf("<h1>cannot allocate memory to run filter. exiting</h1>"); printf("\r\n\r\n"); exit(2); while(fcgi_accept() >= 0) { char *tmp; char *execcgi; char *datalenstr = NULL; int numchars = 0; int stdindatasize = 0; int filterdatalen = 0; int datatoberead = 0; intx=0; int loopcount = 0; count++; datalenstr = getenv("fcgi_data_length"); if(datalenstr) filterdatalen = atoi(datalenstr); /* clear out stdin */ while (EOF!= getc(stdin)) { stdindatasize++; } datatoberead = filterdatalen; FCGI_StartFilterData(); tmp = page; /** just in case fread or fwrite moves our pointer **/ //start responding printf("content-type: text/plain\r\n"); printf("\r\n"); /** send a new line at the beginning **/ printf("<title>simple FILTER</title>"); printf(<h1>this page was Filtered by SimpleFilter FastCGI filter</h1>"); printf("file size=%d<br>", filterdatalen); printf("stdin size=%d<br>, stdindatasize); while(datatoberead >0){ x=0; page = tmp; B FastCGI 221
FastCGI if(datatoberead > PageSize) x = PageSize; else x = datatoberead; numchars = fread((void *)(page), 1, x, stdin); if( numchars == 0 ) continue; /** at this point your data is in page pointer, so do whatever you want with it before sending it back to the server. In this example, no data is manipulated. Only the count of number of times the filter data is read and the total bytes read at the end of every loop is printed. **/ datatoberead -= numchars; loopcount++; printf("loop count = %d... so far read %d bytes <br>", loopcount, (filterdatalen - datatoberead)); } printf("\r\n\r\n"); /** send a new line at the end of transfer **/ fflush(stdout); } page = tmp; /** restore page pointer **/ memset(page,null,numchars); } free(page); obj.conf FastCGI Web Server <Object name=<"filter.fcgi"> Service fn="filter-fastcgi" app-path="/fastcgi/apps/filter/simplefilter.exe" bind-path="localhost:3434" app-env="ld_library_path=/fastcgi/fcgi-2.4/libfcgi/.libs" </Object> obj.conf <Object name="filter.fcgi"> Service fn="filter-fastcgi" bind-path="<remote-host>:<remote-port>" </Object> 222 Sun Java SystemWeb Server 7.0 2006 10
FastCGI Web Server fcgi "26868" "FilterThisFile" "http://localhost/fcgi/filter/filterthisfile" This page was Filtered by SimpleFilter FastCGI filter file size = 26868 stdin size = 0 loop count = 1... so far read 3072 bytes loop count = 2... so far read 6144 bytes loop count = 3... so far read 9216 bytes loop count = 4... so far read 12288 bytes loop count = 5... so far read 15360 bytes loop count = 6... so far read 18432 bytes loop count = 7... so far read 21504 bytes loop count = 8... so far read 24576 bytes loop count = 9... so far read 26868 bytes B FastCGI 223
224
C Web Sun Java System Web Server 7.0 Web JWSDP Web JWSDP Web Web 151 Web Web Server 7.0 JWSDP 2.0 Web Server 7.0 JWSDP 2.0 Web jaxws Web Server 7.0 1 2 JWSDP 2.0 JWSDP 2.0 $JWSDP_HOME/jwsdp-shared/bin Web Server sjsws.props sjws.props ADMIN_USER=admin ADMIN_PORT=8800 ADMIN_HOST=localhost ADMIN_PASSWORD_FILE=/tmp/admin.passwd CONFIG=jwsdp VS=jwsdp WS_HOME=/export/ws7.0 WS_PORT=5555 WS_HOST=localhost 225
Web Server 7.0 JWSDP 2.0 admin.passwd wadm_password=adminadmin 3 build.xml etc/deploy-targets.xml deploy-targets.xml etc. build.xml build.xml Application Server lib.home Web Server lib build.xml <!-- ** ** ** Comment out the Application Server lib.home declaration ** ** ** <property file="../../../jwsdp-shared/bin/sjsas.props"/> <condition property="lib.home" value="${domain_dir}/../lib"> <available file="../../../jwsdp-shared/bin/sjsas.props"/> </condition> <condition property="lib.home" value="${env.jaxws_home}/lib"> <not> <available file="../../../jwsdp-shared/bin/sjsas.props"/> </not> </condition> --> <!-- ** Add the Web Server library location ** --> <property name="lib.home" value="${ws_home}/lib" /> deploy-targets.xml etc/deploy-targets.xml Web deploy-targets.xml Web Web Server deploy-targets.xml <property environment="env"/> <!-- Loading Web Server properties --> <property environment="env"/> <property file="../../../jwsdp-shared/bin/sjsws.props"/> <property name="ws.home" value="${ws_home}"/> <property name="ws.admin" value="${ws.home}/bin/wadm"/> <property name="lib.sample.home" value="${basedir}/../lib"/> <property name="build.home" value="${basedir}/build"/> <property name="build.classes.home" value="${build.home}/classes"/> <property name="build.war.home" value="${build.home}/war"/> 226 Sun Java SystemWeb Server 7.0 2006 10
Web Server 7.0 JWSDP 2.0 <property name="config" value="${config}"/> <target name="deploy"> <exec executable="${ws.admin}" vmlauncher="true"> <arg value="add-webapp" /> <arg value="--user=${admin_user}" /> <arg value="--password-file=${admin_password_file}" /> <arg value="--host=${admin_host}" /> <arg value="--port=${admin_port}" /> <arg value="--config=${config}" /> <arg value="--vs=${vs}" /> <arg value="--uri=/jaxws-${ant.project.name}" /> <arg value="${build.war.home}/jaxws-${ant.project.name}.war" /> </exec> <antcall target="commit-config" /> </target> <target name="commit-config"> <exec executable="${ws.admin}" vmlauncher="true"> <arg value="deploy-config" /> <arg value="--user=${admin_user}" /> <arg value="--password-file=${admin_password_file}" /> <arg value="--host=${admin_host}" /> <arg value="--port=${admin_port}" /> <arg value="--force=true" /> <arg value="${config}" /> </exec> </target> C Web 227
228
Access Control Entries, ACE Access Control List, ACL Administration Server admpw agent authentication Web ACE ACL ACL Web Sun Java System Web Server Enterprise Administrator Server X Web Web LDAP SSL IP cache Certificate revocation list, CRL certificate certification authority, CA CGI chroot ciphertext cipher CA CA Common Gateway Interface HTTP CGI CGI CGI CGI 229
client auth client auth client cluster collection Common LogFile Format Compromised key list, CKL daemon (UNIX) DHCP digest authentication DNS DNS alias DNS document root drop word encryption expires header extranet fancy indexing Netscape Navigator Administration Server Administration Server Administration Server ID Sun Java System Web Server CA Dynamic Host Configuration Protocol Internet IP MD5 Domain Name System IP 198.93.93.10 www.sun.com DNS DNS DNS CNAME www. yourdomain.domain realthing. yourdomain.domain Internet 230 Sun Java SystemWeb Server 7.0 2006 10
inittab (UNIX) file extension index.html html file type firewall flexible log format FORTEZZA FTP GIF hard restart home page hostname HTML HTTP HTTP-NG HTTPD HTTPS imagemap inittab (UNIX).gif.html File Transfer Protocol Internet Graphics Interchange Format CompuServe GIF BMP TIFF GIF UNIX Microsoft Windows Apple Macintosh GIF machine.domain.dom IP www.sun.com com sun www Hypertext Markup Language HTML Netscape Navigator HyperText Transfer Protocol HTTP HTTP HTTP HTTP (Secure Sockets Layer, SSL) Imagemap "imagemap" CGI HTTPD imagemap UNIX /etc/inittab UNIX 231
intelligent agent intelligent agent IP address IP ISDN ISINDEX ISMAP ISP Java Java Servlet JavaScript JavaServer Pages last-modified header LDAP database LDAP listen socket magnus.conf MD5 MD5 signature MD5 MIB HTTP NNTP SMTP FTP Internet Protocol address Internet Internet 198.93.93.10 Integrated Services Digital Network HTML <ISINDEX> ISMAP HTML IMG SRC imagemap Internet Service Provider Internet Internet Sun Microsystems Java Servlet Java Servlet Java Web Web Internet JavaServer Pages (JSP) JSP Java Web Web HTTP IP Web RSA Data Security MD5 MD5 Management Information Base 232 Sun Java SystemWeb Server 7.0 2006 10
RAM MIME mime.types modutil MTA Multi-Purpose Internet Mail Extensions Internet MIME Multi-purpose Internet Mail Extension Internet MIME.html HTML.gif GIF PKCS#11 Message Transfer Agent MTA network management station, NMS SNMP Web NMS NIS (UNIX) NNTP obj.conf password file (UNIX) pk12util private key protocol public information directories (UNIX) public key Quality of Service RAM Network Information Service UNIX Network News Transfer Protocol Sun Java System Web Server UNIX UNIX ID /etc/passwd PKCS#11 UNIX Random access memory 233
rc.2.d (UNIX) rc.2.d (UNIX) redirection resource RFC root (UNIX) server daemon Server Plug-in API API server root simple index SNMP SOCKS soft restart SSL SSL authentication SSL stop word strftime UNIX /etc/rc.2.d URL (URL) Request For Comments Internet UNIX root root / Sun Java System Web Server HTTP NSAPI Simple Network Management Protocol HUP 1 Secure Sockets Layer HTTPS HTTP LDAP the a an and strftime 234 Sun Java SystemWeb Server 7.0 2006 10
virtual server class Sun Java System Web Server Administration Console Sun Java System Web Server superuser (UNIX) Sym-links (UNIX) TCP/IP telnet timeout TLS top (UNIX) top-level domain authority uid (UNIX) URI URL Java Sun Java System Web Server Sun Java System Web Server Sun Java System UNIX root (symbolic link) UNIX Transmission Control Protocol/Internet Protocol /Internet Internet Secure Sockets Layer HTTPS HTTP UNIX.com.edu /.us.jp.au.fi UNIX Uniform Resource Identifier URL URL URL URL Uniform Resource Locator URL URL protocol://machine:port/document http://www.sun.com/index.html URL URL database repair URL URL mapping URL virtual server class URL /mydocs/index.html usr/sun/servers/docs/index.html obj.conf 235
virtual server virtual server IP Web Application Archive, WAR Web web application Web Windows CGI (Windows) Web Web Servlet JavaServer Pages HTML Web Web WAR Windows Visual Basic CGI 236 Sun Java SystemWeb Server 7.0 2006 10
A ACL,, 92 ACL,, 93 ACLCacheLifetime, 93 ACLUserCacheSize, 93 Administration Server URL, 27 applet, 26 ansi_x3.4-1968, 123 ansi_x3.4-1986, 123 ascii, 123 C CA, 73, 76 certmap.conf, 91 CGI, 122 shell, 121-122,, 118, 117, 119, 121 CGIStub, CGI, 117 CGIStubIdleTimeout, 117 COPY, 139 cp367.0, 123 cp819, 123 CRL Certificate Revocation List,, 81 current.zip, 32 D DELETE, 98 digestauth, 92 DigestStaleTimeout, 92 Directory Server, ldapmodify, 105 DNS,, 93 G GET, 98 GIF,, 231 H HEAD, 98.htaccess,, 98 HTML, 231,, 126 HTTP,, 231 http_head, 98 HTTPD, 231 HTTPS,, 231 237
I ibm367.0, 123 ibm819, 123 INDEX, 98 inittab,, 231 IP, 232, 88 iso-2022-jp, 123 iso_646.irv, 1991, 123 iso-8859-1, 123 iso_8859-1, 123 1987.0, 123 iso-ir-100, 123 iso-ir-6, 123 iso646-us, 123 J Java EE,, 156 JDBC, JDBC API, 157 JSP, 186 L latin1, 123 LDAP, 101, 90, 229 ldapmodify, Directory Server, 105 LDIF,, 103, 103 LOCK, 139 membercertdescriptions, 107 memberurl, 107 memberurls, 107 MIME charset, 123 octet-stream, 121 MIME,, 233 MIME,, 112-113 MinCGIStub, 117 MKCOL, 139 MKDIR, 98 MOVE, 98, 139 MTA,, 233 N NIS,, 233 NNTP,, 233 nonce, 92 O obj.conf,, 90 octet-stream, 121 P PathCheck, 98 POST, 98 PROPFIND, 139 PROPPATCH, 139 PUT, 98 M magnus.conf ACLCacheLifetime, 93, 92 MaxCGIStub, 117 MD5,, 232 R RAM,, 233 rc.2.d, 234 RMDIR, 98 root,, 234 238 Sun Java SystemWeb Server 7.0 2006 10
S shell CGI, 121-122 SMUX, 192 SNMP, 189, 190, 191, 192, 189, 191 SOCKS,, 234 SSL, 234, 77, 91 SSL 2, 85 SSL 3, 84, 85 SSL2, 84 SSL3, 84 T telnet, 235 TLS, 85 TLS, 84 TLS, 84 Web (web application archive, WAR),, 236 Web,, 94 WebDAV Sun Java System Web Server, 146 URI, 136 URI, 137, 138 COPY, 139 LOCK, 139 MKCOL, 139 MOVE, 139 PROPFIND, 139 PROPPATCH, 139 UNLOCK, 139, 137 URI, 137 WebDAV, 135, 137 HTTP, 138 HTTP, 138 URI, 136 U uid,, 235 uniquemembers, 107 UNLOCK, 139 URI,, 235 URL, 235 Administration Server, 27,, 235 URL,, 115 us, 123 us-ascii, 123 W Web,, 236 X x-euc-jp, 123 x-mac-roman, 123 x-sjis, 123 (Secure Sockets Layer, SSL),, 84 (Distinguished Name, DN),, 102 239
,, 235, 201 URI, 137, 130 CGI, 118,, 122, URL Administration Server, 27,, 230, 98 Web,, 94, 98, 98, 98, 98, 98 SSL, 90, 87, 88-89, 88 IP, 88 (access control list, ACL), 87 (access control entry, ACE), 87, 198, 235, 230, 98,LDAP,, 201,, 234,, 234,, 74,, 125,, 125-126 240 Sun Java SystemWeb Server 7.0 2006 10
,, 229,, 127, 85,, 113 (Unix),, 113-115 (Common Gateway Interface, CGI),, 117, 73,, 20,, 198,LDAP, 201, memberurl, 107,, 230,, 84,, 84,, 202-203, 108, 107,, 121,, 74,, 91,,, 87, 98,, 198, 233 241
, 115,, 84, 98 URI, 137 Vary, 129, 129-130, 128, 128-130, 129, 128-129, 129, 154,, 35, (Distinguished Name, DN), 102, Unix, 26, LDIF, 103 (LDAP),, 101,, 84 /, 92,, 198,, 125 JSP, 186 URI, 174, 181, 179-180, 180, 173-174, 182, 174, 179, 185, 182-183, 184-185, 181-186 242 Sun Java SystemWeb Server 7.0 2006 10
DN, ID, 105 Sun Java System Web Server, 146, 145, 145,, 124 CGI, 119, 231,, 231, 125-126, 234, 98,, 230, 98, 74,, 230 (Network Management Station, NMS), 189, 191,, 111, 114, 111, MIME,, 112-113,,, 67, 65,, 113-115, 65,, 66,, 66,, 66-67 SSL, 91, 91, 89-93, 93,, SSL, /IP,, 90,,,, 74, /, 90, 93 243
,, 91, /IP, 93, 85, 103,, 125, 73, 76,,, 91 (Certificate Revocation List, CRL),, 81,, 77, 73, 76, 88, 89-93 /, 90, 93, LDAP, 101, ACL, 93,, 113 (Unix),, 113-115,,, 202-203,, 230, 230, 98, magnus.conf, 92, 234 /IP, 93, 231, 88, 93,, 111 URI, 136 (Transport Layer Security, TLS),, 84, 91 ACL, 92,, 234 244 Sun Java SystemWeb Server 7.0 2006 10
SNMP, 189, 191 iso_8859-1, 123 us-ascii, 123, 123-124, 182-183, 185, 184-185 LDAP, 107, 88, 89-93,, 90,, 108, 107, 133, 85, 133 245
246