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
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/\
by joemuller » Tue Apr 28, 2020 7:29 pm
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
I'm a proud employee of Sonic.net! :-)
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 13 users online :: 0 registered, 0 hidden and 13 guests (based on users active over the past 5 minutes)
Most users ever online was 2877 on Wed Sep 25, 2024 9:53 pm

Users browsing this forum: No registered users and 13 guests