Page 1 of 1

Request: Change the cgi-bin directory?

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

My sonic account now hosts two web servers, http://www.isthe.com and http://www.paulnoll.com.
I was able to change the document root via:

https://members.sonic.net/websites/host ... index.php#

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

Currently, the http://www.isthe.com cgi-bin is located under:

/cgi-bin/chongo

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

/cgi-bin/chongo/isthe.com

so that later on, I can add /cgi-bin/chongo/paulnoll.com CGI's for http://www.paulnoll.com.

I have already copied the cgi-bin programs under /cgi-bin/chongo/isthe.com,
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
Hi,

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

cgi/example.cgi


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.