Thanks for all answers.
A second question:
If I want to use port 8000 for http and 8001 for https:
is it possible to write
routers = dict(
BASE = dict(
domains = {
'http://www.domain.com:80 <http://domain.com/>00' : 'myappname1',
'https://www.domain.com: <http://domain.com:443/>8001' :
'myappname2',
}
),
)
Or: how does web2py know which protocol should be used?
Regards, Martin
2011/2/4 Tom Atkins <[email protected]>
> Yes - I should have said that I was assuming it was running behind Apache.
> With the standard setup as created by the 'setup-ubuntu.sh' or
> 'setup-fedora.sh' scripts (in the scripts folder) you'll already be set with
> a self-sigend certificate and Apache configured to send https requests to
> web2py.
>
>
> On 3 February 2011 23:37, Jonathan Lundell <[email protected]> wrote:
>
>> On Feb 3, 2011, at 2:43 PM, Vasile Ermicioi wrote:
>> > there are 2 ports, so I think he must run 2 instances,
>> > he can use router if he uses a proxy like nginx which will pass all
>> requests to the web2py
>> >
>>
>> It should work for Apache, too, as long as Apache is configured to go to
>> web2py for both domains/ports.
>>
>> Speaking of which, there's no real need for separate subdomains, I don't
>> think. some.domain.com should be able to serve both http and https.
>
>
>