can you really make my webserver run python and php within the same domain?
I've got a website in python/django that's www.mydomain.com.
Now, i must host your blog in www.mydomain.com/blog in wordpress.
Can one pull through?
Apache 2.2 mod_wsgi
My config now:
# RUNS PYTHON <VirtualHost *:80> DocumentRoot /home/padrao ErrorLog /home/padrao/logs/mydomain.com-error_log CustomLog /home/padrao/logs/mydomain.com-access_log common WSGIScriptAlias / /home/padrao/mywebsite.wsgi </VirtualHost> # RUNS PHP <VirtualHost *:80> ServerName cloud.mydomain.com ServerAdmin email@example.com DocumentRoot /home/padrao/www ErrorLog logs/mydomain.com-error_log CustomLog logs/mydomain.com-access_log combined <Directory /home/padrao/www> php_admin_value open_basedir "/home/padrao/www" php_admin_value upload_tmp_dir "/tmp" </Directory> </VirtualHost>
They must be defined within the one VirtualHost, not two separate ones.
An Alias directive then must be defined for subdir PHP application reaches. This can override WSGIScriptAlias for that sub URL.
Alternatively you should utilize techniques layed out in:
whereby stuff is going to be planned to file for system based resource and when not will as fallback be routed to WSGI application.