1

我对wordpress.

我使用wordpress 4.5.3插件json-api 1.1.1并安装wordpressubuntu 16.04,我使用apache2php7

当我json-apiwordpress. 当我点击链接get_recent_posts它返回

The requested URL /api/get_recent_posts/ was not found on this server.
Apache/2.4.18 (Ubuntu) Server at 172.16.1.38 Port 80

这是文件配置虚拟主机:

<VirtualHost *:80>
  #ServerName www.example.com
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/wordpress

  <Directory />
    Options FollowSymLinks
    AllowOverride None
  </Directory>
  <Directory /var/www/wordpress>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
  </Directory>
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

不知道是什么问题?希望大家能给我解释一下,为什么它不起作用?

4

0 回答 0