For example, configuring the correct documentroot on the virtual domain name and directory is sequential
<virtualhost *:80>
ServerAdmin [email protected]
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>
If the virtual domain name is configured, to add the following paragraph on the virtual server, the specific can refer to the above configuration can be, but also note that http.conf is not httpd-vhost.conf This file included in the? Need to check
<directory "/usr/local/apache/htdocs/api" >
Options Indexes FollowSymLinks
AllowOverride All
Order Allow,deny
Allow from all
</Directory>
Apache has loaded the module, but cannot parse the developed rewrite module function