Re: euphoria-mvc - app:run()
- Posted by ghaberek (admin) Jan 06, 2021
- 1405 views
Did you follow the Add CGI Handler part of the README? Basically, the app:run() handler expects the web server to be doing path rewrites and using your script (index.esp) in CGI as the default path handler.
# Add CGI handler for index.esp
AddHandler cgi-script .esp
DirectoryIndex index.esp
Options +ExecCGI
# Send all non-existant paths to index.esp
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.esp/$1 [L,NS]
Edit: Also your script needs to be marked executable (chmod 755) and have the correct shebang (#!/usr/local/bin/eui) in the first line of the file.
-Greg

