Does "CGI Access" for a site not include "ScriptAlias /cgi-bin/ /home/<USER>/public_html/cgi-bin/" anymore in httpd.conf ?
Hello,
we have a client that needs
"ScriptAlias /cgi-bin/ /home//public_html/cgi-bin/"
in httpd.conf
It seems to me that "in the past" ticking the "CGI Access" in "Modify an Account" had as consequence of adding this in the VirtualHost / ServerName section of the site in httpd.conf.
[CODE=apacheconf]
ScriptAlias /cgi-bin/ /home//public_html/cgi-bin/
This seems no not to be so anymore? To solve this I have added it now in /etc/apache2/conf.d/userdata/ssl/2_4///addcgibin.conf and /etc/apache2/conf.d/userdata/std/2_4///addcgibin.conf and this solves the problem. But my question is if ticking the "CGI Access" in "Modify an Account" does not do this anymore ? Thanks
This seems no not to be so anymore? To solve this I have added it now in /etc/apache2/conf.d/userdata/ssl/2_4///addcgibin.conf and /etc/apache2/conf.d/userdata/std/2_4///addcgibin.conf and this solves the problem. But my question is if ticking the "CGI Access" in "Modify an Account" does not do this anymore ? Thanks
-
Hey there! I created a version 100 server and the created a cPanel account without ticking the CGI box. This is what the vhost looked like: ServerName cptest.com ServerAlias mail.cptest.com www.cptest.com DocumentRoot /home/cptest/public_html ServerAdmin webmaster@cptest.com UseCanonicalName Off Options -ExecCGI -Includes RemoveHandler cgi-script .cgi .pl .plx .ppl .perl
I then created a second account with CGI checked, which is the default setting, and that vhost looks like this:ServerName cptest2.com ServerAlias mail.cptest2.com www.cptest2.com DocumentRoot /home/cptest2/public_html ServerAdmin webmaster@cptest2.com UseCanonicalName Off
so on my end this seems to be working as intended as the "ExecCGI" value is not being excluded on the cptest2 account. I do also see the ScriptAlias line for the cptest2 user:ScriptAlias /cgi-bin/ /home/cptest2/public_html/cgi-bin/
while that is missing from cptest. Can you let me know what cPanel version you're running where you're seeing this behavior?0
Please sign in to leave a comment.
Comments
2 comments