Last post Dec 02, 2020 03:22 PM by bruce (sqlwork.com)
Member
1 Points
14 Posts
Dec 01, 2020 09:56 PM|SunnySSS|LINK
I am potentially planning to run asp.net core on linux behind an apache reverse proxy.
when running the asp.net core does it need to be running on https?
I can set apache https directive as follow - and when i access this from the browser it is working fine.
ProxyPreserveHost On ProxyPass / http://127.0.0.1:5000/ ProxyPassReverse / http://127.0.0.1:5000/ ServerName app.domain.com ServerAlias *.app.domain.com ErrorLog ${APACHE_LOG_DIR}helloapp-error.log CustomLog ${APACHE_LOG_DIR}helloapp-access.log common
Are there any issues with this?
All-Star
57854 Points
15488 Posts
Dec 01, 2020 10:48 PM|bruce (sqlwork.com)|LINK
depends on how trusted the apps on the hosting server are. if its a trusted server (or docker image), and port 5000 is blocked from external access, then you should be good.
if its a shared host, then trouble.
Dec 01, 2020 11:06 PM|SunnySSS|LINK
it will be my own VPS. the other web apps that will run there will be other apps i own / have written.
Dec 02, 2020 03:22 PM|bruce (sqlwork.com)|LINK
Then just be sure the asp.net port is not open to external servers.
Member
1 Points
14 Posts
when running behind reverse proxy, does app need to be running on https?
Dec 01, 2020 09:56 PM|SunnySSS|LINK
I am potentially planning to run asp.net core on linux behind an apache reverse proxy.
when running the asp.net core does it need to be running on https?
I can set apache https directive as follow - and when i access this from the browser it is working fine.
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:5000/
ProxyPassReverse / http://127.0.0.1:5000/
ServerName app.domain.com
ServerAlias *.app.domain.com
ErrorLog ${APACHE_LOG_DIR}helloapp-error.log
CustomLog ${APACHE_LOG_DIR}helloapp-access.log common
Are there any issues with this?
All-Star
57854 Points
15488 Posts
Re: when running behind reverse proxy, does app need to be running on https?
Dec 01, 2020 10:48 PM|bruce (sqlwork.com)|LINK
depends on how trusted the apps on the hosting server are. if its a trusted server (or docker image), and port 5000 is blocked from external access, then you should be good.
if its a shared host, then trouble.
Member
1 Points
14 Posts
Re: when running behind reverse proxy, does app need to be running on https?
Dec 01, 2020 11:06 PM|SunnySSS|LINK
it will be my own VPS. the other web apps that will run there will be other apps i own / have written.
All-Star
57854 Points
15488 Posts
Re: when running behind reverse proxy, does app need to be running on https?
Dec 02, 2020 03:22 PM|bruce (sqlwork.com)|LINK
Then just be sure the asp.net port is not open to external servers.