Exactly, preview sites isn't allowed cgi, ssi and php.
Easy fix is to allow cgi, ssi and php to all preview site, but I think this
has other issue. The virtual site isn't allowed php, but php works on
preview site url.
The work around is to write the following settings in
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php
And restart httpd.
But, if you add new virtual site with preview site, server.conf will be
I'll fix this issue to make preview site with cgi, ssi and php settings same
as an original virtual site settings.
Maurice de Laat wrote:
> When creating a virtual site on BQ, one can enable 'Preview Site
> Configuration', which basicly allows one to preview the site on the
> address http://ServerName/VsiteName
> This settings allows to view php code.
> If one puts in php scripts on the new virtual site, and access them by
> using the preview-url, the clear php code (including passwords entered in
> them) show up in a browser! Even if php is enabled on the main site.
> Does anybody knows a way to close this hole?
> Thank you