Thanks for replying, Francois.

I am looking for lighttpd configuration, you are right.

I think I understand what the logic is, it's just thatI don't know how
to express that in lighttpd terms.

Thanks,
Art

On Jan 7, 9:04 am, Francois Letendre <[email protected]>
wrote:
> Here's how is my .htaccess file at the root of my site with my domain 
> fletendre.net.It won't work with lighttpd but at least you will have the 
> logic behind it...
> ### START
> # Turn on rewrites.RewriteEngine on
> # Only apply to URLs on this domainRewriteCond %{HTTP_HOST} 
> ^(www.)?fletendre.net$
> # Only apply to URLs that aren't already under folder "blog".RewriteCond 
> %{REQUEST_URI} !^/blog/
> # Don't apply to URLs that go to other existing files or folders.RewriteCond 
> %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d
> # Rewrite all those to insert "/blog/".RewriteRule ^(.*)$ /blog/$1 [L]
> # Redirect the root folder.RewriteCond %{HTTP_HOST} 
> ^(www.)?fletendre.net$RewriteRule ^(/)?$ blog/ [L]
> ### END
>
> > Date: Thu, 6 Jan 2011 06:11:44 -0800
> > Subject: [habari-users] Installing Habari under /blog/
> > From: [email protected]
> > To: [email protected]
>
> > Hi all,
>
> > I am trying to install Habari under lighttpd, so all its URLs start
> > with /blog/
>
> > This instance of lighttpd also runs python fastcgi, shich I need to
> > keep intact configuration-wise, i.e. all URLs apart from /blog/ need
> > to be handled by it.
>
> > I had some minor success with following configuration:
>
> > $HTTP["host"] =~ "myhost\.(local|localhost)" {
>
> >     $HTTP["url"] =~ "^/blog/" {
> >         server.document-root = "/home/user/dev/habari-0.6.6"
> >         dir-listing.activate = "enable"
> >         url.rewrite-once = (
> >             "^/blog/(?!scripts/|3rdparty/|system/|doc/|user/(?:themes/|
> > files/|plugins/|locales/|sites/))[^?]*(\?(.*))?" => "/index.php/$1"
> >         )
> >         alias.url += (
> >             "/blog" => "/home/user/dev/habari-0.6.6"
> >         )
> >     }
> > }
>
> > However in this configuration only the front page works - none of the
> > other links, like login/comments etc work.
>
> > Can anyone recommend anything?
>
> > Thanks!
>
> > --
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to 
> > [email protected]
> > For more options, visit this group 
> > athttp://groups.google.com/group/habari-users

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/habari-users

Reply via email to