Jump to content

Recommended Posts

Posted

Username: nmicun, Server: Tommy, Main domain: nmicun.heliohost.org

 

Hello,

 

can you please help me with this:

 

On my vps (216.218.192.170) I host ASP Net Core App which using

PostgreSQL database. Im using PgAdmin4 for easy editing and monitor

db.

My problem is that i dont know how to configure PgAdmin.conf and my

asp net conf file in Apache2 to have to do work both in same time. If

I enable one and disable other it works, but it wont be available in

same time when i enable both of these files. I guess there is some

overlap.. here are the configuration for both files:

 

################ PgAdmin4.conf ####################

 

WSGIDaemonProcess pgadmin processes=1 threads=25

WSGIScriptAlias /pgadmin4 /usr/share/pgadmin4/web/pgAdmin4.wsgi

 

WSGIProcessGroup pgadmin

WSGIApplicationGroup %{GLOBAL}

Require all granted

 

##################################################

 

And for ASP net (WebApi.conf):

 

###################### Asp NET ###################

 

ProxyPreserveHost On

ProxyPass / http://127.0.0.1:5000/

ProxyPassReverse / http://127.0.0.1:5000/

ErrorLog ${APACHE_LOG_DIR}webapi-error.log

CustomLog ${APACHE_LOG_DIR}webapi-access.log common

 

################################################

 

Thank for your help!

 

Best regards,

Nikola

Posted

It's because your proxypass directive is for /. You need to exclude the /pgadmin4 directory from being proxied to asp.net.

 

ProxyPreserveHost On

ProxyPass /pgadmin4 !

ProxyPass / http://127.0.0.1:5000/

ProxyPassReverse / http://127.0.0.1:5000/

ErrorLog ${APACHE_LOG_DIR}webapi-error.log

CustomLog ${APACHE_LOG_DIR}webapi-access.log common

Posted

Thats it, thank you!

 

On Tue, Mar 31, 2020 at 4:56 AM Heliohost Support w=

rote:

>

> It's because your proxypass directive is for /. You need to exclude the /=

pgadmin4 directory from being proxied to asp.net.ProxyPreserveHost OnProxyP=

ass /pgadmin4 !ProxyPass / http://127.0.0.1:5000/ProxyPassReverse / http://=

127.0.0.1:5000/ErrorLog ${APACHE_LOG_DIR}webapi-error.logCustomLog ${APACHE=

_LOG_DIR}webapi-access.log common

>

> You may view the status of your ticket by visiting:

>

> https://www.helionet.org/index/index.php?showtopic=3D39057

>

> Thank you,

> Heliohost support

> https://www.heliohost.org/

> https://www.helionet.org/

>

Guest
This topic is now closed to further replies.
×
×
  • Create New...