Re: euphoria-mvc - app:run()

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu