Why is cgi-bin in the apache root directory?
Is there any good reason why cgi-bin is in the domains apache root?
Is it possible to move this to somewhere more appropriate like [USER_HOME]/cgi-bin ?
-
I am aware that i can disable it, but if a user requests it then i have to enable it which in turn leaves him with an exposed cgi-bin in the apache root and me with possible problems when a malicious third party accepts this invitation. I have not seen any sysadm worth it's salt doing this since 1990. Is there a way for me to move this to a different directory outside the apache root? 0 -
Hello, I double-checked with our development on this to ensure I wasn't missing something. Here's what they said: There's no mechanism to customize the location of where a domain's default /cgi-bin/
goes. One workaround might be to do the following:- Disable
/cgi-bin/
in the interface - When a customer wants it, do the following:
- Create two Include files (e.g., at
/etc/apache2/conf.d/userdata/[ssl|std]/2_4//DOMAIN/custom_cgi-bin.conf
) with theServerAlias
you want - Rebuild the apache configuration (
/scripts/rebuildhttpdconf
) - Restart Apache (
/scripts/restartsrv_httpd
)
- Create two Include files (e.g., at
0 - Disable
-
Thank you for following up. I appreciate it. This looks like a solution that i can live with. I will give this a try and if i run into problems or have more questions i post here 0
Please sign in to leave a comment.
Comments
4 comments