How do I set up an RTMP stream server and URL endpoint?
If you have a Windows server, Windows Streaming Media Services works nicely and is included with most versions of Windows Server.  You just need to install the role and then configure a publishing point for the URL.  Their is a GUI provided for doing the configuration.