B
B
Bjornie2017-10-10 19:44:58
Django
Bjornie, 2017-10-10 19:44:58

How to publish 2 Django apps on the same domain that hosts a PHP site?

Developed two Django sites for a client that have nothing in common. The client wanted to publish them on the main domain of his site, so that they were like demos. The main site is example.com and the applications should be located at /django1 & /django2 (in subfolders). At the same time, the client's site in php lies at the root.
Is this even possible? If yes, what is the best way to do it? What changes should I make to Django? Or is it better to recommend hosting each site on a subdomain?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
planc, 2017-10-10
@planc

nginx proxy_pass
https://nginx.ru/ru/docs/beginners_guide.html

M
marataziat, 2017-10-11
@marataziat

It is better to recommend him to use docker or buy a VPS for this. Multiple applications on the same server is not safe

V
Vladimir Mukovoz, 2017-10-11
@castomi

Well, just screw them into different locations. What is the problem?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question