apache 虚里目录的配置 求帮忙,该如何解决

WBOY
Release: 2016-06-13 11:45:46
Original
805 people have browsed it

apache 虚里目录的配置 求帮忙
我的apache安装好后没有什么vhosts文件 ,在配置目录config文件下只有 ;配置网站虚率目录是怎么配置啊
我安装的端口是8080 
80安装的是IIS
我在apache的httpd.conf下这样配置:

    ServerAdmin [email protected]
    DocumentRoot C:/apache/vote/public
    ServerName vote.com:8080 
   
Options FollowSymlinks
AllowOverride None
Order allow,deny
Allow from all



在hosts中这样配置:127.0.0.1       vote.com:8080 
可是为什么在输入vote.com:8080/index.php 时找不到网页
 
------解决方案--------------------
在extra 目录下有个 httpd-vhosts.conf 文件,把那段放入那里面去。还有确认你在httpd.conf 里面打开了vhost。
------解决方案--------------------
找个集成环境重新安装一下吧,wamp、xampp 都可以。
------解决方案--------------------
配置虚拟空间是要在extra/httpd_vhosts.conf进行配置的 http.conf,我们的虚拟主机的配置,最好不要写在httpd.conf中,httpd.conf当然也是需要进行设置的,那就是要开启 include conf/extra/httpd-vhosts.conf这行。我的建议也是跟楼上一样,你最好还是重新安装下。

你可以看看传智播客_韩顺平_php从入门到精通.视频教程.第31讲.php开发环境的搭建和使用①.appserv套件安装。安装个套件。


------解决方案--------------------
在apache的httpd.conf下最后添加:
Listen 8800

    ServerAdmin [email protected]
    DocumentRoot C:/apache/vote/public
    ServerName vote.com


在hosts中这样配置:127.0.0.1       vote.com

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!