librelist archives

« back to archive

Lighttpd?

Lighttpd?

From:
Chris Hall
Date:
2013-02-19 @ 02:36
Hi, everybody, thanks again for the quick tarball assistance!

I can't seem to google up much in the way of successful lighthttpd
rewrites for Friendica -- the only ones I found only say they got it
sort of working, but no links.

I've looked at .htaccess, and *looks* straightforward, but I've been
doing this long enough to know how misleading that sometimes can be.

Anybody have any pointers?

Thanks,

Chris

Re: [friendica] Lighttpd?

From:
Mike Macgirvin
Date:
2013-02-19 @ 03:37
On 19/02/2013 1:36 PM, Chris Hall wrote:
> Hi, everybody, thanks again for the quick tarball assistance!
>
> I can't seem to google up much in the way of successful lighthttpd
> rewrites for Friendica -- the only ones I found only say they got it
> sort of working, but no links.
>
> I've looked at .htaccess, and *looks* straightforward, but I've been
> doing this long enough to know how misleading that sometimes can be.
>
> Anybody have any pointers?
>
> Thanks,
>
> Chris
>
I'm not well versed in lighttpd, but look for something that works with 
Drupal clean URLs. The same exact setup should get you most of the way 
there with Friendica. After that there may be a couple of little tweaks 
getting the right CGI variables set for HTTP-AUTH (so as to make the 
Twitter API work). That's of much lesser importance than making things 
work at all. There's also a bit of blocking to keep people from 
accessing .htconfig.php and logfiles and git stuff.

Re: [friendica] Lighttpd?

From:
Chris Hall
Date:
2013-02-19 @ 04:58
On 02/18/2013 05:37 PM, Mike Macgirvin wrote:
> On 19/02/2013 1:36 PM, Chris Hall wrote:
>> Hi, everybody, thanks again for the quick tarball assistance!
>>
>> I can't seem to google up much in the way of successful lighthttpd
>> rewrites for Friendica -- the only ones I found only say they got it
>> sort of working, but no links.
>>
>> I've looked at .htaccess, and *looks* straightforward, but I've been
>> doing this long enough to know how misleading that sometimes can be.
>>
>> Anybody have any pointers?
>>
>> Thanks,
>>
>> Chris
>>
> I'm not well versed in lighttpd, but look for something that works with 
> Drupal clean URLs. The same exact setup should get you most of the way 
> there with Friendica. After that there may be a couple of little tweaks 
> getting the right CGI variables set for HTTP-AUTH (so as to make the 
> Twitter API work). That's of much lesser importance than making things 
> work at all. There's also a bit of blocking to keep people from 
> accessing .htconfig.php and logfiles and git stuff.

Alrighty, then, thanks for the useful tips, I guess you'd know, if
anybody did, right? ;)

I'll just dig in and see what we get.

Re: [friendica] Lighttpd?

From:
Tobias Diekershoff
Date:
2013-02-19 @ 05:08

Chris Hall <bitmonki@gmail.com> schrieb:

>  Alrighty, then, thanks for the useful tips, I guess you'd know, if
>  anybody did, right? ;)
>  
>  I'll just dig in and see what we get.

I remember one person with a lighttp setup, but he is not active on 
~friendica at the moment ;-)

But if you find a working setup it would be great if we could put it into 
the wiki for reference.

so long
  Tobias
-- 
JID/~friendica: tobias@diekershoff.homeunix.net
www.diekershoff.net.     diekershoff.homeunix.net

Re: [friendica] Lighttpd?

From:
Chris Hall
Date:
2013-02-24 @ 07:15
On 02/18/2013 05:37 PM, Mike Macgirvin wrote:
> On 19/02/2013 1:36 PM, Chris Hall wrote:
>> Hi, everybody, thanks again for the quick tarball assistance!
>>
>> I can't seem to google up much in the way of successful lighthttpd
>> rewrites for Friendica -- the only ones I found only say they got it
>> sort of working, but no links.
>>
>> I've looked at .htaccess, and *looks* straightforward, but I've been
>> doing this long enough to know how misleading that sometimes can be.
>>
>> Anybody have any pointers?
>>
>> Thanks,
>>
>> Chris
>>
> I'm not well versed in lighttpd, but look for something that works with 
> Drupal clean URLs. The same exact setup should get you most of the way 
> there with Friendica. After that there may be a couple of little tweaks 
> getting the right CGI variables set for HTTP-AUTH (so as to make the 
> Twitter API work). That's of much lesser importance than making things 
> work at all. There's also a bit of blocking to keep people from 
> accessing .htconfig.php and logfiles and git stuff.
Mike:
Dude, thanks to your tip (and URL architecture, I imagine), it was a
piece of cake, and guess what? Using Lighty, it looks like one *doesn't*
have to be in the web server root. :D

$HTTP["host"] == "friendica.example.com" {
    server.document-root = "/var/www/friendica"
#   Got the following 'Drupal Clean URL'after Mike suggested trying
#   something along those lines, from user 'drupik' at
http://drupal.org/node/1414950                         
    url.rewrite-if-not-file = (
         "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
         "^\/(.*)$" => "/index.php?q=$1"
    )
}

I even went and got an SSL certificate from StartCom ("cheap charlie",
that's me!), will try making the .pem used for a subdomain specific,
too, since StartCom only gives one free cert subdomin, wildcards cost. 
And I think its not entirely a bad idea to have a cert for Friendica, a
different one for WordPress, and third for mail.  (Anybody have any
insight into this?)

However, my Exim needs a wee tweak: my registration email was frozen.
(*Love* the red light/green light thing, btw. Nice. :)

Tobias:
By all means, please do put this in the wiki.  I hereby put that puppy
into the public domain, gladly.

Chris, aka 'bitmonki'