#LoadModule wsgi_module modules/mod_wsgi.so
#WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/usr/pgadmin4/venv
#WSGIScriptAlias /pgadmin4 /usr/pgadmin4/web/pgAdmin4.wsgi
#
#<Directory /usr/pgadmin4/web/>
#	WSGIProcessGroup pgadmin
#	WSGIApplicationGroup %{GLOBAL}
#	<IfModule mod_authz_core.c>
#		# Apache 2.4
#		Require all granted
#	</IfModule>
#	<IfModule !mod_authz_core.c>
#		# Apache 2.2
#		Order Deny,Allow
#		Deny from All
#		Allow from 127.0.0.1
#		Allow from ::1
#	</IfModule>
#</Directory>

<VirtualHost *:8070>
ServerName servicecentertest.mecinc.com

LoadModule wsgi_module modules/mod_wsgi.so
WSGIDaemonProcess pgadmin processes=1 threads=25 python-home=/usr/pgadmin4/venv
WSGIScriptAlias /pgadmin4 /usr/pgadmin4/web/pgAdmin4.wsgi

SSLEngine on
SSLCertificateFile /etc/pki/tls/certs/mecinc.com.crt
SSLCertificateChainFile /etc/pki/tls/certs/ca-mecinc.com.crt
SSLCertificateKeyFile /etc/pki/tls/private/mecinc.com.key


<Directory /usr/pgadmin4/web/>
        WSGIProcessGroup pgadmin
        WSGIApplicationGroup %{GLOBAL}
        <IfModule mod_authz_core.c>
                # Apache 2.4
                Require all granted
        </IfModule>
        <IfModule !mod_authz_core.c>
                # Apache 2.2
                Order Deny,Allow
                Allow from all
        #dmin@mecinc.com       Deny from All
        #       Allow from 127.0.0.1
        #       Allow from ::1
        </IfModule>
</Directory>
</VirtualHost>
