apache配置
1.开启servername 把#号去掉
2.添加php编译配置 AddType application/x-httpd-php .php
3.LoadModule php5_module modules/libphp5.so #这一行#号去掉 没有的话加上
4.DirectoryIndex 后面添加 index.php 让其支持自动访问index.php
注意事项 :1 开启apache
2.注意重启
mac多域名配置
documentRoot
配置的是根目录可包含很多的项目
开启vhost配置
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/data/vmall"
ServerName www.vmall.ff
ServerAlias vmall.ff
ErrorLog "/private/var/log/apache2/dummy-host.example.com-error_log"
CustomLog "/private/var/log/apache2/dummy-host.example.com-access_log" common
<Directory "/data/vmall">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order deny,allow
allow from all
</Directory>
</VirtualHost>
网友评论