I confirm that Webfaction guy are really friendly and helpful.
Use the script and if you have problems open a ticket.
I'm also really happy of Webfaction.
Il giorno domenica 9 novembre 2014 00:47:41 UTC+1, Hans Soflao ha scritto:
>
> Can somebody help me with getting web2py app to work with webfaction? This
> is a very simple question I imagine.
>
> The way my folders are structured are like this:
> home/user/webapps/appname.
> Inside appname folder, there are these folders: apache2, htdocs and
> web2py. These get created when an app gets installed from webfaction
> control panel.
>
> Now, when website is called the output of the website is a page saying:
>
> Welcome to your mod_wsgi website! It uses python...
>
> Now, I figured out this is the index.py page loaded from htdocs.
>
> Thus, I went ahead and looked at the conf file in the apache2 folder. I
> just need a little help to modify conf file right to get it call the
> welcome app in the web2py. I appreciate a lot if you could help. I have
> already taken htdocs out of the directory path and written web2py, but gave
> me error The requested URL / was not found on this server.
>
> ServerRoot "/home/user/webapps/appname/apache2"
>
> LoadModule dir_module modules/mod_dir.so
> LoadModule env_module modules/mod_env.so
> LoadModule log_config_module modules/mod_log_config.so
> LoadModule mime_module modules/mod_mime.so
> LoadModule rewrite_module modules/mod_rewrite.so
> LoadModule setenvif_module modules/mod_setenvif.so
> LoadModule wsgi_module modules/mod_wsgi.so
>
> LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
> CustomLog /home/user/logs/user/access_appname.log combined
> DirectoryIndex index.py
> DocumentRoot /home/user/webapps/appname/web2py
> ErrorLog /home/user/logs/user/error_appname.log
> KeepAlive Off
> Listen 15578
> MaxSpareThreads 3
> MinSpareThreads 1
> ServerLimit 1
> SetEnvIf X-Forwarded-SSL on HTTPS=1
> ThreadsPerChild 5
> WSGIDaemonProcess learas processes=5
> python-path=/home/user/webapps/appname/lib/python2.7 threads=1
> WSGIProcessGroup appname
> WSGIRestrictEmbedded On
> WSGILazyInitialization On
>
> <Directory /home/user/webapps/appname/web2py>
> AddHandler wsgi-script .py
> </Directory>
>
>
>
>
>
>
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.