Re: [Cppcms-users] Attempting to run cppcms at webroot
Brought to you by:
artyom-beilis
From: Artyom B. <art...@ya...> - 2011-09-01 07:06:28
|
Then your probably need this: The option url.rewrite-[repeat-]if-not-file or Or probably use rules like url.rewrite-once = ( "^/media/" => "$0", "^/(.*)" => "/my.fcgi/$1" ) See: http://redmine.lighttpd.net/wiki/1/Docs:ModRewrite Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.sf.net/ CppDB - C++ SQL Connectivity: http://cppcms.sf.net/sql/cppdb/ --- On Thu, 9/1/11, David Elrom <dav...@gm...> wrote: From: David Elrom <dav...@gm...> Subject: Re: [Cppcms-users] Attempting to run cppcms at webroot To: cpp...@li... Date: Thursday, September 1, 2011, 4:18 AM i was going to use lighttpd. On Wed, Aug 31, 2011 at 3:40 AM, augustin <aug...@ov...> wrote: On Wednesday, August 31, 2011 01:28:12 PM Artyom Beilis wrote: > 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 am not Allan, but that's what I did, too. David doesn't say which web server he uses. mod_rewrite with apache2 works like a charm. .htaccess: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ my_app.cgi/$1 [L,QSA] </IfModule> Of course, Apache2 must be properly configured to allow .htaccess override of mod_rewrite. David: this is likely to become a FAQ (literally): can you add a new page about this somewhere in the wiki? Blessings, Augustin. -- Friends: http://www.reuniting.info/ My projects: http://astralcity.org/ http://3enjeux.overshoot.tv/ http://linux.overshoot.tv/ http://overshoot.tv/ http://charityware.info/ http://masquilier.org/ http://openteacher.info/ http://minguo.info/ http://www.wechange.org/ http://searching911.info/ . ------------------------------------------------------------------------------ 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 -----Inline Attachment Follows----- ------------------------------------------------------------------------------ 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 -----Inline Attachment Follows----- _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |