Jun. 13th, 2010

denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
[staff profile] denise
I know I've done this at least once before, because I've made changes to that notification method! But I can't remember what worker it is that processes and sends out the OfficialPost notifications, and therefore I can't test to see if my crazy idea for bug 2642 works ...

Bug-1059

Jun. 13th, 2010 04:09 pm
[personal profile] scamper
I have been working on bug-1059,i.ebugs.dwscoalition.org/show_bug.cgi . I submitted a patch on 2.06.2010. But there was some problem with that. It failed to redirect shop.dreamwidth.org/<something> to dreamwidth.org/shop/<something>. Now I am trying to fix this. I made an entry in the %LJ::SUBDOMAIN_FUNCTION defined in the /etc/config.pl similar to the one which is done for cssproxy. Then in dw/cgi-bin/Apache/LiveJournal.pm, I entered this code, 

        } elsif ($func eq 'support') {
            return redir($r, "$LJ::SITEROOT/support/");
 
        } elsif ($func eq "shop") {
            if($host =~ m!^(\w|\.)+/([\w\-]{1,25})$!) {
                return redir($r, "$LJ::SITEROOT/shop/$2");
            } else {
                return redir($r, "$LJ::SITEROOT/shop");
            }
 
        } elsif (ref $func eq "ARRAY" && $func->[0] eq "changehost") {
  
I understood that this is not correct, But my intention was that in this case, $1 will contain shop.dreamwidth.org and $2 will contain <something> and this is not working, instead it is redirecting both shop.dreamwidth.org and shop.dreamwidth.org/something to dreamwidth.org/shop. I'm not sure what I have done is correct. Please give some suggestions so that I can make it work. I could very well be wrong. 

Profile

dw_dev_training: The stylised 'd', with the word 'dev' above, and the word 'training' at the side, representing the dw_dev_training comm. (Default)
Dreamwidth Development Training

September 2022

S M T W T F S
    123
45678910
1112131415 1617
18192021222324
252627282930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 11th, 2025 12:16 pm
Powered by Dreamwidth Studios