Re: from pppoe(8) to pppoe(4) - how to run a script on IP address change?
Don't leave zombies behind. Collect your children or ignore SIGCHLD. On Fri, Jul 9, 2010 at 6:31 PM, Matthew Dempsky matt...@dempsky.org wrote: On Sat, 10 Jul 2010 00:02:16 +0200, Christian Taube c.ta...@hcf.yourweb.de wrote: What I am missing now is a way to run a script when the IP address on the pppoe interface changes. There seems to be no mechanism like the /etc/ppp/ppp.linkup script provided by the user-space pppoe(8) driver. You might try the program below. Just compile with: cc -O2 -o watchaddr watchaddr.c You can then run something like: ./watchaddr -i pppoe0 /path/to/script and whenever an address is added to or removed from pppoe0, /path/to/script will be run. Omit the -i pppoe0 option, and it will run when an address changes on any interface. Beware that changing an address involves an address both being removed and being added, so your script will run twice. (It looks like this functionality could easily be added to ifstated(8), but a diff for that would be a bit more involved than whipping up this one off program. ;-) #include sys/types.h #include sys/socket.h #include net/if.h #include net/route.h #include err.h #include errno.h #include unistd.h #include stdio.h #include stdlib.h void usage(void) { extern char *__progname; fprintf(stderr, usage: %s [-i interface] command ...\n, __progname); exit(1); } int main(int argc, char *argv[]) { char msg[2048]; int fd; ssize_t n; pid_t pid; struct rt_msghdr *rtm; struct ifa_msghdr *ifam; unsigned int rtfilter; unsigned int ifindex = 0; int ch; while ((ch = getopt(argc, argv, i:)) != -1) { switch (ch) { case 'i': ifindex = if_nametoindex(optarg); if (ifindex == 0) errx(1, no interface: %s, optarg); break; case '?': default: usage(); } } argc -= optind; argv += optind; if (argv[0] == NULL) usage(); fd = socket(PF_ROUTE, SOCK_RAW, 0); if (fd == -1) err(1, unable to open route socket); rtfilter = ROUTE_FILTER(RTM_NEWADDR) | ROUTE_FILTER(RTM_DELADDR); if (setsockopt(fd, PF_ROUTE, ROUTE_MSGFILTER, rtfilter, sizeof(rtfilter)) == -1) err(1, unable to set route message filter); for (;;) { n = read(fd, msg, sizeof(msg)); if (n == -1) { if (errno == EINTR) continue; err(1, unable to read from route socket); } if (n == 0) errx(1, eof on route socket); rtm = (struct rt_msghdr *)msg; if (n sizeof(rtm-rtm_msglen) || n rtm-rtm_msglen) { warnx(route message truncated); continue; } if (rtm-rtm_version != RTM_VERSION) { warnx(bad route message version); continue; } if (rtm-rtm_type != RTM_NEWADDR rtm-rtm_type != RTM_DELADDR) { warnx(unexpected route message); continue; } ifam = (struct ifa_msghdr *)rtm; if (ifindex != 0 ifam-ifam_index != ifindex) continue; pid = fork(); if (pid == -1) { warnx(unable to fork child); continue; } if (pid == 0) { execvp(argv[0], argv); err(1, unable to exec command); } } /* NOTREACHED */ }
Re: need help --reboot of newly installed OpenBSD 4.7 on Toshiba Libretto 70 neds in integet divide fault trap
Will do. Any other request -- like additional log level or something? /wbr Ariel Burbaickij On Sat, Jul 10, 2010 at 7:58 AM, Joel Sing js...@openbsd.org wrote: Hi Ariel/Fred, Could one of you please try a current kernel with softraid disabled (boot with 'bsd -c' and type 'disable softraid' and then 'quit' at the UKC prompt) and let me know if this resolves the issue? Thanks, Joel On Saturday 10 July 2010, Ariel Burbaickij wrote: Googling for following string cpu_switchto OpenBSD libretto shows that it is fairly common, it happened to several people. Actually, I gleaned the code -- they pretty much are related and it is strange place to crash with the message about integer division fault. What is the procedure to open bug report in OpenBSD? /wbr Ariel Burbaickij On Fri, Jul 9, 2010 at 7:07 PM, Hugo Villeneuve harpa...@jwales.eintr.net wrote: On Fri, Jul 09, 2010 at 11:20:51AM +0200, Ariel Burbaickij wrote: Hello all, following situation: I installed OpenBSD 4.7 on Toshiba Libretto 70 4.7 using hard drive donor installation method, i.e. I used the original Libretto harddrive and installed OpenBSD 4.7 from install47.iso on it using different machine. Space is left on the disk for hybernation information to be saved. Once installed back to Libretto 70 I am able to boot but only up to following point (last 3 messages from dmesg and message from kernel): vscsi0 at root scsibus0 at vscsii0: 256 targets softraid0 at root kernel: integer divide fault trap, code=0 Stopped at cpu_switchto+0x76 My Compaq 433 20MB upgraded to 486DX2 stop one instruction before that. So it's probably unrelated. http://eintr.net/temporaire/GENERIC.47.issue.full.txt I thought it was a combinaison of low memory (originaly 12MB and then 20MB) and the archaic hardware being left behind so I haven't made an proper bug yet. But the machine works with a slimed-down 4.7 kernel. (One where every non-necessary driver is commented.) Good luck. Me, I run that machine with 4.3 because I sometime needs feature of pccom that aren't in com. -- Hugo Villeneuve -- Stop assuming that systems are secure unless demonstrated insecure; start assuming that systems are insecure unless designed securely. - Bruce Schneier
Re: usb memory stick failing
On Fri, 9 Jul 2010 17:29:18 +0200 Renzo rfabr...@nerdshack.com wrote: On Friday 09 July 2010 08:54:15 patrick keshishian wrote: Hi, I recently attempted an installation from a usb memory stick, where installation of xfont47.tgz failed consistently due to crc error[0]. The stick was prepared following steps from OBSD FAQ[1]. I recopied xfont47.tgz file to the stick, and confirmed (or so I thought) that the source and new copy of this file were identical using cmp(1). Restarting the install bombed on the same file. So I stuck the stick in my source computer and mounted it and ran md5(1) on it. Sure enough the checksum is different from the source. I did a umount(8) and a mount(8), then ran md5(1) again, and this time yet a new value was reported. While mounted, running md5(1) again reports the same value -- i assume this is because the file is cached at this point -- explaining why cmp(1) initially failed to raise a flag. Every umount(8), mount(8) and md5(1) gives a new result: In adition to previous answers: http://www.undeadly.org/cgi?action=articlesid=20100404103735 The article didn't stress enough how important it is to fsck. Hmmm... I should probably rephrase that, but it's true either way. ;) jcr -- The OpenBSD Journal - http://www.undeadly.org
Re: usb memory stick failing
On Sat, Jul 10, 2010 at 2:21 AM, J.C. Roberts list-...@designtools.org wrote: On Fri, 9 Jul 2010 17:29:18 +0200 Renzo rfabr...@nerdshack.com wrote: On Friday 09 July 2010 08:54:15 patrick keshishian wrote: Hi, I recently attempted an installation from a usb memory stick, where installation of xfont47.tgz failed consistently due to crc error[0]. The stick was prepared following steps from OBSD FAQ[1]. I recopied xfont47.tgz file to the stick, and confirmed (or so I thought) that the source and new copy of this file were identical using cmp(1). Restarting the install bombed on the same file. So I stuck the stick in my source computer and mounted it and ran md5(1) on it. Sure enough the checksum is different from the source. I did a umount(8) and a mount(8), then ran md5(1) again, and this time yet a new value was reported. While mounted, running md5(1) again reports the same value -- i assume this is because the file is cached at this point -- explaining why cmp(1) initially failed to raise a flag. Every umount(8), mount(8) and md5(1) gives a new result: In adition to previous answers: http://www.undeadly.org/cgi?action=articlesid=20100404103735 The article didn't stress enough how important it is to fsck. Hmmm... I should probably rephrase that, but it's true either way. ;) that was a great article. thanks for the reference. running fsck on that stick doesn't show any issues. I ran it twice. --patrick
Re: usb memory stick failing
On Sat, Jul 10, 2010 at 02:46:11AM -0700, patrick keshishian wrote: On Sat, Jul 10, 2010 at 2:21 AM, J.C. Roberts list-...@designtools.org wrote: On Fri, 9 Jul 2010 17:29:18 +0200 Renzo rfabr...@nerdshack.com wrote: On Friday 09 July 2010 08:54:15 patrick keshishian wrote: Hi, I recently attempted an installation from a usb memory stick, where installation of xfont47.tgz failed consistently due to crc error[0]. The stick was prepared following steps from OBSD FAQ[1]. I recopied xfont47.tgz file to the stick, and confirmed (or so I thought) that the source and new copy of this file were identical using cmp(1). Restarting the install bombed on the same file. So I stuck the stick in my source computer and mounted it and ran md5(1) on it. Sure enough the checksum is different from the source. I did a umount(8) and a mount(8), then ran md5(1) again, and this time yet a new value was reported. While mounted, running md5(1) again reports the same value -- i assume this is because the file is cached at this point -- explaining why cmp(1) initially failed to raise a flag. Every umount(8), mount(8) and md5(1) gives a new result: In adition to previous answers: http://www.undeadly.org/cgi?action=articlesid=20100404103735 The article didn't stress enough how important it is to fsck. Hmmm... I should probably rephrase that, but it's true either way. ;) that was a great article. thanks for the reference. running fsck on that stick doesn't show any issues. I ran it twice. --patrick Only a small portion of blocks are used for meta data and directories, so fsck only checks consistency of a small part of a filesystem. -Otto
Re: from pppoe(8) to pppoe(4) - how to run a script on IP address change?
Am Fri, 9 Jul 2010 18:31:33 -0700 schrieb Matthew Dempsky matt...@dempsky.org: You might try the program below. Just compile with: cc -O2 -o watchaddr watchaddr.c You can then run something like: ./watchaddr -i pppoe0 /path/to/script I just fiddled around with your program and I think I can make use of it. Thanks for your help!
Re: Music + NFS == skipping?
On 07/10/10 01:04, Corey J. Bukolt wrote: On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote: On Jul 09 04:56:38, Corey J. Bukolt wrote: On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote: On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote: Hi list, So far I have been able to get OpenBSD running nicely as my primary desktop with the only hitch being my NFS mounted music skips occasionally. I'm pretty sure it's not the NFS server since my Linux laptop has the same setup and doesn't skip. I'm using mpd to play the music, with a gigbit connection leading to a dedicated file server which has practically no load. Already gone over mount_nfs(8) and tried a whole bunch of different options with no luck. What NFS server is it? How exactly is the NFS share exported on the server side? How exactly is the share mounted on your clients? The NFS server is FreeNAS (FreeBSD 7.2). Exports line: /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 192.168.0.250 -mask 255.255.255.255 Linux client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0 OpenBSD client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs ro,noexec,nodev,nosuid 0 0 The OpenBSD client is 4.7-stable AMD64 GENERIC.MP You have some local debugging to do. I've run music over NFS for close to ten years, with servers (all OpenBSD) ranging from 133MHz P-I to 1GHz P3, workstations running from 266MHz PIIs to 2.3GHz AMD64x3 processors. Never had gigabit links. Early on, it was probably a 100mbps hub, maybe even 10mbps (can't remember when I installed my 100mbps infrastructure, or when I went to switches, I do remember ripping CDs directly on my 166MHz server because it was faster than alternatives). Audio devices ranged from old ISA devices to quite modern hardware. No NFS-related problems here. Therefore, I conclude that it isn't an intrinsic OpenBSD problem (and I'm pretty sure you and I aren't the only ones running mp3 files over NFS). There's either something about your PARTICULAR system (which you STILL refuse to describe, please go smack your hand with a ruler), or something wrong with your infrastructure. Go get yourself an old three-digit clock speed machine with 128m of RAM or more, put OpenBSD on it, put some mp3 files on it, set up NFS, put it on a different switch and different wires than you are currently using and see if it works. If so, look over everything else. If not, provide a useful problem report (which is NOT what you have been doing). Nick. Hint, this works: OpenBSD 4.7-current (GENERIC.MP) #94: Wed Jul 7 01:22:26 MDT 2010 dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP (note that I didn't stop here...) real mem = 3486384128 (3324MB) avail mem = 3379736576 (3223MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (46 entries) bios0: vendor Award Software International, Inc. version FB date 03/03/2009 bios0: Gigabyte Technology Co., Ltd. GA-MA74GM-S2 acpi0 at bios0: rev 0 acpi0: tables DSDT FACP SSDT HPET MCFG APIC acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) PCE8(S4) PS2M(S5) PS2K(S5) PCI0(S5) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpihpet0 at acpi0: 14318180 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Phenom(tm) 8650 Triple-Core Processor, 2316.66 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: apic clock running at 201MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Phenom(tm) 8650 Triple-Core Processor, 2316.33 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD Phenom(tm) 8650 Triple-Core Processor, 2316.33 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu2: ITLB 32 4KB entries fully associative, 16
Aguardo sua confirma��o.
Prezado Cliente, Deposito Efetuado Segue em anexo o comprovante de Deposito em conta; Pedimos que confira seus dados e extrato e verifique se todas as informagues e valores estco corretos Atenciosamente, Haroldo Riello Assessoria Financeira Unilever S/A (Unileversa.com) Av. Juscelino Kubitschek, 1309 - Sco Paulo - Brasil Comprovante Depssito Aguardo sua confirmagco.
302 redirection doesn't work ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to configure apache like this: when pages were not found on server , it returns a document moved message (301 or 302) , rather than a 404 error. So i put those: ErrorDocument 404 /error.html Rediret 302 /error.html http://my.host/ But still , it's a 404 error , additionally , a 302 Found error was encountered while trying to handle the request. Any ideas will appreciate , thanks ! - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw4cHAACgkQvf41sEptMqC8ygCcDENoz7EgrQjUiZBOJF9/c9gZ 4XkAoJRAKFDf9J17nqECHc0CuaMnyxJH =A5mN -END PGP SIGNATURE-
Re: from pppoe(8) to pppoe(4) - how to run a script on IP address change?
On Fri, 9 Jul 2010 23:23:52 -0700, patrick keshishian pkesh...@gmail.com wrote: Don't leave zombies behind. Collect your children or ignore SIGCHLD. Sigh, yeah... I meant to handle that, but then got side tracked and forgot to fix it when I came back to send the email. Oh well, updated zombie-proof version below. #include sys/types.h #include sys/socket.h #include sys/param.h #include net/if.h #include net/route.h #include stdlib.h #include stdio.h #include unistd.h #include errno.h #include err.h void usage(void) { extern char *__progname; fprintf(stderr, usage: %s [-i interface] command ...\n, __progname); exit(1); } int main(int argc, char *argv[]) { char msg[2048]; int fd; ssize_t n; pid_t pid; struct rt_msghdr *rtm; struct ifa_msghdr *ifam; unsigned int rtfilter; unsigned int ifindex = 0; int ch; while ((ch = getopt(argc, argv, i:)) != -1) { switch (ch) { case 'i': ifindex = if_nametoindex(optarg); if (ifindex == 0) errx(1, no interface: %s, optarg); break; case '?': default: usage(); } } argc -= optind; argv += optind; if (argv[0] == NULL) usage(); fd = socket(PF_ROUTE, SOCK_RAW, 0); if (fd == -1) err(1, unable to open route socket); rtfilter = ROUTE_FILTER(RTM_NEWADDR) | ROUTE_FILTER(RTM_DELADDR); if (setsockopt(fd, PF_ROUTE, ROUTE_MSGFILTER, rtfilter, sizeof(rtfilter)) == -1) err(1, unable to set route message filter); for (;;) { n = read(fd, msg, sizeof(msg)); if (n == -1) err(1, unable to read from route socket); if (n == 0) errx(1, eof on route socket); rtm = (struct rt_msghdr *)msg; if (n sizeof(rtm-rtm_msglen) || n rtm-rtm_msglen) { warnx(route message truncated); continue; } if (rtm-rtm_version != RTM_VERSION) { warnx(bad route message version); continue; } if (rtm-rtm_type != RTM_NEWADDR rtm-rtm_type != RTM_DELADDR) { warnx(unexpected route message); continue; } ifam = (struct ifa_msghdr *)rtm; if (ifindex != 0 ifam-ifam_index != ifindex) continue; pid = rfork(RFFDG | RFPROC | RFNOWAIT); if (pid == -1) { warnx(unable to fork child); continue; } if (pid == 0) { execvp(argv[0], argv); err(1, unable to exec command); } } /* NOTREACHED */ }
Re: 302 redirection doesn't work ?
Aaron Lewis aaron.lewis1...@gmail.com writes: ErrorDocument 404 /error.html Rediret 302 /error.html http://my.host/ ^ missing a 'c' here I think. If this is an actual cut'n'paste from your config, that's the likely source of your problem. - P -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ Remember to set the evil bit on all malicious network traffic delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Re: 302 redirection doesn't work ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/10/2010 09:57 PM, Peter N. M. Hansteen wrote: Aaron Lewis aaron.lewis1...@gmail.com writes: ErrorDocument 404 /error.html Rediret 302 /error.html http://my.host/ ^ missing a 'c' here I think. If this is an actual cut'n'paste from your config, that's the likely source of your problem. - P Nope , it's typo , if i typed something can't understand by apache , it won't start ;-) % nc localhost 80 -vvv GET /cc Not Found.. Additionally , a 302 Found error was encountered while trying to use a ErrorDocument to handle the request. - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw4f2IACgkQvf41sEptMqB4EwCfcc7gI6kxK/rI8brPAKGmKjri ewoAoNkEtHvf5tWP5AIj8Td5s1AnIM4z =rGBM -END PGP SIGNATURE-
Re: 302 redirection doesn't work ?
On 10 July 2010 16:06, Aaron Lewis aaron.lewis1...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, B B B B I'm trying to configure apache like this: when pages were not found on server , it returns a document moved message (301 or 302) , rather than a 404 error. B B B B So i put those: B B B B B B B B ErrorDocument 404 /error.html B B B B B B B B Rediret 302 /error.html http://my.host/ B B B B But still , it's a 404 error , additionally , a 302 Found error was encountered while trying to handle the request. B B B B Any ideas will appreciate , thanks ! Apart from the suggestion to check the spelling from Peter, you might also think of putting a javascript-based redirect in your custom error-404.html This is not the-best-way-to-do-it, because it won't work if you have js disabled or not present at all, but it's very simple and might serve your need. -- The best the little guy can do is what the little guy does right
OpenBSD + lighttpd + php5
Hello ! I'm trying to install lighttpd (no problem) and to add php to create a good web server. But, even if I didn't chroot lighttpd, I don't succeed. Have you any idea ? Regards. Logs : 2010-07-10 18:43:20: (log.c.166) server started 2010-07-10 18:43:20: (mod_fastcgi.c.1104) the fastcgi-backend /usr/local/bin/php-cgi failed to start: 2010-07-10 18:43:20: (mod_fastcgi.c.1108) child exited with status 2 /usr/local/bin/php-cgi 2010-07-10 18:43:20: (mod_fastcgi.c.) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version. If this is PHP on Gentoo, add 'fastcgi' to the USE flags. 2010-07-10 18:43:20: (mod_fastcgi.c.1399) [ERROR]: spawning fcgi failed. 2010-07-10 18:43:20: (server.c.931) Configuration of plugins failed. Going down. -- Lanciaux Maxime IngC)nieur Consultant BI junior Web : http://dl.dropbox.com/u/3485254/index.html
Re: 302 redirection doesn't work ?
On 07/10/10 15:06, Aaron Lewis wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I'm trying to configure apache like this: when pages were not found on server , it returns a document moved message (301 or 302) , rather than a 404 error. So i put those: ErrorDocument 404 /error.html Rediret 302 /error.html http://my.host/ But still , it's a 404 error , additionally , a 302 Found error was encountered while trying to handle the request. Any ideas will appreciate , thanks ! from stock httpd.conf: ... # Customizable error response (Apache style) # these come in three flavors # #1) plain text #ErrorDocument 500 The server made a boo boo. # n.b. the () marks it as text, it does not get output # #2) local redirects #ErrorDocument 404 /missing.html # to redirect to local URL /missing.html #ErrorDocument 404 /cgi-bin/missing_handler.pl # N.B.: You can redirect to a script or a document using server-side-includes. # #3) external redirects #ErrorDocument 402 http://some.other_server.com/subscription_info.html # N.B.: Many of the environment variables associated with the original # request will *not* be available to such a script. ... 3) above seems to apply to you. Did you try it? /Alexander
Re: OpenBSD + lighttpd + php5
On 7/10/2010 9:55 AM, mlanciau wrote: Hello ! I'm trying to install lighttpd (no problem) and to add php to create a good web server. But, even if I didn't chroot lighttpd, I don't succeed. Have you any idea ? What's the fastcgi configuration in lighttpd.conf look like? -- Matthew Weigel hacker unique idempot . ent
Re: Music + NFS == skipping?
On Jul 10 01:04:35, Corey J. Bukolt wrote: On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote: On Jul 09 04:56:38, Corey J. Bukolt wrote: On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote: On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote: Hi list, So far I have been able to get OpenBSD running nicely as my primary desktop with the only hitch being my NFS mounted music skips occasionally. I'm pretty sure it's not the NFS server since my Linux laptop has the same setup and doesn't skip. I'm using mpd to play the music, with a gigbit connection leading to a dedicated file server which has practically no load. Already gone over mount_nfs(8) and tried a whole bunch of different options with no luck. What NFS server is it? How exactly is the NFS share exported on the server side? How exactly is the share mounted on your clients? The NFS server is FreeNAS (FreeBSD 7.2). Exports line: /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 192.168.0.250 -mask 255.255.255.255 Linux client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0 OpenBSD client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs ro,noexec,nodev,nosuid 0 0 The output of 'mount -v' would be more useful. Have you tried using noatime or the -r option? Why not? The OpenBSD client is 4.7-stable AMD64 GENERIC.MP
Re: Can't get Printing with hp officejet 5610
On Jul 09 19:04:48, Donald Cooley wrote: I have an hp offficejet 5610 all-in-one printer. Following the instructions from pkg_add: To add a CUPS printer, use the 'hp-makeuri' command. e.g. for a network printer: $ hp-makeuri 192.168.10.100 ... CUPS URI: hp:/net/HP_LaserJet_5100_Series?ip=192.168.10.100 And I've read hp-makeuri -help and I'm stuck. I've tried sudo hp-makeuri serial_number/localhost/192.168.1.248 ,etc. each time I get error: Device not found Maybe I'm giving the wrong device. Could someone point me in the right direction? Get rid of CUPS, use print/foomatic-filters via the standard lpd.
TV'de Gördüğünüz Tüm Ürünler %80 İndirimli... Stoklarla Sınırlı Acele Edin !!!
a { color:#000; text-decoration:none; } a:hover { color:#d92a24; } .style3 { color: #FF0066; font-weight: bold; } .style4 { font-size: small; } .style5 { color: #d92a24; font-family: Tahoma; font-weight: bold; } .style6 { font-family: Tahoma; } .style7 { font-family: Tahoma; color: #d92a24; } .style8 { color: #d92a24; } TV'de Gouml;rduuml;puuml;nuuml;z Tuuml;m Uuml;ruuml;nler %80 ]ndirimli... Stoklarla S}n}rl} Acele Edin !!! Beklemek YOK ! Tuuml;m Uuml;ruuml;nler Stoklu Ayn} Guuml;n Kargo Kredi Kredi yada Nakit Kap}da Ouml;deme ]mkan} Ped Egg 16 Parccedil;a Manikuuml;r Pedikuuml;r Set Piyasa Fiyat} : 89 TL Bizde 44,89 TL Ped Egg Topuk Rendesi Sapl}kl} Ayak Bak}m} Piyasa Fiyat} : 19 TL Bizde : 6,90 TL Orjinal Sauna Etkili Terleme E~ofman} Piyasa Fiyat} : 49 TL Bizde: 33,89 TL Zay}flat}c} Sauna Etkili Terleme E~ofman} Piyasa Fiyat} : 41 TL Bizde: 29,89 TL 12 Gouml;zluuml; Ayakkab}l}k Shoes Under Piyasa Fiyat} : 29 TL Bizde : 19,89 TL Di~ Beyazlatma Seti Led I~}kl} + Jel Son Teknoloji Piyasa Fiyat} :49 TL Bizde: 19,89 TL Cosmodisc (Kosmodisk) Omurga Masouml;ruuml; Piyasa Fiyat} : 139 TL Bizde : 54,90 TL Orjinal Relax Tone Masaj Aleti Piyasa Fiyat} :129TL Bizde : 85,00 TL Neckline Slimmer (G}d}k Yok Edici) Piyasa Fiyat} :49 TL Bizde : 28,99 TL S}rt Korsesi Manyetik S}rt Yelepi Dr. Levine Tarz} Piyasa Fiyat} :25 TL Bizde : 14,90 TL Vibro Shape Yopurmal} Zay}flama ve Masaj Kemeri Piyasa Fiyat} :79 TL Bizde : 47,88 TL Orjinal Termal Sauna Sort + Lut Gouml;luuml; Tuzu Piyasa Fiyat} :49 TL Bizde: 32,89 TL Horlama Ouml;nleyici Cihaz 2 adet! Horlamaya Son Piyasa Fiyat} :44,9 TL Bizde : 25,00 TL Manyetik Dizlik ( 2 Dizlik+1 Bileklik ) dr levine Piyasa Fiyat} :49 TL Bizde : 11,49 TL Fix It Pro Sihirli Oto Ccedil;izik Giderici Kapat}c} Kalem Piyasa Fiyat} :59 TL Bizde : 29,90 TL Orjinal Slim N Lift Mucizevi Korse 2 Beden ]nceltir Piyasa Fiyat} :129 TL Bizde : 28,99 TL Table Mate II Pratik Masa Sehpa Piyasa Fiyat} :69 TL Bizde : 34,89 TL 5 Motorlu Programl} Masaj ve Zay}flama Kemeri Piyasa Fiyat} :58 TL Bizde: 28,90 TL Orjinal Sauna Termal Kemeri + Lut Gouml;luuml; Tuzul Piyasa Fiyat} :35 TL Bizde : 17,89 TL Walk Fit Ortopedik Ayak Tabanl}p}plusmn; 3 Ccedil;ift Beden Piyasa Fiyat} :24.90 TL Bizde: 18,90 TL Terletmeyen Ccedil;ift Ki~ilik ^i~me Yatak Piyasa Fiyat} :45 TL Bizde: 35,90 TL Terletmeyen Tek Ki~ilik ^i~me Yatak
Re: OpenBSD + lighttpd + php5
well. I have found a little error in my lighttpd.conf (the bin-path was wrong) fastcgi.server = ( .php = ( localhost = ( socket = /var/www/tmp/php-fastcgi.socket, bin-path = /usr/local/bin/php-fastcgi ) ) ) now it's ok, but it remains a problem... when I try to load a webpage, I get No input file specified. I have changed my php.ini but it's not enough... An other idea ? Regards. 2010/7/10 Matthew Weigel uni...@idempot.net: On 7/10/2010 9:55 AM, mlanciau wrote: Hello ! I'm trying to install lighttpd (no problem) and to add php to create a good web server. But, even if I didn't chroot lighttpd, I don't succeed. Have you any idea ? What's the fastcgi configuration in lighttpd.conf look like? -- B Matthew Weigel B hacker B unique idempot . ent -- Lanciaux Maxime IngC)nieur Consultant BI junior Web : http://dl.dropbox.com/u/3485254/index.html Twitter : http://twitter.com/Lanciaux_Maxime
İGED AKADEMİ: BEDEN DİLİ - HİTABET - İKNA ETME EĞİTİMİ (SERTİFİKALI)
This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible.
Re: OpenBSD + lighttpd + php5
On Sat, 10 Jul 2010 22:27:06 +0200, mlanciau mlanc...@gmail.com wrote: well. I have found a little error in my lighttpd.conf (the bin-path was wrong) fastcgi.server = ( .php = ( localhost = ( socket = /var/www/tmp/php-fastcgi.socket, bin-path = /usr/local/bin/php-fastcgi ) ) ) now it's ok, but it remains a problem... when I try to load a webpage, I get No input file specified. I have changed my php.ini but it's not enough... An other idea ? This isn't really an OpenBSD problem, or an OpenBSD port issue. Searching Google for lighttpd no input file specified would point you to http://redmine.lighttpd.net/wiki/1/FrequentlyAskedQuestions which would direct you to add cgi.fix_pathinfo = 1 to your php.ini. You may also find that you need to add 'broken-scriptfilename = enable' to your lighttpd configuration in the block where you specify the socket and bin-path, but I would recommend trying it without first. -- Matthew Weigel hacker unique idempot . ent
Re: OpenBSD + lighttpd + php5
On Saturday 10 July 2010 23:27:06 mlanciau wrote: [...] now it's ok, but it remains a problem... when I try to load a webpage, I get No input file specified. I have changed my php.ini but it's not enough... An other idea ? [...] Mismatching document root most likely. Check what lighttpd and php have for docroots. -- Antti Harri
Re: need help --reboot of newly installed OpenBSD 4.7 on Toshiba Libretto 70 neds in integet divide fault trap
On 10 July 2010 06:58, Joel Sing js...@openbsd.org wrote: Hi Ariel/Fred, Could one of you please try a current kernel with softraid disabled (boot with 'bsd -c' and type 'disable softraid' and then 'quit' at the UKC prompt) and let me know if this resolves the issue? Thanks, Joel Hi Joel, Booting with softraid disabled does not solve the issue. Hopefully, I'll find time over the next few weeks to do more investigations thanks Fred Output of boot process follows: Connected OpenBSD/i386 BOOT 3.02 boot bsd -c booting hd0a:bsd: /-\|/8127708-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/- \|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\ |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\| /-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/ -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/- \|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\ |/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+1088136\ [61+365104|/-\|/-\|/-\|/-\|/-\|/+350630-\|/-\|/-\|/-\|/-\|/-]=0x978d18 entry point at 0x200120 [ using 716212 bytes of bsd ELF symbol table ] Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. Copyright (c) 1995-2010 OpenBSD. All rights reserved. http://www.OpenBSD.org OpenBSD 4.7-current (GENERIC) #111: Sat Jul 10 00:33:14 MDT 2010 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium/MMX (GenuineIntel 586-class) 121 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,MCE,CX8,MMX real mem = 16478208 (15MB) avail mem = 6356992 (6MB) User Kernel Config UKC disable softraid 9 softraid0 disabled UKC quit Continuing... mainbus0 at root bios0 at mainbus0: AT/286+ BIOS, date 11/11/97 apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 100% apm0: AC on, battery charge high, charging pcibios at bios0 function 0x1a not configured bios0: ROM list: 0xe4000/0xc000 cpu0 at mainbus0: (uniprocessor) cpu0: F00F bug workaround installed isa0 at mainbus0 isadma0 at isa0 com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo com0: console com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 vga0 at isa0 port 0x3b0/48 iomem 0xa/131072 wsdisplay0 at vga0 mux 1: console (80x25, vt100 emulation), using wskbd0 wsdisplay0: screen 1-5 added (80x25, vt100 emulation) wdc0 at isa0 port 0x1f0/8 irq 14 wd0 at wdc0 channel 0 drive 0: BI-MDDAL2-6102 wd0: 16-sector PIO, LBA, 1551MB, 3177216 sectors wd0(wdc0:0:0): using BIOS timings sb0 at isa0 port 0x220/24 irq 5 drq 1: dsp v3.01 midi0 at sb0: SB MIDI UART audio0 at sb0 opl0 at sb0: model OPL3 midi1 at opl0: SB Yamaha OPL3 wss0 at isa0 port 0x530/8 irq 10 drq 0: CS4231 or AD1845 (vers 4) audio1 at wss0 pcppi0 at isa0 port 0x61 midi2 at pcppi0: PC speaker spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 pcic0 at isa0 port 0x3e0/2 iomem 0xd/65536 pcic0 controller 0: Intel 82365SL rev 1 has sockets A and B pcmcia0 at pcic0 controller 0 socket 0 xe0 at pcmcia0 function 0 Xircom, CreditCard 10Base-T, PS-CE2-10 port 0x340/16, irq 9: address 00:80:c7:42:37:d9 pcmcia1 at pcic0 controller 0 socket 1 pcic0: irq 11, polling enabled biomask e145 netmask e345 ttymask fbdf vscsi0 at root scsibus0 at vscsi0: 256 targets root device softraid not configured kernel: integer divide fault trap, code=0 Stopped at cpu_switchto+0x76: popl%ebx ddb ps PID PPID PGRPUID S FLAGS WAIT COMMAND 8 0 0 0 20x100200pfpurge 7 0 0 0 20x100200pcic0,0,1 6 0 0 0 20x100200pcic0,0,0 5 0 0 0 20x100200apm0 4 0 0 0 20x100200syswq 3 0 0 0 20x100200idle0 2 0 0 0 20x100200kmthread *1 0 0 0 7 0swapper 0 -1 0 0 3 0x80200 wdccmdswapper ddb trace cpu_switchto(d0202fe5,0,d0b7af08,d03ecf17,d09a1458) at cpu_switchto+0x76 end(0,0,0,efffeecc,efffeecc) at 0xd0b7aed8 (null)(d0d1c004,d0997aa0,0,73637376,3069) at 0 ddb boot poweroff Attempting to power down... ~ [EOT]
Re: Music + NFS == skipping?
On Sat, 2010-07-10 at 08:45 -0400, Nick Holland wrote: On 07/10/10 01:04, Corey J. Bukolt wrote: On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote: On Jul 09 04:56:38, Corey J. Bukolt wrote: On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote: On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote: Hi list, So far I have been able to get OpenBSD running nicely as my primary desktop with the only hitch being my NFS mounted music skips occasionally. I'm pretty sure it's not the NFS server since my Linux laptop has the same setup and doesn't skip. I'm using mpd to play the music, with a gigbit connection leading to a dedicated file server which has practically no load. Already gone over mount_nfs(8) and tried a whole bunch of different options with no luck. What NFS server is it? How exactly is the NFS share exported on the server side? How exactly is the share mounted on your clients? The NFS server is FreeNAS (FreeBSD 7.2). Exports line: /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 192.168.0.250 -mask 255.255.255.255 Linux client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0 OpenBSD client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs ro,noexec,nodev,nosuid 0 0 The OpenBSD client is 4.7-stable AMD64 GENERIC.MP You have some local debugging to do. I've run music over NFS for close to ten years, with servers (all OpenBSD) ranging from 133MHz P-I to 1GHz P3, workstations running from 266MHz PIIs to 2.3GHz AMD64x3 processors. Never had gigabit links. Early on, it was probably a 100mbps hub, maybe even 10mbps (can't remember when I installed my 100mbps infrastructure, or when I went to switches, I do remember ripping CDs directly on my 166MHz server because it was faster than alternatives). Audio devices ranged from old ISA devices to quite modern hardware. No NFS-related problems here. Therefore, I conclude that it isn't an intrinsic OpenBSD problem (and I'm pretty sure you and I aren't the only ones running mp3 files over NFS). There's either something about your PARTICULAR system (which you STILL refuse to describe, please go smack your hand with a ruler), or something wrong with your infrastructure. Hand has been smacked, dmesg added. Go get yourself an old three-digit clock speed machine with 128m of RAM or more, put OpenBSD on it, put some mp3 files on it, set up NFS, put it on a different switch and different wires than you are currently using and see if it works. If so, look over everything else. If not, provide a useful problem report (which is NOT what you have been doing). Will do, thanks for your help. OpenBSD 4.7 (GENERIC.MP) #0: Sat May 22 05:06:02 CDT 2010 co...@salvation.bukolt.lan:/usr/src/sys/arch/amd64/compile/GENERIC.MP real mem = 3486384128 (3324MB) avail mem = 3386621952 (3229MB) mainbus0 at root bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf0100 (56 entries) bios0: vendor Award Software International, Inc. version F3 date 09/16/2009 bios0: Gigabyte Technology Co., Ltd. GA-MA785GMT-UD2H acpi0 at bios0: rev 0 acpi0: tables DSDT FACP SSDT HPET MCFG TAMG APIC acpi0: wakeup devices USB0(S3) USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB5(S3) USB6(S3) SBAZ(S4) P2P_(S5) PCE2(S4) PCE3(S4) PCE4(S4) PCE5(S4) PCE6(S4) PCE7(S4) PCE9(S4) PCEA(S4) PCEB(S4) PCEC(S4) PS2M(S5) PS2K(S5) PCI0(S5) acpitimer0 at acpi0: 3579545 Hz, 32 bits acpihpet0 at acpi0: 14318180 Hz acpimadt0 at acpi0 addr 0xfee0: PC-AT compat cpu0 at mainbus0: apid 0 (boot processor) cpu0: AMD Phenom(tm) II X4 B55 Processor, 3214.97 MHz cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu0: apic clock running at 200MHz cpu1 at mainbus0: apid 1 (application processor) cpu1: AMD Phenom(tm) II X4 B55 Processor, 3214.55 MHz cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache cpu1: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative cpu1: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative cpu2 at mainbus0: apid 2 (application processor) cpu2: AMD Phenom(tm) II X4 B55 Processor, 3214.55 MHz cpu2: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,CX16,NXE,MMXX,FFXSR,LONG,3DNOW2,3DNOW cpu2: 64KB 64b/line
Re: Music + NFS == skipping?
On Sat, 2010-07-10 at 20:54 +0200, Jan Stary wrote: On Jul 10 01:04:35, Corey J. Bukolt wrote: On Fri, 2010-07-09 at 16:01 +0200, Jan Stary wrote: On Jul 09 04:56:38, Corey J. Bukolt wrote: On Mon, 2010-07-05 at 08:28 +0200, Alexandre Ratchov wrote: On Sat, Jul 03, 2010 at 02:53:01AM -0400, Corey J. Bukolt wrote: Hi list, So far I have been able to get OpenBSD running nicely as my primary desktop with the only hitch being my NFS mounted music skips occasionally. I'm pretty sure it's not the NFS server since my Linux laptop has the same setup and doesn't skip. I'm using mpd to play the music, with a gigbit connection leading to a dedicated file server which has practically no load. Already gone over mount_nfs(8) and tried a whole bunch of different options with no luck. What NFS server is it? How exactly is the NFS share exported on the server side? How exactly is the share mounted on your clients? The NFS server is FreeNAS (FreeBSD 7.2). Exports line: /mnt/tank/main/home/corey/media/music -alldirs,ro -maproot=root -network 192.168.0.250 -mask 255.255.255.255 Linux client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs user 0 0 OpenBSD client fstab entry: fileserver:/mnt/tank/main/home/corey/media/music /mnt/music nfs ro,noexec,nodev,nosuid 0 0 The output of 'mount -v' would be more useful. fileserver:/mnt/tank/main/home/corey/media/music on /mnt/music type nfs (nodev, noexec, nosuid, read-only, ctime=Sat Jul 10 18:43:56 2010, v3, udp, hard, wsize=8192, rsize=8192, rdirsize=8192, timeo=100, retrans=101, maxgrouplist=16, readahead=1, acregmin=5, acregmax=60, acdirmin=5, acdirmax=60) Have you tried using noatime or the -r option? Why not? Yes, tried both, neither help.
Re: 302 redirection doesn't work ?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, apologies in advance, I haven't really been following this thread, until I just thought of something now... Are you using php? If so, you can set up the 404 error document as a .php file, and use php set the headers to do whatever you want. You could set a meta refresh tag, then display a message to the user saying whatever. After the time you set in the refresh has elasped, it'll drop the user at your desired destination page. Just a thought, sorry if it's not what you're looking for. Yep , header(Location: index.html) actually works. I'm just wondering some website has such features: % nc xx.net 80 -vvv GET /hello_from_aaron !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title302 Found/title /headbody h1Found/h1 pThe document has moved a href=http://www.chinaunix.net/hot.shtml;here/a./p /body/html Very interesting , don't know how it works. PHP Code will return nothing , just redirection. - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw5NlQACgkQvf41sEptMqD7dgCeLDikYyyRqxfK23huEfz5uwTZ TUMAoKMzEq4R//NEi3+ROEgbZek7+DjP =9ipY -END PGP SIGNATURE-
Re: 302 redirection doesn't work ?
--Original Message Text--- From: Aaron Lewis Date: Sun, 11 Jul 2010 11:11:16 +0800 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, apologies in advance, I haven't really been following this thread, until I just thought of something now... Are you using php? If so, you can set up the 404 error document as a .php file, and use php set the headers to do whatever you want. You could set a meta refresh tag, then display a message to the user saying whatever. After the time you set in the refresh has elasped, it'll drop the user at your desired destination page. Just a thought, sorry if it's not what you're looking for. Yep , header(Location: index.html) actually works. I'm just wondering some website has such features: % nc xx.net 80 -vvv GET /hello_from_aaron 302 Found Found The document has moved here. Very interesting , don't know how it works. PHP Code will return nothing , just redirection. - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4r0n on freenode Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkw5NlQACgkQvf41sEptMqD7dgCeLDikYyyRqxfK23huEfz5uwTZ TUMAoKMzEq4R//NEi3+ROEgbZek7+DjP =9ipY -END PGP SIGNATURE- Hmmm First google hit on: apache 302 document moved is: http://httpd.apache.org/docs/1.3/mod/mod_alias.html and first hit on: apache 302 document moved howto is: http://httpd.apache.org/docs/1.3/misc/howto.html That should give you enough to play with... *** NOTE *** Please DO NOT CC me. I am subscribed to the list. Mail to the sender address that does not originate at the list server is tarpitted. The reply-to: address is provided for those who feel compelled to reply off list. Thankyou. Rod/ --- This life is not the real thing. It is not even in Beta. If it was, then OpenBSD would already have a man page for it.