c:\inetpub -> d:\newname ??

Discussion in 'Windows Small Business Server' started by root, Jul 4, 2004.

  1. root

    root Guest

    What's the easiest way to move the whole inet/website structure built on a
    default SBS2003 install to a different drive and directory. I believe that
    not having it on C: is optimal for security. As I recall install didn't
    offer other than the default install location(C:\inetpub).
    root, Jul 4, 2004
    1. Advertisements

  2. Kevin Weilbacher [SBS-MVP], Jul 4, 2004
    1. Advertisements

  3. root

    root Guest


    I did a full google search including web, microsof....sbs, microsof.....iis
    and www.microsoft.com and the www sites of the locals and I can't seem to
    find much more than....just drag it and drop it and make sure you hand
    change all the home dirs(many are virtual with odd implicit linkages) and
    permissions etc. Then I find stuff about sharepoint that seems much more
    complicated. It's all the special SBS stuff that appears to be the problem.
    I've already installed a real website and (2nd non-company but same IP one
    using host header) to d:\inetpub. Now the rest and the new root dir name is
    the goal.

    Given that the security freaks agree that one shouldn't leave it on c: and
    also not named inetpub and there being no default way to change it, I
    ASSUMED that someone had worked out the easiest way and posted it somewhere.
    In an older post one of the folks in .IIS when talking about CompanyWeb &
    OWA and all the rest of the special SBS stuff said go here and ask...so I

    Are there any gotchas here...is that the reason for the apparent lack of a
    wizard or tool/script or install option or good articles?

    Is everyone still runin c:\inetpub? If not then how are most doing
    root, Jul 4, 2004
  4. root

    root Guest


    What I meant to include in my previous post was the query of whether the
    above does the whole deal for IIS? I notice that the title of the above
    article and it's table of contents do NOT even include "Web Site" nor IIS
    nor CompanyWeb.
    root, Jul 4, 2004
  5. root

    Tony Su Guest

    This is an issue with Win2K3, not just SBS2K3.

    Within seconds after I first saw this in the Win2K3 betas,
    I yelled loudly and often about this everywhere I could,
    but no one commented.

    Technically speaking, although it's a bother it's actually
    not a particularly big deal to move a website as it's
    first being set up, you simply define a new path for the
    Home Directory.

    But, if you're running Services like SharePoint and
    FrontPage, I don't know of an easy "one click" solution
    for moving... You have to reconfigure that from the ground

    So, with SBS that's probably the biggest problem/issue
    likely to discourage anyone from moving the default file
    locations... You'll probably have to go into the
    SharePoint Administrator and manually configure the new
    location with the settings automatically setup by the SBS
    Companyweb/SharePoint Services Setup wizards.

    The other possible gotcha is how Companyweb is written. I
    assume that it was written anc configured using relative
    and virtual paths throughout but it's not a certainty and
    can't be tested unless the website and/or database paths
    actually were changed.

    And yes, you are very correct that modifying the hardpath
    location can be an important security measure. So many
    attacks don't assume that they have access/permissions to
    be able to reference a relative path, so you usually see

    Tony Su

    microsof....sbs, microsof.....iis
    Tony Su, Jul 4, 2004
  6. root

    root Guest

    I've been playing with it and I simply tried to setup the default website
    c:\inetpub\wwwroot as a virtual dir(SBS) under our real public company
    website that I'd setup on d:. Then to get the "SBS2003 Welcome" & RWW link
    page, all one would have to do is www.companysite.com/sbs That doesn't
    work. Although the first "Welcome SBS2003" page shows up fine, all the
    links like RWW are dead(401 page not found or somesuch). I don't think it's
    permissions but relative links like /Remote which I don't fully understand.
    AND some of the filters running/loaded at the default site that aren't at
    www.companysite.com and who knows what else.

    I'm gonna figure all this out in detail later for SBS2003. I assumed that
    somebody else already had. Right now www.companysite.com goes to the our
    company's regular public website using host header and simply
    companysite.com defaults to the original default site(as will direct IP
    entry) so that's how our remote folks will get in for now to the "Welcome
    SBS2003" page.

    root, Jul 4, 2004
  7. For some reason unknown outside MS, there's no longer [in win2003] any
    option to specify the base directory for IIS6. So, IIS6 always starts
    out with C:\InetPub.

    Personally, I would be happier without a C:\InetPub folder at all, but
    I'm not as concerned about it as I would be with IIS5. This is because
    tools like URLScan and the IISLockdown have been integrated into IIS6.

    You could probably modify most of the SBS-specific website stuff to
    live on another partition if you wanted to. I can't think of any
    obvious technical reason that this would cause problems.

    For my webhosting servers, all user sites are located on another drive,
    partly because I'm more comfortable with it like that, but more because
    I want disk quotas on the sites, and I don't like the idea of using
    quotas on the OS partition.
    Steve Foster [SBS MVP], Jul 4, 2004
  8. Good points, Steve!

    Kevin Weilbacher [SBS-MVP]
    "The days pass by so quickly now, the nights are seldom long"

    Kevin Weilbacher [SBS-MVP], Jul 4, 2004
  9. root

    Tony Su Guest

    More than likely your problem is re-creating and
    translating links.

    If you are running ISA, the ISA Featurepack contains the
    Link Translator tool which can modify all links which
    point to something like a LAN URL or a Dev URL so that
    they all resolve using a public URL. You can also create
    alternative paths (ie. your reference to using "sbs" in
    the path).

    I describe use of the Link Translator in my "Web
    Publishing Companyweb" paper

    (click on first link)

    Tony Su

    www.companysite.com/sbs That doesn't
    Tony Su, Jul 5, 2004
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.