Problems in hosting multiple Django cms projects under the same domain?

别说谁变了你拦得住时间么 提交于 2019-12-25 08:58:37

问题


I am a beginner, I do want to deploy multiple Django cms projects under the same domain. I achieved it by using apache 2.2 and mod_wsgi 4.5.3 the configuration is below.

ServerName example.com
WSGIDaemonProcess blog python-home=/home/rndbkw/project/virtualenv2.7 python-path=/home/rndbkw/project/djangocms
WSGIScriptAlias /blog /home/rndbkw/project/djangocms/rnd/wsgi.py process-group=blog application-group=%{GLOBAL}

WSGIDaemonProcess rnd python-home=/home/rndbkw/virtualenv2.7 python-path=/home/rndbkw/djangocms
WSGIScriptAlias / /home/rndbkw/djangocms/rnd/wsgi.py process-group=rnd application-group=%{GLOBAL}

But i am facing multiple issues now, When i am login to the first site it will be working fine without any hassles. Then i am login to the example.com/blog after login it will be redirecting to the example.com and another issue i found that when i am removing the configuration for example.com(root) then i looking example.com/blog the style(css) of the page will be lost. Any solutions will be appreciated...

来源:https://stackoverflow.com/questions/39782836/problems-in-hosting-multiple-django-cms-projects-under-the-same-domain

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!