精彩推荐

用帝国cms自带的一键安装包运行环境phpmysql服务器组件绑定域名

616人阅读  0人回复   查看全部 | 阅读模式 | 复制链接   

1

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
发表于 2015-3-28 22:30:36
分享到:
安装好php+mysql服务器一键安装包  找到这个 C:PC_webserverapacheconf httpd.conf   打开文件

下面加


NameVirtualHost *:80  

<VirtualHost *:80>  

ServerName xuyi.biz

DocumentRoot c:/PC_webserver/wwwroot  

</VirtualHost>  

<VirtualHost *:80>  


ServerName www.xuyi.biz

DocumentRoot c:/PC_webserver/wwwroot  

</VirtualHost>  

然后也是在这个文件下搜索

<Directory />  

Options FollowSymLinks  

AllowOverride None  

Order deny,allow  

Deny from all  

</Directory>

改成

<Directory />

Options Indexes FollowSymLinks   

AllowOverride None

</Directory>

即可

搜索

<IfModule dir_module>

DirectoryIndex index.html

</IfModule>

改成




<IfModule dir_module>

DirectoryIndex index.html  index.php

</IfModule>




最后找到C:WINDOWSsystem32driversetchosts

最下面加上




120.24.66.120       xuyi.biz
120.24.66.120       www.xuyi.biz
就可以允许帝国cms了

回复

使用道具 举报

快速回复 返回顶部 返回列表