<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerAdmin Adrian.Pop@liu.se
	ServerName trac.opencps.eu

#<Location "/OPENCPS/login">
#  AuthType Digest
#  AuthName "Trac"
#  AuthDigestProvider file
#  AuthUserFile "/var/www/trac/OPENCPS/conf/trac.htdigest"
#  Require valid-user
#</Location>

	DocumentRoot /var/www/trac
	<Directory />
		Options FollowSymLinks
		AllowOverride All
	</Directory>
	<Directory /var/www/trac>
		Options Indexes FollowSymLinks MultiViews
		AllowOverride All
		Order allow,deny
		allow from none
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
                SSLOptions +StdEnvVars
        </Directory>

# ModRio
  WSGIDaemonProcess opencps python-home=/var/www/trac/.virtualenv-with-system
  WSGIScriptAlias /OPENCPS /var/www/trac/OPENCPS/apache/trac.wsgi
<Directory /var/www/trac/OPENCPS/apache>
  WSGIProcessGroup opencps
  WSGIApplicationGroup %{GLOBAL}
  Order deny,allow
  Allow from all
</Directory>

#<Location /OPENCPS/register>
#  WSGIPassAuthorization Off
#  AuthType Basic
#  AuthName "Restricted Registration"
#  AuthUserFile /etc/apache2/.htpasswd
#  Require valid-user
#</Location>






SSLCertificateFile /etc/letsencrypt/live/opencps.eu/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/opencps.eu/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>
