Request: Change the cgi-bin directory?

Web hosting discussion, programming, and shared and dedicated servers.
3 posts Page 1 of 1
by chongo » Fri Apr 24, 2020 9:58 pm

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/\
by joemuller » Tue Apr 28, 2020 7:29 pm

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
I'm a proud employee of! :-)
by chongo » Mon May 04, 2020 7:49 pm
Thank you for this information.
3 posts Page 1 of 1

Who is online

In total there are 8 users online :: 0 registered, 0 hidden and 8 guests (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 8 guests