Can I serve one django application from two different Apache scammers?

I have a django application currently available at dev.mydomain.com and I'm going to move it to clientsdomain.com . I'm on Ubuntu, so I ran a2dissite dev.mydomain.com and then a2ensite clientsdomain.com .

My vhost files are identical except for the server name -

 <VirtualHost 8.8.8.4> ServerName dev.mydomain.com #.... </virtualHost> 

and

 <VirtualHost 8.8.8.4> ServerName clientdomain.com #.... </virtualHost> 

(obviously not my IP address)

I just want to know if I really need to remove dev vhost before starting the application from live vhost. Can I run them together? Is there a risk of having them at the same time (if possible).

+4
source share
1 answer

Each Django application will serve requests arriving at the corresponding VirtualHost. No, theoretically they can work in parallel.

However, you cannot tell in detail about your setup. For example, are they supported by the same database? In this case, you understand the problem, right?

0
source

All Articles