Apache配置虚拟目录+Zend Studio访问】的更多相关文章

1 概述 Apache配置虚拟目录,然后可以通过Zend Studio的工程去访问,只需要修改Apache的httpd.conf文件. 2 修改httpd.conf 找到Apache安装目录下的httpd.conf,在末尾加上: <IfModule dir_module> DirectoryIndex index.html intex.htm index.php Alias /alias path <Directory path> Options All AllowOverride…
apache配置虚拟目录: 打开并创建虚拟目录的步骤如下: # Virtual hosts # Include conf/extra/httpd-vhosts.conf 去掉conf/http.conf文件中: #Include conf/extra/httpd-vhosts.conf 前面的"#" (实际上是去掉注释) , 若果想要配置多个虚拟目录的话,在httpd.conf中搜索“ NameVirtualHost ” ,如果没有的话加上一句:NameVirtualHost *:80…
呃,相当古老的话题了,不过网上的资料实在是太坑爹,无奈只能自己动手做个备忘了...这里不提虚拟目录和主机头的区别了,不懂得童鞋去面壁思过吧 多个虚拟目录 首先把Apache安装到D:\Program Files\Apache2.2目录下,端口号设置为8080,安装完成后默认的网站根目录为D:\Program Files\Apache2.2\htdocs,通常我们可以在htdocs下面建立个文件夹MySite,然后在浏览器输入:http://localhost:8080/MySite 这样就可以看…
我用的是xmapp lite2016的集成包,配置虚拟目录教程如下: 找到httpd-vhosts.conf这个文件,这个文件一般是在xampp\apache\conf\extra这个路径下面,找不到可以搜索下. 你会看到类似的界面: # # Use name-based virtual hosting. # ##NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a Vi…
windows下面是这样简单设置 1 Apache虚拟目录: 针对某一目录可以这么设置: Alias /aidd2008 "D:/php/web/aidd2008" <Directory "D:/php/web/aidd2008"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all DirectoryIndex default.php </Di…
apache在httpd-vhosts.conf中 配置二级域名或者泛域名: <VirtualHost *:80>    ServerAdmin 846606478@qq.com    DocumentRoot "D:/workspace/php_core"    ServerName zp.com    ServerAlias bbs.test.com blog.test.com  #*.test.com 用*表示泛域名 #设置多个二级域名 bbs.test.com bl…
#注释掉apache默认的网站目录地址 #DocumentRoot "c:/Rrogram Files/Apache/htdocs" #配置一个虚拟目录 <ifModule dir_module> #设置主页 Direcotory index.html my.html #虚拟目录地址及名字 Alias /myhome "D:/myhome" #允许访问权限 <Direcotory d:/myhome> #读取顺序 先允许后拒绝  允许所有人拒…
今天为了做项目,在Apache中配置了项目域名,成功访问.但是忽然发现要访问localhost突然出现The requested URL / was not found on this server. 出现这种情况在网上查了下是由于开启 httpd.conf 文件中 Include conf/extra/httpd-vhosts.conf 导致的,只要把它注释掉就可以了,我试了一下确实可以,但是我的虚拟域名还得要啊. 于是就想给 localhost 配置虚拟域名,但是配完之后也没有出现预期的效果…
#虚拟目录配置 <IfModule dir_module> DirectoryIndex index.html index.htm index.php Alias /htdocs "E:/htdocs" <Directory E:/htdocs> Order allow,deny Allow from all </Directory> </IfModule> #然后再注销DocumentRoot…
解决方法:将localhost设为虚拟域名 重要的是要注释掉httpd.conf文件的ServerName localhost:80…