I 've bought Hatchling package hosting on hostgator.
I tried install web2py on subfolder public_html/web2py but it was not 
successful.
Server response 500 default status of 
hostgator: http://moneytweak.com/web2py/

This is my .htaccess and index.fcgi in web2py folder:
###.htaccess:
AddHandler fcgid-script .fcgi 
Options +FollowSymLinks  +ExecCGI 
RewriteEngine On 
RewriteBase /web2py/ 
RewriteRule ^index\.fcgi/ - [L] 
RewriteRule ^(.*)$ index.fcgi/$1 [L]

###index.fcgi:
#!/home/user/env/bin/python
import sys, os
sys.path.append('/home/user/public_html/web2py')
os.chdir('/home/user/public_html/web2py')
from flup.server.fcgi_fork import WSGIServer
import gluon.main
application=gluon.main.wsgibase
# or
# application=gluon.main.wsgibase_with_logging
WSGIServer(application).run()

###routes.py
default_application = 'init'    # ordinarily set in base routes.py
default_controller = 'default'  # ordinarily set in app-specific routes.py
default_function = 'index'      # ordinarily set in app-specific routes.py
routes_in = (('/web2py/(?P<a>.*)','/\g<a>'),)
routes_out=(('/(?P<a>.*)','/web2py/\g<a>'),)
logging = 'debug'

Can anybody help me, plz?

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to