Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Sep 10, 2011 10:00 am 
Offline
Newbie

Joined: Sun Jul 11, 2010 3:41 am
Posts: 2
I want to write a tiny RESTful server in some language that can run on Ubuntu 10.04, but I have no idea how to host it.

Currently I have a node with nginx, I might have Apache running as well but not configured correctly, running that serves some public websites (Wordpress).

Does that mean port 80 is taken? How should I host my application to be able to handle urls like http://myip/User/Zolomon for instance?

Do I have to communicate with nginx in some way, since I suppose it's what handles the URL?


Top
   
 Post subject:
PostPosted: Sat Sep 10, 2011 1:12 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
You'd normally use nginx to proxy the requests to your application, and your application would listen with a FastCGI or HTTP server bound to some arbitrary port on a loopback IP (::1 or 127.0.0.1). Conceptually, it's the same as how nginx is handling Wordpress.

Since your application wouldn't otherwise care about FastCGI or HTTP, many things exist to make your application web-aware without you having to become web-aware. For Java, I've used Tomcat and Jetty; for Python, I've used flup and gunicorn. Dunno about C#.

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group