« Previous Next »

Thread: Feature request: advanced replace

Last post 03-21-2008 6:36 AM by alexthissen. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 02-14-2008, 9:52 AM

    • alexthissen
    • Not Ranked
    • Joined on 02-12-2008, 9:33 AM
    • The Netherlands
    • Posts 5

    Feature request: advanced replace

    Hi,

    When migrating from IIS6 to IIS7 host header names are also migrated. In IIS6 we used Punycode host headers to encode IDN domain names. As I have seen so far IIS7 does not support Punycode in host headers anymore. Therefore, we want to do a Punycode decode while replacing the host headers during migration.

    Given the syntax for the -replace option I assume that it is kind of hard to call a routine or method to perform an operation on the matched text to replace. That would be a nice feature: ability to use external methods during replace -or- the ability to write your own managed plugins to do so yourself. If there is another way to do advanced replace, that would be welcome as well.

    Alex

  • 02-19-2008, 5:43 PM In reply to

    • JeongHwan
    • Top 150 Contributor
    • Joined on 12-14-2004, 4:43 PM
    • Redmond, WA
    • Posts 33

    Re: Feature request: advanced replace

    Hi Alex,

    On IIS7, I have tried to set a non English character for hostheader and confirmed that IIS handles the non English character host name. 
    So, I am not sure what you mean with that IIS7 does not support Punycode. I would appreciate it if you would give some detail information about what was different between IIS6 and IIS7 regarding Punycode supporting.

    FYI, here is what I have done for IIS7 Punycode supporting test:

    <><><>

    1.       Open %windir%\system32\drivers\etc\hosts file

    2.       And add the host name which is encoded in Punycode, which is a new encoding to make IDN possible, and save the file 555.555.555.555                  xn--910bs4k7yb12w.xn--cg4bki  NOTE:  You can convert the host name from http://webkor.com/cgi-bin/2.8.7/Punycode.cgi); IP address should be replaced with the real value for the test machine 3.       Add HTTP hostname binding, 우리나라.삼성, to the Default Web Site using Inetmgr.exe
    (Select Default Web Site -> Bindings… -> Add -> Set
    우리나라.삼성 to the “Host name:” textbox

    4.       Launch IE and disable Proxy setting if required

    5.       Try to browse with typing “http://우리나라.삼성” and verify IE shows correctly for the Default Web Site’s home page

    <><><> 

     

     

    Jeong Hwan Kim
  • 03-21-2008, 6:36 AM In reply to

    • alexthissen
    • Not Ranked
    • Joined on 02-12-2008, 9:33 AM
    • The Netherlands
    • Posts 5

    Re: Feature request: advanced replace

    Hi JeongHwan,

    Sorry for the late reply. I hadn't checked the remark from the IT department that Punycode was no longer supported. My bad, because it is. So, no issues there.

    The need to be able to do an advanced replace remains. I had given Reflector a spin after I posted my initial mail and found that by creating a DeploymentRuleHandler and overriding the Update method you get a hook into the deployment process (if I recall correctly). This is enough to write whatever update logic that one might want.

    Thanks for the reply.

    Alex

Page 1 of 1 (3 items)
Microsoft Communities