OK, so here's my situation :
- I've written an interpreter (for a language of my own design)
- I need every file with a specific extension (e.g.
.xxx
) to be first handled by my interpreter
Here's what I've tried so far (other than... messy solutions with exec
via PHP... lol) :
.htaccess
Options -ExecCGI -MultiViews -Includes -Indexes FollowSymLinks
Action lgm-cgi /usr/local/bin/lgm -c
AddHandler lgm-cgi .lgml
But guess what : It's not working.
I'm requesting www.mydomain.com/index.lgml
and instead of returning the processed file, it returns the very same file (index.lgml
) as text.
What am I doing wrong? Any suggestions?
I don't consider myself anywhere close to an expert regarding server configuration and .htaccess so I suppose this whole thing might be much easier than I expect; so please shed some light! :-)