从 WordPress 登录用户发出的 Ajax 请求正常工作。但是未登录的用户 ajax 请求失败,403 被禁止。我们尝试了以下解决方案: https ://wordpress.org/support/topic/admin-ajax-php-403-forbidden-2/ https://wordpress.stackexchange.com/questions/345194/403-forbidden-you-没有权限访问-wp-admin-admin-ajax-php-on
我们的站点连接到 Azure AD。重定向到我们的服务器。.config 文件
ServerAdmin ****
DocumentRoot /var/www/html
ServerName blog.xxxx.com
ServerAlias blog.xxx.com
Redirect permanent / https://domain/blogs
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin ***
ServerName blog.xxx.com
DocumentRoot /var/www/html
SSLEngine on
SSLCertificateFile certificate.crt
SSLCertificateKeyFile privatekey.key
<Directory /var/www/html/>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>```
眼眸繁星
梦里花落0921