安裝好php+mysql服務器一鍵安裝包 找到這個 C:PC_webserverapacheconf httpd.conf 打開文件
下面加
NameVirtualHost *:80
<VirtualHost *:80>
ServerName daixiao360.cn
DocumentRoot c:/PC_webserver/wwwroot
</VirtualHost>
<VirtualHost *:80>
ServerName www.daixiao360.cn
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 daixiao360.cn
120.24.66.120 www.daixiao360.cn
就可以允許帝國cms了
此文由 網站目錄_網站網址收錄與提交入口 編輯,未經允許不得轉載!: