我想在虚拟主机上运行 nodeJs 服务器。如果我不使用 https,一切都会正常。但是当我使用 https 时,我收到禁止错误。我该如何解决?
<IfModule mod_ssl.c>
<VirtualHost api.*****.com:443>
ServerName api.*****.com
DocumentRoot /home/***/Desktop/api.****.com/
<Directory /home/***/Desktop/api.****.com/>
Options FollowSymLinks
AllowOverride All
RewriteEngine On
Order allow,deny
Allow from all
Require all granted
</Directory>
SSLEngine on
SSLCertificateFile /etc/ssl/certs/www_api.**.com.crt
SSLCertificateKeyFile /etc/ssl/certs/www_api.**_com_key
</VirtualHost>
</IfModule>
<VirtualHost *:80>
ServerName api.****.com.tr
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
</VirtualHost>