Apache 2.4.27 on Oracle Linux 7 x64.
I can make proper calls to https://example.com/cgi-bin/helloworld.cgi
.
The simple Perl script returns "Hello, world via cgi-bin!"
I can make proper calls to static content in https://example.com/helloworld.html
The simple HTML file returns "Hello, world via html!"
I can use RewriteRule
as:
RewriteRule "^/test" "/helloworld.html"
I see "Hello, world via html!"
However, I cannot use RewriteRule as:
RewriteRule "^/test" "/cgi-bin/helloworld.cgi"
This results in a 400 Bad Request. How is it that I can call it directly though?
How do I get my RewriteRule
to work when going to /cgi-bin
? That seems to be my problem. I tried adding [L]
and [L,PT]
but no help.