+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
Windows Server 2008 R2 Thread, 2008 R2 + WebDav + iPad in Technical; Hello all, Does anyone have a step by step guide how to get this working? I have literally wasted days ...
  1. #1

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339

    2008 R2 + WebDav + iPad

    Hello all,

    Does anyone have a step by step guide how to get this working? I have literally wasted days and am losing patience. It just doesn't work and I've followed this guide closely.

    The only difference is I am using port 8080 as WSUS is already using port 80. Many thanks.

  2. #2

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339
    lol sods law, as soon as I post on Edugeek, I get it working.

    On steps 3 and 6 I needed to click the 'Connect as' button, specify an admin username/password and now it works correctly.

  3. #3

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339
    If I enable proxy settings on the iPad, WebDav stops working. Anyway around this, or how to add a server exception?

  4. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,755
    Thank Post
    825
    Thanked 1,662 Times in 1,447 Posts
    Blog Entries
    11
    Rep Power
    441
    Quote Originally Posted by Michael View Post
    If I enable proxy settings on the iPad, WebDav stops working. Anyway around this, or how to add a server exception?
    You will need to use a .pac file to add execptions to the iPad. See here - [IOS] How to get iphone/ipad to view local websites

  5. Thanks to FN-GM from:

    Michael (25th April 2012)

  6. #5

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339
    Thanks, I'll take a look.

  7. #6
    Rozzer's Avatar
    Join Date
    Aug 2005
    Location
    South West
    Posts
    720
    Thank Post
    21
    Thanked 81 Times in 61 Posts
    Rep Power
    33
    I just added a pac file to my blog How to setup a PAC file

    I did a lot of hunting around for a working pac file and this is the only one I managed to get working.

    ----------Pac File content----------

    function FindProxyForURL(url, host)
    {
    // variable strings to return
    var proxy_yes = "PROXY IP:Port";
    var proxy_no = "DIRECT";
    if (shExpMatch(url, "https://mdm.domain.com*")) { return proxy_no; }
    if (shExpMatch(url, "http://files.domain.com*")) { return proxy_no; }
    // Proxy anything else
    return proxy_yes;
    }

    ----- Pac File End------------

    Ross

  8. #7

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,755
    Thank Post
    825
    Thanked 1,662 Times in 1,447 Posts
    Blog Entries
    11
    Rep Power
    441
    Here is a copy of ours.
    Code:
    function FindProxyForURL(url, host)
    
    {
    
    //Declare proxy strings as variables
    
    var capitaproxy = "PROXY 10.112.5.193:80";
    
    // IP not to use proxy
    
    if (shExpMatch(url, "*172.*")) { return "DIRECT"; }
    if (shExpMatch(url, "*10.*")) { return "DIRECT"; }
    if (shExpMatch(url, "*192.*")) { return "DIRECT"; }
    if (shExpMatch(url, "*127.0.0.1*")) { return "DIRECT"; }
    if (isPlainHostName(host)) { return "DIRECT"; }
    
    // URLS not to use proxy server
    
    if (shExpMatch(url, "*webmail.school.com*")) { return "DIRECT"; }
    
    
    // Slect Proxy Server
    
    if (isInNet(myIpAddress(), "172.16.4.0", "255.255.252.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "172.16.128.0", "255.255.252.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "172.16.140.0", "255.255.255.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "172.16.141.0", "255.255.255.0")) { return capitaproxy; }
    
    else
    
    return "DIRECT";
    
    }

  9. #8
    Rozzer's Avatar
    Join Date
    Aug 2005
    Location
    South West
    Posts
    720
    Thank Post
    21
    Thanked 81 Times in 61 Posts
    Rep Power
    33
    Yours looks better heh

    Quote Originally Posted by FN-GM View Post
    Here is a copy of ours.
    Code:
    function FindProxyForURL(url, host)
    
    {
    
    //Declare proxy strings as variables
    
    var capitaproxy = "PROXY 10.112.5.193:80";
    
    // IP not to use proxy
    
    if (shExpMatch(url, "*172.*")) { return "DIRECT"; }
    if (shExpMatch(url, "*10.*")) { return "DIRECT"; }
    if (shExpMatch(url, "*192.*")) { return "DIRECT"; }
    if (shExpMatch(url, "*127.0.0.1*")) { return "DIRECT"; }
    if (isPlainHostName(host)) { return "DIRECT"; }
    
    // URLS not to use proxy server
    
    if (shExpMatch(url, "*webmail.school.com*")) { return "DIRECT"; }
    
    
    // Slect Proxy Server
    
    if (isInNet(myIpAddress(), "172.16.4.0", "255.255.252.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "172.16.128.0", "255.255.252.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "172.16.140.0", "255.255.255.0")) { return capitaproxy; }
    if (isInNet(myIpAddress(), "172.16.141.0", "255.255.255.0")) { return capitaproxy; }
    
    else
    
    return "DIRECT";
    
    }

  10. #9

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,755
    Thank Post
    825
    Thanked 1,662 Times in 1,447 Posts
    Blog Entries
    11
    Rep Power
    441
    Quote Originally Posted by Rozzer View Post
    Yours looks better heh
    I know ha ha

    Yours will do the job just fine. With mine if you have 2 sites and 2 proxies they can be specified and any internal IP will be set as an exception by default But if you dont need those features yours would be the best way to go.

  11. #10
    Rozzer's Avatar
    Join Date
    Aug 2005
    Location
    South West
    Posts
    720
    Thank Post
    21
    Thanked 81 Times in 61 Posts
    Rep Power
    33
    Quote Originally Posted by FN-GM View Post
    I know ha ha

    Yours will do the job just fine. With mine if you have 2 sites and 2 proxies they can be specified and any internal IP will be set as an exception by default But if you dont need those features yours would be the best way to go.
    I did setup a similar one to you but learning the hard way I did not know that I had to use the proxy IP instead of DNS. By then I had a tone down version.

  12. #11
    drewp's Avatar
    Join Date
    Sep 2007
    Posts
    94
    Thank Post
    34
    Thanked 2 Times in 2 Posts
    Rep Power
    14
    I struggled to get webdav working, I ended getting the FileBrowser app which just works

  13. #12

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339
    Here's where I'm at

    I've created a new website at:

    Code:
    http://SERVERNAME:8082/proxy.pac
    Created a MIME Type:

    Code:
    .pac
    application/x-ns-proxy-autoconfig
    For the time being I'm testing this with IE9. If I enter the above URL, IE9 asks if I wish to download the file (so all appears OK).

    From a workstation - Internet Settings > Connections > LAN Settings

    Tick 'Use automatic configuration script' copy/paste the above URL, then untick 'Use a proxy'.

    When I open up IE9, I see the IIS7 as my homepage and I'm not sure why. When I hit refresh, the proper homepage comes up and I can see external sites without any problems. I've tried flushing the DNS cache, but this makes no difference. Any suggestions?

  14. #13
    Rozzer's Avatar
    Join Date
    Aug 2005
    Location
    South West
    Posts
    720
    Thank Post
    21
    Thanked 81 Times in 61 Posts
    Rep Power
    33
    Trying using the IP address instead of server name when connecting to the pac file.

    Ross

  15. #14

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339
    Quote Originally Posted by Rozzer View Post
    Trying using the IP address instead of server name when connecting to the pac file.

    Ross
    Thanks for the suggestion, but it gives exactly the same results.

    In the end, I ended up resetting IE to defaults and now it works fine with both:

    Code:
    http://SERVERNAME:8082/proxy.pac
    
    http://192.168.1.5:8082/proxy.pac
    I'll be testing this out on an iPad later this week Lucky me!

  16. #15

    Michael's Avatar
    Join Date
    Dec 2005
    Location
    Birmingham
    Posts
    9,229
    Thank Post
    239
    Thanked 1,562 Times in 1,246 Posts
    Rep Power
    339
    I've tested my setup on an iPad and all is well Here's how to do it:

    On the iPad, navigate to Settings > Network > WIRELESS NAME. Click the blue arrow next to 'WIRELESS NAME'. At the bottom you'll see proxy information. Change this to 'Auto' then enter:

    Code:
    http://SERVERNAME:8082/proxy.pac
    Now open up Safari and the internet works again, even with WebDav enabled. Job done

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Webdav on our windows 2008 r2 server issue
    By sidnuts in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 21st May 2012, 09:39 AM
  2. Server 2008 R2 Board
    By FN-GM in forum Comments and Suggestions
    Replies: 5
    Last Post: 24th June 2009, 01:36 PM
  3. 2008 R2
    By TronXP in forum Windows Server 2008
    Replies: 23
    Last Post: 22nd June 2009, 10:15 AM
  4. Server 2008 R2 RC & Ms Hyper-V Server 2008 R2 Beta
    By Kamran7860 in forum Windows Server 2008 R2
    Replies: 4
    Last Post: 12th May 2009, 06:04 PM
  5. Replies: 1
    Last Post: 5th May 2009, 02:17 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •