Hello,
I am using a CGI on our Apache server to process a custom scripting language we use on virtually all of our web pages. This is what I've used to configure that CGI:
FastCgiExternalServer /Library/Tenon/WebServer/WebSites/.*(?<!\.(?:txt|ico|jpg|gif|pdf|htm))$ -re -host localhost:9008 -pass-header Authorization
The above statement in our httpd.conf file ensures all pages regardless of suffix get sent to the CGI.
Here's what I need help with...
I want to have web pages on our Apache server most of the time get served through the CGI as defined above but at certain times served as the raw web page file stored on the Apache server, not what gets interpreted by the CGI. So, in the end, I want to be able to do something like this...
www.MYWEBSITE.COM/samplepage
and have that processed by the CGI.
But then I also want to define something like...
NOCGI.MYWEBSITE.COM/samplepage
and set it up so it accesses the same exact file on the server, but does NOT get processed by the CGI.
I can use a different domain, an alias to refer to the page, whatever someone might suggest. Everything I've tried so far though (e.g. using MOD_ALIAS) causes the pages to still get processed by the CGI. Any suggestions?
Thanks,
- Jeff