I have django running with wsgi and apache.
I want to route some URLs to PHP part of the website. Because both the django/wsgi and PHP content requires SSL, I can’t use virtual name hosting. How can I do this?
-
RewriteEngine in Apache config doesn’t work, because there is no alternate NameVirtualHost to redirect to?
-
Can I have urls.py redirect to a PHP file, instead of a django application view?
Thanks!
You can put an alias to the php areas before your WSGIScriptAlias line in the virtual host section to get the desired result. I’ve just tested it:
I can put php files into /srv/www.site.com/www/somefolder/ and they run as PHP.