changing the django production from 80 to another

25 views
Skip to first unread message

Kamal Sharma

unread,
Aug 15, 2018, 10:32:54 AM8/15/18
to django...@googlegroups.com
Hey Django,
I am facing a problem that at 80 port my tomcat is running and i just want to deploy my django application on the same server so how can i change the port number please help me.

Thanks 
Kamal Sharma

Kasper Laudrup

unread,
Aug 15, 2018, 12:55:38 PM8/15/18
to django...@googlegroups.com
Hi Kamal,

On 15/08/2018 16.32, Kamal Sharma wrote:
> I am facing a problem that at 80 port my tomcat is running and i just want
> to deploy my django application on the same server so how can i change the
> port number please help me.
>

This is not really related to Django but more of a web server
administration issue, but anyway.

I would probably put up a webserver that binds to port 80, and then
proxies the requests to both your tomcat server and your django WSGI
application.

So you would need to make your Tomcat server bind to another port and
the proxy requests from http://my-webserver/tomcat to that port and
requests to http://my-server/django to your django wsgi application.

How to do that depends on which web server you choose.

Hope that helps.

Kind regards,

Kasper Laudrup

Kamal Sharma

unread,
Aug 16, 2018, 3:54:46 AM8/16/18
to django...@googlegroups.com
Hey
Thanks for this solution it worked for me. 

Thank you
Kamal Sharma



--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5f8e2d44-2acf-7e78-333a-327b3a639e08%40stacktrace.dk.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages