thx all guys , i foud that what i need to do exactly~ http://webpy.org/cookbook/mod_wsgi-apache
i just like that my web.py application can run in 80 port with apache~ On Sun, May 2, 2010 at 11:49 PM, Justin Davis <[email protected]> wrote: > Correct, only one application can bind to a given port at any time. > First you must stop apache. That said, on Unix machines, you usually > need to be root to bind to any port under 1024 (hence all default > development ports being much higher than 80). > > Justin > > > On May 1, 4:40 pm, Branko Vukelic <[email protected]> wrote: >> AFAIK, you cannot run two servers one next to the other. You must >> first shut apache down before you run your app on port 80. >> >> >> >> >> >> On Sat, May 1, 2010 at 8:41 PM, 白杨树 <[email protected]> wrote: >> > the situation is >> > my server has apache, and it owns the 80 port >> >> > my test code is like that >> >> > import web >> >> > urls = ("/hello", "hello") >> > app = web.application(urls, globals()) >> >> > class hello: >> > def GET(self): >> > return 'Hello, world!' >> >> > if __name__ == "__main__": >> > app.run() >> >> > when i run "python test.py" >> >> > i can access it throughthttp://xxx.com:8080 >> >> > but when i run "python test.py 80" >> >> > i got these error infomation >> >> > Python-2.5.4/Lib/web/wsgiserver/__init__.py", line 1596, in start >> > raise socket.error, msg >> > socket.error: (13, 'Permission denied') >> > -- >> > B.rgds / Whitepoplar (杨德华) >> >> > -- >> > You received this message because you are subscribed to the Google Groups >> > "web.py" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group >> > athttp://groups.google.com/group/webpy?hl=en. >> >> -- >> Branko Vukelić >> >> [email protected] >> [email protected] >> >> Check out my blog:http://www.brankovukelic.com/ >> Check out my portfolio:http://www.flickr.com/photos/foxbunny/ >> Registered Linux user #438078 (http://counter.li.org/) >> I hang out on identi.ca:http://identi.ca/foxbunny >> >> -- >> You received this message because you are subscribed to the Google Groups >> "web.py" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group >> athttp://groups.google.com/group/webpy?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- B.rgds / Whitepoplar (杨德华) -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
