I have this in /etc/httpd/conf.d/vhost2.example.com.
Code: Select all
<Directory /srv/vhost2.example.com/www>
Require all granted
</Directory>
<Directory /srv/vhost2.example.com/scripts>
Require all granted
</Directory>
<VirtualHost *:80>
ServerName vhost2.example.com
DocumentRoot /srv/vhost2.example.com/www
WSGIScriptAlias /webapp/ /srv/vhost2.example.com/scripts/hello_world.py
</VirtualHost>