vNext on Apache webserver vNext on Apache webserver asp.net asp.net

vNext on Apache webserver


I'm happy to see there are plenty of us trying to get vnext up and running outside Windows environment:)

Of course you are right about kestrel. It will probably end up as a simple web server just like it works right now in the node.js Hello World tutorial. You can try to use it as a production environment by running it in the background Running K Kestrel in the background on a webserver and then pass requests to kestrel by Apache Proxy

VirtualHost example proxying requests to kestrel started on *:5004

<VirtualHost *:80>ServerName example.com:80ProxyRequests On<Proxy *>Order deny,allowAllow from all</Proxy>ProxyPreserveHost OffProxyPass / http://localhost:5004ProxyPassReverse / http://localhost:5004</VirtualHost>

But I do not recommend above solution. There are some issue with kestrel that prevents you to send an output outside tty and therefore you can't run it at startup with a startup script. So the website you've started will last as long as your server stays online :)

What I do recommend is to use Docker. It's kind of a wrapper for ASP.NET that is being supported by Microsoft. You could make a better use of that in this stage.

Here's more info

http://blogs.msdn.com/b/webdev/archive/2015/01/14/running-asp-net-5-applications-in-linux-containers-with-docker.aspx