Prev: Making ISO file from debian-live-60alpha1-i386-rescue.tar.gz?
Next: amd64 does net detect my wired and wireless nic at installation
From: nzsell on 19 Jul 2010 05:20 Hi i was able to redirect in apache, but now i switched over to lighttpd server. I would like to ask how do I redirect The following http://abc123.example.com to http://www.example.com/pages/page.php?u=abc123 thanks in advance -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/4518b621ef128a5738b7052553142a7f.squirrel(a)morefb.com
From: Camaleón on 19 Jul 2010 05:30 On Mon, 19 Jul 2010 17:00:51 +0800, nzsell wrote: > i was able to redirect in apache, but now i switched over to lighttpd > server. I would like to ask how do I redirect > > The following > > http://abc123.example.com to > http://www.example.com/pages/page.php?u=abc123 > > thanks in advance Does this help? http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToRedirectWww Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/pan.2010.07.19.09.19.51(a)gmail.com
From: nzsell on 19 Jul 2010 06:00 doesn't help much. I've read that before, but still can't figure out. > On Mon, 19 Jul 2010 17:00:51 +0800, nzsell wrote: > >> i was able to redirect in apache, but now i switched over to lighttpd >> server. I would like to ask how do I redirect >> >> The following >> >> http://abc123.example.com to >> http://www.example.com/pages/page.php?u=abc123 >> >> thanks in advance > > Does this help? > > http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToRedirectWww > > Greetings, > > -- > Camaleón > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmaster(a)lists.debian.org > Archive: http://lists.debian.org/pan.2010.07.19.09.19.51(a)gmail.com > > -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/ded222db357aaa57712f7921952def16.squirrel(a)morefb.com
From: Camaleón on 19 Jul 2010 06:30 On Mon, 19 Jul 2010 17:50:29 +0800, nzsell wrote: >> Does this help? >> >> http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToRedirectWww > doesn't help much. > I've read that before, but still can't figure out. Uh. You mean this is not working for you? *** $HTTP["host"] == "abc123.example.com" { url.redirect = ( "^/(.*)" => "http://www.example.com/pages/page.php?u=abc123", ) } *** If no, review the logs, the modules being loaded (redirect) and your virtual domain setup. Or just try with a simple redirection (one file to another under same host, same root path) to check it's working fine. Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/pan.2010.07.19.10.26.41(a)gmail.com
From: vinboy on 19 Jul 2010 07:30
Thanks for the reply. But it's not quite what I'm looking for. The abc123 is a variable. I'm looking for a rule that redirect this: http://abc123.example.com to http://www.example.com/pages/page.php?u=abc123 http://111.example.com to http://www.example.com/pages/page.php?u=111 http://222.example.com to http://www.example.com/pages/page.php?u=222 http://david.example.com to http://www.example.com/pages/page.php?u=david you see the pattern? http://[name].example.com to http://www.example.com/pages/page.php?u=[name] > On Mon, 19 Jul 2010 17:50:29 +0800, nzsell wrote: > >>> Does this help? >>> >>> http://redmine.lighttpd.net/projects/lighttpd/wiki/HowToRedirectWww > >> doesn't help much. >> I've read that before, but still can't figure out. > > Uh. You mean this is not working for you? > > *** > $HTTP["host"] == "abc123.example.com" { > url.redirect = ( > "^/(.*)" => "http://www.example.com/pages/page.php?u=abc123", > ) > } > *** > > If no, review the logs, the modules being loaded (redirect) and your > virtual domain setup. Or just try with a simple redirection (one file to > another under same host, same root path) to check it's working fine. > > Greetings, > > -- > Camaleón > > > -- > To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org > with a subject of "unsubscribe". Trouble? Contact > listmaster(a)lists.debian.org > Archive: http://lists.debian.org/pan.2010.07.19.10.26.41(a)gmail.com > > -- To UNSUBSCRIBE, email to debian-user-REQUEST(a)lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster(a)lists.debian.org Archive: http://lists.debian.org/097a157d2dacb1e0dcc2079f32a87941.squirrel(a)morefb.com |