close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Jan 19, 2009, 5:53:57 PM (17 years ago)
- Author:
-
waue
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v8
|
v9
|
|
| 59 | 59 | * [http://www.l-penguin.idv.tw/article/httpd-jk2-tomcat.htm 中文詳細教學] |
| 60 | 60 | |
| | 61 | |
| | 62 | == 加入虛擬主機 == |
| | 63 | 用一台主機的tomcat管理多個domain name的網頁,可以使用虛擬主機的方法。 |
| | 64 | {{{ |
| | 65 | <Server port="8005" shutdown="SHUTDOWN" debug="0"> |
| | 66 | <Service name="Tomcat-Standalone"> |
| | 67 | <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" |
| | 68 | port="8080" minProcessors="5" maxProcessors="75" |
| | 69 | enableLookups="true" redirectPort="8443"/> |
| | 70 | <Connector className="org.apache.coyote.tomcat4.CoyoteConnector" |
| | 71 | port="8443" minProcessors="5" maxProcessors="75" |
| | 72 | acceptCount="10" debug="0" scheme="https" secure="true"/> |
| | 73 | <Factory className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory" |
| | 74 | clientAuth="false" protocol="TLS" /> |
| | 75 | </Connector> |
| | 76 | <Engine name="Standalone" defaultHost="localhost" debug="0"> |
| | 77 | <!--此為預設主機--> |
| | 78 | <Host name="localhost" debug="0" appBase="webapps" |
| | 79 | unpackWARs="true" autoDeploy="true"> |
| | 80 | <Context path="" docBase="ROOT" debug="0"/> |
| | 81 | <Context path="/orders" docBase="/home/ian/orders" debug="0" reloadable="true" crossContext="true"> |
| | 82 | </Context> |
| | 83 | </Host> |
| | 84 | <!--此為第一個「虛擬主機」www.example.com --> |
| | 85 | <Host name="www.example.com" appBase="/home/example/webapp"> |
| | 86 | <Context path="" docBase="."/> |
| | 87 | </Host> |
| | 88 | </Engine> |
| | 89 | </Service> |
| | 90 | </Server> |
| | 91 | }}} |