Page 1 of 1

How to setup a cgi-bin directory for each local site?

PostPosted: 17. April 2024 03:26
by thumbpiano
What is a simple strategy for having a cgi-bin directory for each local site in XAMPP?

EXAMPLE:
C:\xampp\htdocs\local\site1\cgi-bin\
C:\xampp\htdocs\local\site2\cgi-bin\

Currently, XAMPP uses a default directory at C:\xampp\cgi-bin. But it's not convenient when working with multiple sites. Thoughts? Thank you.

Re: How to setup a cgi-bin directory for each local site?

PostPosted: 17. April 2024 15:27
by Nobbie
VirtualHost configuration (one for each project) allows as well different DocumentRoot as different cgi-bin.

Actually, there is no need to create any cgi-bin directory at all, instead you also can execute cgi scripts in each directory using Options ExecCgi (see Apache documentation).