I'm wondering what your apache config file looks like for these servers and
whether they've both been enabled. The result you reported at the end
indicates that your apache server is running fine on port 80, but it's not
firing your web2py applications. Perhaps you have not made an entry like
'ServerName www.example.com' that will tell Apache to pick up all traffic
looking for said domain.
On Wednesday, August 22, 2012 2:24:15 PM UTC-5, mweissen wrote:
>
> 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] <javascript:>>
>
>> 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
>>
>
>
--