A driver for traditional CGI #1150
knut-forkalsrud
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I recently moved my stuff to a new laptop I didn't want to install Apache. Valet covers my development environment needs, except for the occasional CGI script. It turns out Nginx doesn't have builtin (traditional) CGI support, only FastCGI. I'm not very proficient in PHP, but I took a stab at implementing a custom driver that would provide basic CGI support. What I ended up with is most likely not great, but I'll share it here. It may even make sense as a built-in feature for Valet.
First my custom driver in
~/.config/valet/Drivers/CgiValetDriver.php
:It delegates to my
cgi.php
in the same directory:I tried my best to search for existing solutions, without much luck. Comments/criticism welcome!
Beta Was this translation helpful? Give feedback.
All reactions