Dotnet core API hosting on Linode with Apache Proxy

Nov 21, 2016

My apache config for dotnetcore reverse proxy

<VirtualHost *:80>
        ProxyPass / http://localhost:5123/api/
        ProxyPassReverse / http://localhost:5123/api/
        ErrorLog /var/www/SITE-PATH/log/verb-api-error.log
        CustomLog /var/www/SITE-PATH/log/verb-api-access.log common
        ServerName localhost
</VirtualHost>

Intial error:

AH01144: No protocol handler was valid for the URL /values. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.

Fix:

sudo a2enmod proxy_http

As per http://stackoverflow.com/questions/23931987/apache-proxy-no-protocol-handler-was-valid

All the proxy modules installed:

 proxy_module
 proxy_fcgi_module
 proxy_html_module
 proxy_http_module