我有以下虚拟主机配置
<VirtualHost petyo.net:443>
ServerAdmin m@petyo.net
DocumentRoot /home/ren/public/
<Directory "/home/ren/pubic/*">
Options +ExecCGI Indexes
AllowOverride All
Order allow,deny
allow from all
AddHandler cgi-script .cgi .py .pl
</Directory>
ErrorLog /var/log/apache2/petyo.net-ssl_errors.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog /var/log/apache2/petyo.net_access.log combined
# SSL Engine Switch:
# Enable/Disable SSL for this virtual host.
SSLEngine on
.....
即启用 ssl 的网站,但它不运行 cgi 脚本。
虽然我有完全相同的配置(没有 ssl 的东西),它运行 cgi 脚本完全没有问题。没有启用其他虚拟主机!