700字范文,内容丰富有趣,生活中的好帮手!
700字范文 > IIS apache tomcat服务器虚拟主机配置

IIS apache tomcat服务器虚拟主机配置

时间:2024-07-13 20:21:14

相关推荐

IIS apache tomcat服务器虚拟主机配置

首先我们有一个域名 ;(注,两个一级域名不相同也可以)有两个二级域名 和 有一台主机 ,现在假设访问主机电脑IIS服务器虚拟主机配置方法1、在IIS中添加网站其中 绑定一栏中的主机名为 ,在分配好网站的文件路径2、添加isapi筛选器其中可执行文件位置为php的安装位置3、处理程序映射->添加脚本映射4、最后重启IIS服务器,就可以用域名访问了再添加站点,同样的步骤。tomcat服务器虚拟主机配置方法在Engine节点下增加host节点<Host name="" appBase="webapps/priject" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /></Host><Host name= "" appBase="webapps/movie" unpackWARs="true" autoDeploy="true"> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- Access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /></Host>注在webapps目录下的movie要创建ROOT目录才可以,而且ROOT必须大写。在ROOT目录先放置jsp代码。tomcat会根据主机名称自动寻找相应的目录去访问apache服务器虚拟主机配置方法打开httpd.conf文件去掉LoadModule vhost_alias_module modules/mod_vhost_alias.so这句前面的#号和Include conf/extra/httpd-vhosts.conf这句前面的#号Include conf/extra/httpd-vhosts.conf这句在httpd.conf文件底部然后打开Apache2.2\conf\extra下的httpd-vhosts.conf文件,加入如下代码#配置自己的虚拟主机<VirtualHost *:80> #网站目录,如果在www目录下的php目录,下面 #就填写F:/www/php DocumentRoot "D:/www/网站目录" #域名 ServerName #这里配置欢迎首页面 DirectoryIndex index.html index.htm index.php <Directory /> Options FollowSymLinks #不允许别人修改我们的页面 AllowOverride None #设置访问权限 order allow,deny Allow from all </Directory> </VirtualHost><VirtualHost *:80> #网站目录,如果在www目录下的php目录,下面 #就填写F:/www/php DocumentRoot "D:/www/网站目录" #域名 ServerName #这里配置欢迎首页面 DirectoryIndex index.html index.htm index.php <Directory /> Options FollowSymLinks #不允许别人修改我们的页面 AllowOverride None #设置访问权限 order allow,deny Allow from all </Directory> </VirtualHost>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。