2020-09-20 08:20:25 +00:00
|
|
|
# To enable the /pgadmin4 alias, run
|
|
|
|
|
# a2enmod wsgi && a2enflag PGADMIN && rcapache2 restart
|
|
|
|
|
# This will make /pgadmin4 available on all virtual hosts.
|
|
|
|
|
#
|
|
|
|
|
# If you want to have the /pgadmin4 alias only on a specific
|
|
|
|
|
# virtual host, add the alias to the config of that vhost.
|
|
|
|
|
|
|
|
|
|
<IfDefine PGADMIN>
|
2018-11-13 15:20:53 +00:00
|
|
|
WSGIDaemonProcess pgadmin processes=1 threads=25
|
2023-10-27 13:08:10 +00:00
|
|
|
WSGIScriptAlias /pgadmin4 PYTHONSITELIB/pgadmin4/pgAdmin4.wsgi
|
2018-11-13 15:20:53 +00:00
|
|
|
|
2023-10-27 13:08:10 +00:00
|
|
|
<Directory PYTHONSITELIB/pgadmin4/>
|
2018-11-13 15:20:53 +00:00
|
|
|
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>
|
2020-09-20 08:20:25 +00:00
|
|
|
</IfDefine>
|