How to begin writing an Application Server over Apache?

Posted by Cracker on Stack Overflow See other posts from Stack Overflow or by Cracker
Published on 2010-01-15T19:22:47Z Indexed on 2010/04/03 20:13 UTC
Read the original article Hit count: 244

Filed under:
|
|

For my college project, I want to create a simple application server in C that runs over Apache. Like .php, .asp, .jsp, the extension of my files would be .sas.

I have already written a parser which reads the .sas files and generates the output. For example, consider a file index.sas with the below code:

<%   
echo "Hello";  
%>  

Now, if I execute:

sas index.sas

The result would be:

Hello

Now I want to use this program as an application server over Apache just as PHP, Tomcat, etc. work over Apache. I have heard of cgi-bin but I think PHP uses a different approach. I want to learn the approach which PHP uses.

Please advice.

© Stack Overflow or respective owner

Related posts about application-server

Related posts about apache