最終更新:2008.01.03
httpd.conf
LoadModule authz_host_module modules/authz_ho.dll LoadModule dir_module modules/dir.dll LoadModule mime_module modules/mime.dll LoadModule php5_module modules/modphp5.dll LoadModule proxy_module modules/proxy.dll LoadModule proxy_ajp_module modules/proxy_aj.dll Listen 80 ServerRoot "" DocumentRoot "" ServerAdmin ServerName DefaultType text/plain <IfModule dir_module> DirectoryIndex index.php index.html index.htm </IfModule> <IfModule mime_module> TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php #AddType text/html .shtml #AddOutputFilter INCLUDES .shtml </IfModule> <Directory ""> Options None AllowOverride None Order allow,deny Allow from all </Directory> <Proxy *> Order Deny,Allow Allow from all </Proxy> <Location /> ProxyPass ajp://localhost:8009/ </Location>
server.xml
<Server port="8005" shutdown="SHUTDOWN"> <GlobalNamingResources> <!-- Used by Manager webapp --> <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /> </GlobalNamingResources> <Service name="Catalina"> <Connector port="8080" /> <!-- This is here for compatibility only, not required --> <Connector port="8009" protocol="AJP/1.3" /> <Engine name="Catalina" defaultHost="localhost"> <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /> <Host name="localhost" appBase="" /> </Engine> </Service> </Server>