Page 1 of 1

Request: Change the cgi-bin directory?

Posted: Fri Apr 24, 2020 9:58 pm
by chongo

My sonic account now hosts two web servers, and
I was able to change the document root via: ... index.php#

However I did not see where I could also change the cgi-bin location.

Currently, the cgi-bin is located under:


I would like to cgi-bin to be located under:


so that later on, I can add /cgi-bin/chongo/ CGI's for

I have already copied the cgi-bin programs under /cgi-bin/chongo/,
so all someone needs to do is to change the web server configuration.

OR, if there is a way for me to do it myself, please advise.

Thank you.

chongo (Landon Curt Noll - sonic id: chongo) /\oo/\

Re: Request: Change the cgi-bin directory?

Posted: Tue Apr 28, 2020 7:29 pm
by joemuller

The main CGI-bin directory doesn't change, though you can make any directory a cgi-bin by creating an .htaccess in it with the following:

Code: Select all

Options +ExecCGI

There's nothing stopping you from making a 'cgi' directory for each site and using that instead - just use a relative URL like this to call:

Code: Select all


The special cgi-bin directory (symlinked as 'public_cgi' from your home folder) is just kept around for backward-compatibility.

-- Joe M
Sonic System Operations

Re: Request: Change the cgi-bin directory?

Posted: Mon May 04, 2020 7:49 pm
by chongo
Thank you for this information.