Re: [Cppcms-users] Attempting to run cppcms at webroot
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-08-31 05:28:19
|
You need to use some URL rewriting. The point is that there are files that should be served by the web server like "/media/*.css" "/media/*.png" and more. So you need to do apply some URL rewriting rules such that path "/something" would map to lets say "/blog.cgi/something" where "/blog.cgi" is the FastCGI script name. I think Allan Simon that is on this mailing list did that... Allan? Artyom Beilis >________________________________ >From: David Elrom <dav...@gm...> >To: cpp...@li... >Sent: Wednesday, August 31, 2011 8:07 AM >Subject: [Cppcms-users] Attempting to run cppcms at webroot > > >Artyom, > > > >As cppcms is the only application im going to be running, i want to run it at web root. I modified the "root" property of blog in config.js to "/" but that did not work, I eventually modified it to just "" and that seemed to work. I also set the http.script param "/". However, something with the regex seems to be weird because the home page works fine, but any other page requires two "/" to work, i.e. 127.0.0.1//admin. > > >If I set the http.script to "" nothing works. > > >Any ideas? > > >Would these problems go away if I were using lighttd or some other "real" webserver? > > >Thanks, >-dave >------------------------------------------------------------------------------ >Special Offer -- Download ArcSight Logger for FREE! >Finally, a world-class log management solution at an even better >price-free! And you'll get a free "Love Thy Logs" t-shirt when you >download Logger. Secure your free ArcSight Logger TODAY! >http://p.sf.net/sfu/arcsisghtdev2dev >_______________________________________________ >Cppcms-users mailing list >Cpp...@li... >https://lists.sourceforge.net/lists/listinfo/cppcms-users > > > |