apache - How to put Django within a subdirectory of a website? -


i want run wordpress @ mysite.com/, because it's easier edit sales copy , such. want run django site within mysite.com/members/

httpd.conf:

<virtualhost *:80> servername mysite.com serveralias www.mysite.com documentroot /var/www/mysite.com wsgidaemonprocess mysite python-path=/var/www/mysite.com/mysite:/var/www/mysite.com/ wsgiprocessgroup mysite wsgiscriptalias / /var/www/mysite.com/mysite/mysite/wsgi.py </virtualhost> 

what need django runs within /members/ directory on domain/website?

use:

wsgiscriptalias /members /var/www/mysite.com/mysite/mysite/wsgi.py 

do aware doing that, since have made mistake of setting documentroot parent directory of source code, people able download source code, including sensitive information in settings module.

so, not set documentroot have. have refer en empty directory, of default htdocs directory whole server.


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -