在Apache的配置里,能不能配置多个和HTDOCS目录一样的目录? 其实"d:\apache group\apache\htdocs"只是Apache默认的Web服务主目录,你可以更改配置中的documentroot项改变此主目录,任何文件夹都可以。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 #在httpd.conf中加入Alias /www "d:/www"<Directory "d:/www">#最好不要整盘共享,假设共享d:\www ;同样,哪个盘都行。 AllowOverride All Options All</Directory> 关键在于Alias /www "d:/www"如果写成Alias /www/ "d:/www/"也可以.只是访问的方式不同: http://localhost/www/index.htm ~~~~~~~~~而 Alias /www "d:/www"用 http://localhost/www 访问就行了,当然你需有默认文档如 index.htm 创建虚拟目录~~看看apache默认配置中已经配好的几个虚拟目录吧<IfModule mod_alias.c> Alias /icons/ "D:/Apache Group/Apache/icons/" <Directory "D:/Apache Group/Apache/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Alias /manual/ "D:/Apache Group/Apache/htdocs/manual/" <Directory "D:/Apache Group/Apache/htdocs/manual"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ScriptAlias /cgi-bin/ "D:/Apache Group/Apache/cgi-bin/" <Directory "D:/Apache Group/Apache/cgi-bin"> AllowOverride None Options ExecCGI Indexes Order allow,deny Allow from all </Directory></IfModule>应该就很明白了~~自己改试试看~~:) 可以开端口,80就是WBE默认的192.168.0.50Listen 80Listen 8080Listen 100 <VirtualHost 192.168.0.50:100> DocumentRoot d:/indexDirectoryIndex index.php index.shtml index.cgi </VirtualHost> <VirtualHost 192.168.0.50:8080> DocumentRoot d:/oratestDirectoryIndex index.html</VirtualHost> 自已做好了一个表单.想点击提交后,自动将表单发到指定邮箱.要怎么弄? 如何用sql实现两个表字段的值? 如何检测用户是否使用代理服务器? PHP Session生成的文件在服务器上何时被删除? 搜索 来路 获取关键词 谢谢各位帮我回答了好多问题 mysql查询问题,like的反向使用? 珠海天互科技这家公司怎样??????? 请教如何配置和使用myodbc(windows2000)? 如何判断数据类型?比如整型呀,实型呀.............. 失败啊~请教大家一个问题关于:*.inc文件的运行~ PHP计数器中的问题!紧急!
Alias /www "d:/www"
<Directory "d:/www">
#最好不要整盘共享,假设共享d:\www ;同样,哪个盘都行。
AllowOverride All
Options All
</Directory>
Alias /www "d:/www"如果写成
Alias /www/ "d:/www/"
也可以.
只是访问的方式不同: http://localhost/www/index.htm
~~~~~~~~~
而 Alias /www "d:/www"
用 http://localhost/www 访问就行了,当然你需有默认文档如 index.htm
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory> Alias /manual/ "D:/Apache Group/Apache/htdocs/manual/" <Directory "D:/Apache Group/Apache/htdocs/manual">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory> ScriptAlias /cgi-bin/ "D:/Apache Group/Apache/cgi-bin/" <Directory "D:/Apache Group/Apache/cgi-bin">
AllowOverride None
Options ExecCGI Indexes
Order allow,deny
Allow from all
</Directory></IfModule>应该就很明白了~~自己改试试看~~:)
Listen 80
Listen 8080
Listen 100 <VirtualHost 192.168.0.50:100>
DocumentRoot d:/index
DirectoryIndex index.php index.shtml index.cgi
</VirtualHost> <VirtualHost 192.168.0.50:8080>
DocumentRoot d:/oratest
DirectoryIndex index.html
</VirtualHost>