Ok, I will try to make my question more clear:
I have installing web2py according to the chapter "Setting up a production
deployment in Ubuntu"
and I want to redirect http to myapp1 and https to myapp2.

Of course I have tried the file routes.py. It contains:

routers = dict (
    BASE = dict(
        default_application = 'welcome',
        domains = {
            '<my-ip>:80' : 'myapp1/mycontroller',
            '<my-ip>:443' : 'myapp2/mycontroller',
        }
    },
}

I think, Apache converts everything to https, but I don't know why.






2012/8/22 Martin Weissenboeck <[email protected]>

> A very nice book!
> I have executed all steps from the chapter "Setting up a production
> deployment in Ubuntu" (page 12)
> The server works very good, but every request is redirected to https.
>
> https://www.mydomain.com   -> request.is_https==True,  OK?
> *http*://www.mydomain.com becomes https://www.mydomain.com  -> 
> *request.is_https
> *==True
>
>
> And some other tries:
>
> https://www.mydomain.com:443  or
> http://www.mydomain.com:443  or
>
> <p>Your browser sent a request that this server could not understand.<br />
> Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
> Instead use the HTTPS scheme to access this URL, please.<br />
>
>
> http://www.mydomain.com:80
>
> The requested URL /secure/default/index was not found on this server.
>
> Every hint is welcome!
> Regards, Martin
>

-- 



Reply via email to