Re: [Cppcms-users] Attempting to run cppcms at webroot
Brought to you by:
artyom-beilis
|
From: augustin <aug...@ov...> - 2011-08-31 07:57:38
|
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/
.
|