[analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
Hi, First off, many thanks to the analog development (team? person?) for a very useful tool. I'm running analog 5.24 under freebsd 4.6.2. I have a very straightforward requirement but I can't seem to get analog to do what I want. We have a number of private pages and directories that we don't want to show up in the analog output under any circumstances. People are mostly interested in hits to their own pages so we're using the cgi form to allow them to search. So in analog.cfg I have (the current attempt): FILEINCLUDE /~secret/ FILEEXCLUDE /~secret/* This is so that the default behavior is to exclude pages which don't match the search criteria entered in the web form. (I've tried FILEINCLUDE * for the first line but that results in analog hanging indefinitely when no other includes or excludes are specified in the web form) Unfortunately this cfg prevents printing out the overall site (minus ~secret). Also, if someone explicitly asks for ~secret, analog hangs. What am I missing? It seems like it should be possible to always exclude certain pages from the printout. Thanks for any help!! Rich + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
Rich Winkel [EMAIL PROTECTED] wrote: FILEINCLUDE /~secret/ FILEEXCLUDE /~secret/* ??? Why are you using FILEINCLUDE at all? If you want to EXCLUDE /~secret, just use FILEEXCLUDE /~secret/* Unfortunately this cfg prevents printing out the overall site (minus ~secret). Also, if someone explicitly asks for ~secret, analog hangs. What am I missing? It seems like it should be possible to always exclude certain pages from the printout. Settings in the default analog.cfg can be over-ridden by settings in the form, so you should include any FILEEXCLUDES that you don't want over-ridden in the mandatory config file, which you can specify when you compile the program. Aengus + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
According to Aengus: Rich Winkel [EMAIL PROTECTED] wrote: FILEINCLUDE /~secret/ FILEEXCLUDE /~secret/* ??? Why are you using FILEINCLUDE at all? If you want to EXCLUDE /~secret, just use FILEEXCLUDE /~secret/* If I do that and don't specify any includes or excludes in anlgform.pl, then analog hangs. It just goes to sleep and never wakes up. There are no errors in the logs. Following are the first few lines of my current analog.cfg, under which it's currently hanging. APACHELOGFORMAT (%h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\) LOGFILE /var/log/httpd-access.log LOGFILE /var/log/httpd-access.log.* DNS WRITE DNSFILE /var/spool/analog/dnscache DNSLOCKFILE /var/spool/analog/dnscache.lock HOSTNAME www.math.missouri.edu REQLINKINCLUDE pages REFLINKINCLUDE * REDIRREFLINKINCLUDE * FAILREFLINKINCLUDE * UNCOMPRESS *.gz,*.Z /usr/bin/gzip -cd SUBBROW */* SUBTYPE *.gz,*.Z FILEEXCLUDE /~secret/* (followed by the stock SEARCHENGINE, ROBOTINCLUDE and TYPEALIAS lines. I've also overriden the DNS NONE line in anlgform.pl, and set it to DNS WRITE. Thanks for any help! Rich + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
Rich Winkel ([EMAIL PROTECTED]; Wednesday, October 30, 2002 1:13 PM): If I do that and don't specify any includes or excludes in anlgform.pl, then analog hangs. It just goes to sleep and never wakes up. I've also overriden the DNS NONE line in anlgform.pl, and set it to DNS WRITE. It's not sleeping or hanging it's doing DNS lookups. That's why the DNS NONE is in anlgform.pl. You can't do DNS lookups in real time. You should use a third-party DNS tool (see http://analog.cx/helpers/) to do lookups and have Analog only read the values. -- Jeremy Wadsack Wadsack-Allen Digital Group + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
According to Jeremy Wadsack: It's not sleeping or hanging it's doing DNS lookups. That's why the DNS NONE is in anlgform.pl. You can't do DNS lookups in real time. You should use a third-party DNS tool (see http://analog.cx/helpers/) to do lookups and have Analog only read the values. DOH!!! Thank you!!! That fixed it! Rich + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
Rich Winkel [EMAIL PROTECTED] wrote: I've also overriden the DNS NONE line in anlgform.pl, and set it to DNS WRITE. There's your problem. Never do DNS WRITE from the form. Analogs DNS lookups are slow, and will invariably cause anlgform.pl to time out. Aengus + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
According to Jeremy Wadsack: Can you define the problem more clearly? What is it you want the form to do. Obviously you want it to remove certain files (~secret/*) but how should the rest of it function? Sorry, I just want it to exclude certain files regardless of the search criteria entered in anglform.pl. I guess I need to tinker with anglform.pl ? Rich + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +
Re: [analog-help] Mixing FILEEXCLUDES and FILEINCLUDES with anlgform.pl
Rich Winkel ([EMAIL PROTECTED]; Wednesday, October 30, 2002 5:23 PM): According to Jeremy Wadsack: Can you define the problem more clearly? What is it you want the form to do. Obviously you want it to remove certain files (~secret/*) but how should the rest of it function? Sorry, I just want it to exclude certain files regardless of the search criteria entered in anglform.pl. I guess I need to tinker with anglform.pl ? Or just specify a mandatory config file when you compile Analog (in anlghead.h) and put your exclusions in there. -- Jeremy Wadsack Wadsack-Allen Digital Group + | This is the analog-help mailing list. To unsubscribe from this | mailing list, go to |http://lists.isite.net/listgate/analog-help/unsubscribe.html | | List archives are available at |http://www.mail-archive.com/analog-help;lists.isite.net/ |http://lists.isite.net/listgate/analog-help/archives/ |http://www.tallylist.com/archives/index.cfm/mlist.7 +