Software :: Get Per Directory Configuration In Lighttpd Aka Htaccess?
Aug 17, 2010
the questions is how to get per directory config working for lighttpd? so far from googling i've seen people trying to use conditionals to match certain rules for a vhost , but i don't think that messing around with the main config file for each directory/vhost/whatever is such a good idea.
More importantly , i'm looking for a standardized method to achieve this which would work by simple putting an htaccess-like file into a directory and do the magic. i'm not interested in maintaining apache htaccess syntax , only to get the per directory config to work regardless of the syntax used.
what the procedure is to file bugs against slackware so I will post here. The rc.lighttpd I have works but the function to check if lighttpd is running has an exception when there's no lighttpd.
I installed AWSTATS on my LAMP 10.04 LTS and followed several tutorials URL...) but I can't secure the folder, either by an alias or by .htaccess. I tried both methods manually and by using Webmin.If you go to the URL www.mywebsite/awstats/awstats.pl it shows up, which is good, but this is the default installation site and anyone who knows awstats could possibly see my stats. The conf folder is /etc/awstats/, and I did an alias for that, then .htacess, but neither worked. With the .htaccess, I would get a password promt but the full stats page was visible behind the password promt, and if you clicked "Cancel" about 20 times or so the promt would go away and the full stats page would be visible.
The actual file that powers awstats is in /usr/share/lib/cgi-bin/awstats.pl, and I also tried an Alias and .htaccess seperately and neither worked.I restarted apache2 after each change and I've searched several forums, but I still can't figure this out.
I am using Apache with Kerberos security enabled. The http page simply lists the directories contained in /var/www/html. I want to make only one of the directories in the document root secured so that when someone clicks on it, it requires him/her to enter credentials. Right now when I place the .htaccess file in the directory I want to protect, the directory is hidden from the list and the user has to enter the whole path to get authenticated and access the files.
I've tried Options +Indexes which was posted all over the net, but it didn't work.
Lighttpd works correctly under debian, but not Ubuntu 10.04. Lighttpd does not start automatically, and when I try to start it from the command line, I get: lighttpd "No configuration available. Try using -f option"
I have some errors when run the mount -all command: mount: wrong fs type, bad option, bad superblock on /dev/sdc5, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so Failed to open /proc/filesystems: No such file or directory
Yum answers that it does not contain lighttpd or lua in the repositories (base,updates,addons,extra). Where can I find a repository containing these packages or should I revert to building myself ?
I am running CentOS 5.5 Final on my VPS and IO am using lighttpd for a webserver. I am trying to find a way to upgrade this to the latest version using Yum.I want to find a repository that will allow me to upgrade to lighttpd-1.4.26-2.el5 with the required dependencies. I would also like to do the same for LUA 5.1.4.I have found older versions of lighttpd but not the latest in an RPM / Yum installable version. I have found tarballs and binary version but I am of the understanding that I should use yum to manage my packages to keep the system neat and easy to upgrade / remove etc. in future.
Can anyone advise me as to where I can find these programs and how I would connect to the right repository to get them.
We are able to stream the video fine from while the flv file is located in the /var/videos/flv folder. We have a second volume that we formatted and mounted as /media/data/videos/flv. We have changed the path in the lighttpd config file to match this. When we play the video we are receiving:200, Stream not found, NetStream.Play.StreamNotFound, clip" "[Clip]"/media/data/videos/flv/test.flv".
How do I stop Lighttpd server from auto starting when I boot? I'm using it on my laptop for testing and I'd like to turn it on when I need it but not have it autostart.
Lighttpd anti-hotlinking for images i just want these domain to link my imgages (test1.com,newtest2.cn,800keke.net,800org.com.cn),the other site will be redirect to [url].
lighttp configuration :
Code:
This configure onle effect to test1.com. no effect to (newtest3.cn,800keke.net,800org.com.cn. i still dont know why..
I'm trying to configure lighttpd to send SCGI requests to different ports, depending on what file(s) are accessed. Is this possible? This is what I've tried, and it hasn't worked.
I had directory inside www that is gone. I am not sure if I removed it my mistake somehow or there is something weird going on. How would I track down what happened to this directory?
I am not fully sure if this belongs more to the networking section or the software. O hope it is related to here enough.
My problem is as the topic says.
My port 80 seems to be already taken. lighttpd fails to start reporting that it cannot bind to port cause its already taken. The error message itself:
Code: "Starting web server: lighttpd2010-02-21 07:01:02: (network.c.345) can't bind to port: :: 80 Address already in use failed!"
I am not able to crack this by myself. Ihve tried investigating this by
Code: lsof -i :80 netstat -ape | grep -v unix
First doesn't show anything second anything abt port 80.
Now hints I can think of. Maybe you have more experience and ideas what I can do and where should I look for the culprit.
I am using debian (unstable) and lighttpd. I even tried rebooting; it says that the port is taken already at the boot sequence (well it starts pretty much at end anyway but the system should be clean).
It seems that it started failing after a major distro update, so maybe there are some conflicts based on ipv6/v4 or something, though I have no idea what it could be. Well my hit for that is the part of error msg "bind to port: :: 80 ". This "::" looks like ipv6 naming convention. Maybe its lighttpd internal.
I have been searching in the forum and google but still not lucky enough to figure out yetI have a lighttpd server runningbecause apache consume so much CPU and memory) andqmailtoaster (just setup).Here is the configuration in cgi modules:
I have followed all the steps as mentioned on documentation.except automake (I am not clear as where to make automake)
I logged in as Root on a Ubuntu system and then
Code: cd /opt svn checkout svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x/ cd lighttpd-1.4.x ./autogen.sh ./configure make make install
After this what do I need to do to be able to start the lighttpd ?After this I did not found any script /etc/init.d/lighttpd. so what more has to be done ?
I ran across the above article, which described a DoS attack in which requests are sent very slowly to the Web server. I'm running lighttpd 1.4.28 on a Gentoo Linux server, and I'm wondering if there is anything I could do in preparation to defend against such an attack.
A bug report [url] seems to indicate that there was a patch in place already against this sort of attack, but I wanted to be sure that was the same thing and if there was anything else I needed to do.
This is what I did till now and all was installed with success: yum update wget [URL] yum install lighttpd chkconfig --levels 235 lighttpd on /etc/init.d/lighttpd start Must I configure something else too? if yes... what?
I've got a problem when I try to use to load modules like when I try : modprobe tun It says : FATAL: Could not load /lib/modules/2.6.32-4-pve/modules.dep: No such file or directory I've checked in my filesystem, the directory 2.6.32-4-pve doesn't exist, instead I have 2.6.39.2.110628 So how could I make modprobe look into the right directory ?
I have successfully connected (and authenticated the user) from linux (Ubuntu) to Active Directory (windows 2003) using "Likewise Open".
1. at the login screen I have to enter "example.localusername" to login. how can I simplify the login so that the user can choose (click)the domain and just enter the username and password (like the login in windows) or make the domain the default.
2. how can I configure the default user profile? meaning, when the user login for the first time, I want to configure his profile. does it use the "/etc/skel" directory like the regular local login?
I installed lighttpd to be able to view cgi files that display the status of my UPS. For the most part is has worked w/o incident i.e. until recently when the UPS battery failed on my APC backups xs 1500 lcd. I could not view the multimon.cgi file via the localhost or 127.0.0.1 url e.g.: [URL]... I'd get 404 page not found message. After checking links here and on the web, I tried: [URL]... The page is displayed. From this discovery, I'm not sure that this is a web server configuration or a network host configuration issue or what. I'm running Lucid with all updates, no mods to lighttpd except I added the mod_fastcgi line to the lighttpd.conf file