Tomcat和Apache服务器访问本地路径的项目配置

Apache http Server:httpd.conf

#部署本地的项目
Alias /MyThinkPHP d:/sid/workspace_php/MyThinkPHP
#设置部署项目的文件路径,并修改权限
<Directory "d:/sid/workspace_php/MyThinkPHP">
    Options Indexes FollowSymLinks Multiviews
    AllowOverride All
    Order Allow,Deny
    Allow from all
</Directory>

Tomcat:server.xml

      <Host appBase="webapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">	 
      	<Context path="/wenice_console" docBase="D:\sid\workspace_eclipse_web\wenice-console\target\wenice-console-0.0.1-SNAPSHOT" 
debug="0" reloadable="true" crossContext="true"></Context>
      	<Context path="/wenice_security" docBase="D:\sid\workspace_eclipse_web\wenice-security\target\wenice-security-0.0.1-SNAPSHOT" 
debug="0" reloadable="true" crossContext="true"></Context>	 	 
      </Host>


你可能感兴趣的:(apache)