Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2007-03

Embedded web server

6 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Leonardo M. Ram�

Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to create my own web server that serves only an embedded app.

Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar.

Leonardo M. Ramé
http://leonardorame.blogspot.com

____________________________________________________________________________________ Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html

Reply by email

Michael Van Canneyt
to Leonardo M. Ram�
Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to create my own web server that serves only an embedded app. Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar.

As far as I know, Lnet contains an embedded webserver. The fpc-xml also has one, in combination with fpasync.

Michael.

Reply by email

Leonardo M. Ram�
to Michael Van Canneyt

Thanks Michael, can you point me to the urls of that products?

--- Michael Van Canneyt wrote 19 lines
On Wed, 14 Mar 2007, wrote: > Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to > create my own web server that serves only an embedded app. > > Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar. As far as I know, Lnet contains an embedded webserver. The fpc-xml also has one, in combination with fpasync. Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

____________________________________________________________________________________ Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097

Reply by email

Jason P Sage

Leonardo M. Ramé Wrote

Show quoted text 8 lines
Hi, I need to create a web app and don't whant to use CGI or Apache modules, in fact I whant to create my own web server that serves only an embedded app. Anyone knows anithing like this?, if I'm not wrong Jason P. Sage was looking for something similar. Leonardo M. Ramé

I learned a lot while hunting for a web server. I have not needed nor investigated embedded web server's but perhaps you will find success with these items like I did:

FPC Multi-Threading Support
FPC Socket Lib
TProcess (Or the Process Unit) for launching external processes. (Not sure this applies to your application)

I was quite impressed with nYume Web Server by the "Replicator" in Russia, which is less then 1000 lines of code I THINK.

I learned a lot and now have a web server totally written in FPC that is 1.7 times faster than apache on static web pages (bench marked using ab, same html pages, same machine etc)

I was able to use FPC process unit to create direct CGI support ( executable cgi apps), Perl (via cgi) , and PHP (via CGI), and my executable can run as a webserver or a multi-threaed CGI client system
- with a simple change to the config file. So now I have two major ways to deploy my web applications written in FPC: CGI or Standalone - Which is WebServer + Built in Application Mode.

I managed virtual host support, and apache compatible logging in apache's "combined" mode.

Here is the link to the nYume Web Server's downloads.

http://zero.kanet.ru/files/?page=/nYume_Server

I learned a lot from this guy's code, help on this forum, and just banging away all on my keyboard all hours night and day ... so if you have any questions - feel free to ask - I MAY be able to save you a minute.

Best Regards,
Jason P Sage

Reply by email