Ticket #732 (new defect)

Opened 2 years ago

Last modified 2 years ago

mod_simple_vhost doesn't fire?

Reported by: anonymous Assigned to: jan
Priority: normal Milestone:
Component: core Version: 1.4.11
Severity: normal Keywords:
Cc: Blocking:
Need Feedback:

Description

Tried this with - unstable debian package (1.4.11.?) - source build from 1.4.11 tgz - from svn except it was borked so.. =)

I have a simple setup on the server monitor.servedge.com (see attached config) Instead of simple_v picking this up, it gets routed to the normal static doc root.

- I'm just requesting "/". /home/servers/monitor.servedge.com/index.html exists and is readable/exable by all. - I tried reconfiguring to use "pages" instead of "/./" for the simple_v doc root extension directory, but that didn't help (and I also use /./ successfully with lighty on other servers). - I have a very similar config on other boxes with no problem. This is a debian 3.1 system running on a Virtuozzo i686 virtual machine from Teknic. - I don't have anything important on that box yet so if you want a login on it or something for testing purposes, let me know (I'm anonymouse on #lighttpd) - The config and request logs were from yesterday and I just generated the strace now, so any variance you see might be from that. I requested the same URL though and the config is almost identical both times.

Config http://rafb.net/paste/results/Jv1Z8635.html Debug log http://rafb.net/paste/results/pywBpZ53.html Strace http://monitor.servedge.com/lighttpd.trace

Ping me @irc if you need more info, retest, access, etc.

Attachments

error.log (2.0 kB) - added by anonymouse on 07/04/2006 02:31:13 PM.
debug log
lighttpd.conf (4.6 kB) - added by anonymouse on 07/04/2006 02:31:44 PM.
lighttpd.trace (78.8 kB) - added by anonymouse on 07/04/2006 02:32:14 PM.

Change History

07/04/2006 02:31:13 PM changed by anonymouse

  • attachment error.log added.

debug log

07/04/2006 02:31:44 PM changed by anonymouse

  • attachment lighttpd.conf added.

07/04/2006 02:32:14 PM changed by anonymouse

  • attachment lighttpd.trace added.

07/11/2006 11:44:49 AM changed by anonymouse

$100USD bounty to whoever helps me get this to work. see <anonymouse> in #lighttpd

08/10/2006 10:56:44 PM changed by dhazeghi@yahoo.com

Umm... Unless I'm misreading terribly, your config is wrong. Change simple-vhost.document-root = "pages" To simple-vhost.document-root = ""

Per the documentation, virtual hosts are searched for by:

document-root = virtual-server-root + http-host + virtual-server-docroot

So in your case, it was previously searching for: /home/servers/mountedge.com/pages/index.html

(follow-up: ↓ 4 ) 09/08/2006 12:03:17 AM changed by anonymous

lighttpd process does not have access to your vhost directory. Make sure that you have set up the permissions properly - not only for the directory itself but for all path from /.

(in reply to: ↑ 3 ) 09/08/2006 12:22:28 AM changed by anonymous

Replying to anonymous:

lighttpd process does not have access to your vhost directory. Make sure that you have set up the permissions properly - not only for the directory itself but for all path from /.

465 02:35:44.045771 stat64("/home/servers/monitor.servedge.com/pages/", 0xbfffee30) = -1 EACCES (Permission denied) 466 02:35:44.045847 stat64("/home/servers/blank/pages/", 0xbfffee30) = -1 EACCES (Permission denied)


Add/Change #732 (mod_simple_vhost doesn't fire?)




Change Properties