HelioHost Posted March 30, 2020 Posted March 30, 2020 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 usingPostgreSQL database. Im using PgAdmin4 for easy editing and monitordb.My problem is that i dont know how to configure PgAdmin.conf and myasp net conf file in Apache2 to have to do work both in same time. IfI enable one and disable other it works, but it wont be available insame time when i enable both of these files. I guess there is someoverlap.. here are the configuration for both files: ################ PgAdmin4.conf #################### WSGIDaemonProcess pgadmin processes=1 threads=25WSGIScriptAlias /pgadmin4 /usr/share/pgadmin4/web/pgAdmin4.wsgi WSGIProcessGroup pgadminWSGIApplicationGroup %{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
Krydos Posted March 31, 2020 Posted March 31, 2020 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
HelioHost Posted March 31, 2020 Author Posted March 31, 2020 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/>
Recommended Posts