--- /dev/null
+<VirtualHost *:443>
+ # enable SSL
+ SSLEngine on
+
+ # for security reasons you may restrict the SSL protocol, but some clients may fail if SSLv2 is not supported
+ SSLProtocol all
+
+ # this should point to your server host certificate
+ SSLCertificateFile /etc/grid-security/hostcert.pem
+
+ # this should point to your server host key
+ SSLCertificateKeyFile /etc/grid-security/hostkey.pem
+
+ # directory containing the Root CA certificates and their hashes
+ SSLCACertificatePath /etc/grid-security/certificates
+
+ # set to optional, this tells Apache to attempt to verify SSL certificates i
+f provided
+ # for X.509 access with GridSite/VOMS, however, set to 'require'
+ SSLVerifyClient optional
+ #SSLVerifyClient require
+
+ # if you have multiple CAs in the file above, you may need to increase the verify depth
+ SSLVerifyDepth 10
+
+ ServerName localhost
+ DocumentRoot /var/www/html/pOCCI-flask
+ <Directory /var/www/html/pOCCI-flask>
+ Options -MultiViews
+ #Allow from all
+ # Uncomment this if you're on Apache >= 2.4:
+ Require all granted
+ </Directory>
+
+ Alias /pocci /var/www/html/pOCCI-flask
+ <Location /pocci>
+ PassengerBaseURI /pocci
+ PassengerAppRoot /var/www/html/pOCCI-flask
+ </Location>
+</VirtualHost>
--- /dev/null
+<VirtualHost *:80>
+ ServerName localhost
+ DocumentRoot /var/www/html/pOCCI-flask
+ <Directory /var/www/html/pOCCI-flask>
+ Options -MultiViews
+ #Allow from all
+ # Uncomment this if you're on Apache >= 2.4:
+ Require all granted
+ </Directory>
+
+ Alias /pocci /var/www/html/pOCCI-flask
+ <Location /pocci>
+ PassengerBaseURI /pocci
+ PassengerAppRoot /var/www/html/pOCCI-flask
+ </Location>
+</VirtualHost>
--- /dev/null
+# required
+setsebool -P httpd_run_stickshift 1
+setsebool -P httpd_can_network_connect 1
+
+# not critical (better to allow read for particular files)
+#setsebool -P httpd_read_user_content 1
+
+exit 0
+
+Read (pycurl):
+Source Context system_u:system_r:httpd_t:s0
+Target Context unconfined_u:object_r:home_cert_t:s0
+Target Objects pkcs11.txt [ file ]
+
+Read, write (pycurl):
+Source Context system_u:system_r:httpd_t:s0
+Target Context unconfined_u:object_r:home_cert_t:s0
+Target Objects cert9.db [ file ]
+
+Read (pOCCI):
+Source Context system_u:system_r:httpd_t:s0
+Target Context unconfined_u:object_r:user_home_t:s0
+Target Objects .pOCCI.cfg [ file ]
+
+Read (mod_passenger???):
+Source Context system_u:system_r:httpd_t:s0
+Target Context system_u:object_r:hwdata_t:s0
+Target Objects /usr/share/hwdata/pci.ids [ file ]
+Source lspci
+Source Path /usr/sbin/lspci
--- /dev/null
+from app import app as application