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

Problems with the Windows version of XAMPP, questions, comments, and anything related.

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

Postby thumbpiano » 17. April 2024 03:26

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.
thumbpiano
 
Posts: 2
Joined: 09. April 2024 14:41
XAMPP version: 3.3.0
Operating System: Windows

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

Postby Nobbie » 17. April 2024 15:27

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).
Nobbie
 
Posts: 13176
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 124 guests