PDA

View Full Version : Lighttpd and Vlogger


Pixa
25th February 2008, 03:28
Hello.

I get an irritating problem after following the how-to:
The scripts creating log files works a bit too god ;)

logs are generated fine, but I get a lot of mistyped log files:

/var/log/lighttpd
domain.tld
www.domain.tld
blahh.domain.tld
khvug.domain.tld
something.domain.tld

and so it continues...
each time someone mistypes something.domain.tld or uses www.domain.tld
all blahh.domain.tld gets it own logs when it should be in domain.tld

How do I solve this problem?

Best Regards Morten

falko
25th February 2008, 18:34
Do you have a CatchAll DNS record for your domain?

Pixa
25th February 2008, 22:03
Yes, *.domain.tld goes to domain.tld

The problem I guess is that it takes the domain from the combined log and not from the configured virtual host?

Does that mean that I can't use vlogger if I need to see the visitor’s entry point with webalizer?

falko
26th February 2008, 20:31
The problem I guess is that it takes the domain from the combined log and not from the configured virtual host?

Yes, that's right. Maybe you can resolve the problem with the mod_rewrite module: http://trac.lighttpd.net/trac/wiki/Docs:ModRewrite