.htaccess:
Options +SymLinksIfOwnerMatch
AddHandler fcgid-script .fcgi

# Do not change this line.

RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.website.com$

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/web2py.fcgi/

# Don't change this line.

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteRule ^(.*)$ /web2py.fcgi/$1

RewriteCond %{HTTP_HOST} ^(www.)?website.com$

RewriteCond %{HTTP_HOST} !^www.website.com$
RewriteRule ^(.*)$ http://www.website.com/$1 [R=301]
RewriteRule ^(/)?$ web2py.fcgi/ [L]


web2py.fcgi:
#!/home1/path_to_virtual_env/web2py_dev/bin/python
import sys
from flup.server.fcgi_fork import WSGIServer
import gluon.main
application=gluon.main.wsgibase

WSGIServer(application).run()


On Tue, Mar 13, 2012 at 6:36 PM, Bruce Wade <bruce.w...@gmail.com> wrote:

> Isn't dreamhost and hostmonster the same? If they are I have my site
> running on hostmonster and can show you.
>
>
> On Tue, Mar 13, 2012 at 5:27 PM, Alex s <alexsalga...@gmail.com> wrote:
>
>>
>> Hi,
>> Have anyone installed web2py in dreamhost or have a tutorial similar to
>> do it?
>>
>> Thanks
>> Alex
>>
>
>
>
> --
> --
> Regards,
> Bruce Wade
> http://ca.linkedin.com/in/brucelwade
> http://www.wadecybertech.com
> http://www.warplydesigned.com
> http://www.fitnessfriendsfinder.com
>



-- 
-- 
Regards,
Bruce Wade
http://ca.linkedin.com/in/brucelwade
http://www.wadecybertech.com
http://www.warplydesigned.com
http://www.fitnessfriendsfinder.com

Reply via email to