Apache config files from Apps
Posted: Fri Sep 09, 2011 8:04 am
Hi,
I'm building a script to package an App. On the final state of the app, I need to add some lines to the config file on /etc/httpd/conf.d/xxxx-web-app.conf that aren't possible on a custum .htaccess file.
Namely, I need to add:
WSGIPAssAuthorization On
WSGIScriptAlias "/" "...... path of the web-app/.../script.wsgi"
Also, I need to change the directory and the document root to a sub dir of the html dir.
Is this achievable from a script running as apache during the app install, since the script is being run with apache identity
I'm building a script to package an App. On the final state of the app, I need to add some lines to the config file on /etc/httpd/conf.d/xxxx-web-app.conf that aren't possible on a custum .htaccess file.
Namely, I need to add:
WSGIPAssAuthorization On
WSGIScriptAlias "/" "...... path of the web-app/.../script.wsgi"
Also, I need to change the directory and the document root to a sub dir of the html dir.
Is this achievable from a script running as apache during the app install, since the script is being run with apache identity