DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#51 2007-09-15 01:08:50

tsmalmbe
Member
From: Finland
Registered: 2007-09-15
Posts: 7
Website

Re: lighttpd + php

I also get the "Can't modify /usr/local/lib/mod_dirlisting.so's text section. Use GCC option -fPIC for shared objects, please."

The normal lighttpd works, but with ssl and/or pcre, it doesn't.

Offline

 

#52 2007-09-26 05:15:14

artefax
Member
Registered: 2007-02-02
Posts: 17

Re: lighttpd + php

I try to set restrictions to web server acces using parameters in lighttpd.conf

Code:

#Authentication configuration
auth.debug                  = 0
auth.backend                = "plain"
auth.backend.plain.userfile = "/mnt/HD_a2/lighttpd/lighttpd-plain.user"

# Set Restrictions:
#
# ( <left-part-of-the-url> =>
#   ( "method" => "digest"/"basic",
#     "realm" => <realm>,
#     "require" => "user=<username>|user=<username>|valid-user" )
# )
#
# <realm> is a string to display in the dialog presented to the user

auth.require = ( "/downloads/" =>
                 (
                   "method"  => "digest",
                   "realm"   => "Web Server",
                   "require" => "valid-user"
                 )
               )

Of course, I've a lighttpd-plain.user file in lighttpd directory. In this file, I just put :

Code:

toto:tata

But I don't get any restriction of access to the files.
lighttpd stays wide open ... smile

I really to know what I've done wrong...  sad

Artefax

Offline

 

#53 2007-09-27 04:37:47

TheWalt
Member
Registered: 2006-09-12
Posts: 39

Re: lighttpd + php

As typed it should only ask for authentication when accessing the 'downloads' folder off your web root.  So for example going to http://localhost will not prompt, but http://localhost/downloads will.

Is this still not the case?

Offline

 

#54 2007-09-27 11:11:12

artefax
Member
Registered: 2007-02-02
Posts: 17

Re: lighttpd + php

...

ok, I should buy some new eyes !
Thank for yours !! wink

Now, it's working great.

Next step : encryption !!

thanks again.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB