-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apache code to allow hosting of two different websites via WSGI via Django on Windows #857
Comments
Don't set Also ensure using Those are the two things you must do on Windows. So ensure that is correct and see how you go. Also make sure you are checking the Apache error log for errors as you can't rely on just the error in the browser to know what is happening. |
thank you for the fast answer @GrahamDumpleton. I took For you I have included the For you, I also checked the error logs, there are none for this problem. I did another experiment and added fairvalex.com to the allowed hosts of quantdepot.com and then I see on fairvalex.com the content of quantdepot.com. However, the actual content of fairvalex.com is still not accessible at the same time when I run the quantdepot.com website simultanously with a Windows server and a public IP. I would like to know if there is a way to run 2 websites with one server and one public IP. Below the wsgi.py files:
and:
again changed vhost:
|
Are you making sure you do a complete stop and start of the Apache service. Relying on mod_wsgi reloading, or even perhaps an Apache reload may not be enough on Windows. |
Hi together,
I am currently learning how to host two different websites with one public ip with Apache, WGSI and Django on Windows. Who can help me further:
This article was already helpful: http://blog.dscpl.com.au/2012/10/requests-running-in-wrong-django.html
Below is my code, currently I only can see the website fairvalex.com and get a bad request 400 error for quantdepot.com. Each website on its own is working well.
The other option using WSGIDaemonProcess is for me on windows not possible or I do not know how to install the module without pip.
Thank you so much in advance
Leo
The text was updated successfully, but these errors were encountered: