标签:des com http blog style class img log ext c width
Php文件放到:
D:\web\Apache2.2\htdocs
修改
D:\web\PHP\php.ini
拓展
修改
D:\web\Apache2.2\conf\httpd.conf 支持php ,配置本机模拟域名
</IfModule>后添加
配置支持php
LoadModule php5_module
"D:/web/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
配置 本机模拟域名
一:
NameVirtualHost *:80
<VirtualHost
*:80>
ServerName www.metinfo.com
DocumentRoot
"D:/web/Apache2.2/htdocs/MetInfo "
<Directory
"D:/web/Apache2.2/htdocs/MetInfo">
Options FollowSymLinks
IncludesNOEXEC Indexes
DirectoryIndex index.php index.html
index.shtml
AllowOverride None
Order Deny,Allow
Allow from all
</Directory>
</VirtualHost>
二、配置httpd.conf
# Virtual hosts
#Include
conf/extra/httpd-vhosts.conf
//取消这一行的#
需要在C:\Windows\System32\drivers\etc\hosts 添加
127.0.0.1 www.metinfo.com
重启服务器:
标签:des com http blog style class img log ext c width
原文地址:http://www.cnblogs.com/cphmvp/p/3696921.html