apache 已经加载模块,但是不能解析出开发的rewrite模块功能
例如 这样配置虚拟域名上正确的DocumentRoot与Directory是有顺序的
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/usr/local/apache/htdocs/api"
ServerName api.test.licheepay.com
<Directory "/usr/local/apache/htdocs/api">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog "|/usr/local/sbin/cronolog /usr/local/apache/logs/api/%Y-%m-%d/ErrorLog_%H.log"
CustomLog "|/usr/local/sbin/cronolog /usr/local/apache/logs/api/%Y-%m-%d/CustomLog_%H.log" common
#ErrorLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/api/ErrorLog.%Y-%m-%d-%H_%M_%S.log 10M +480"
#CustomLog "|/usr/local/apache/bin/rotatelogs /usr/local/apache/logs/api/CustomLog.%Y-%m-%d-%H_%M_%S.log 20M +480" common
</VirtualHost>
如果是配置了虚拟域名,要在虚拟服务器上加上下面这段,具体可以参考上面 的配置就可以,还要注意的是http.conf是不是对httpd-vhost.conf这个文件包含进来了?需要检查一下
<Directory "/usr/local/apache/htdocs/api">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>