On Apr 17, 2012, at 11:58 PM, IVINH wrote:
> Thank you, but I can use the syntax as: 'domain.com': 'domain.com:8000' to 
> redirect with routes.py?

No. Web2py (and its router) can't do anything until they receive the packet. If 
they listen on port 8000 and the browser sends the request to port 80, it won't 
work.

> 
> 
> Vào 21:03:21 UTC+7 Thứ ba, ngày 17 tháng tư năm 2012, Jonathan Lundell đã 
> viết:
> On Apr 17, 2012, at 1:31 AM, IVINH wrote:
>> Web2py server running at port 8000, how to redirect mydomain.com to this 
>> server without using the link mydomain.com:8000?
> 
> A web browser using that URL will make a request on port 80. You either need 
> to configure web2py to run on port 80 or use a front end (such as Apache) to 
> redirect requests on port 80 to port 8000.


Reply via email to