Question

In web.py we need to host the our application py using $ python xyz.py 8080 command, also by default it takes 8080 itself. While accessing from the browser one has to put the port number in the url like this, www.xyz.com:8080. How can I remove the port number and give the url like www.xyz.com to host my application.

Was it helpful?

Solution

web.py default server is intended only for development. In production you should set up a dedicated web server, like Apache or lighttpd, and run it (the server) on port 80, so your question is not related to Python as @Álvaro pointed out. There are three documented ways to deploy web.py over Apache: CGI deployment, mod_wsgi deployment (Red Hat example, Ubuntu example) and FastCGI.

OTHER TIPS

For a regular, unencrypted HTTP connection, your browser by default uses port 80, so

http://www.xyz.com

is the same as

http://www.xyz.com:80

But to use port numbers below 1024 you need administrator permissions.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top