记得打开vhost,记得哦!要不然后果自负吧。记得打开vhost。
一,apache:
<VirtualHost *:80> DocumentRoot "本地路径" ServerName 域名 ErrorLog "logs/日志名称-error.log" CustomLog "logs/日志名称-access.log" common </VirtualHost> <Directory "D:/wwwroot/cms"> Options Indexes FollowSymLinks AllowOverride all Order Allow,Deny Allow from all </Directory>