I 've bought Hatchling package hosting on hostgator.
I tried install web2py on subfolder public_html/web2py but it was not successful.
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?