• 0

IIS6 + subdomains + enable php register globals


Question

How do i create subdomains in IIS6 ?

let us say i have a domain, foo.com wich leads to c:\inetpub\wwwroot then i want foo1.foo.com directed to c:\inetpub\wwwroot\dir\dir\foo1

I also wonder if its possible to enable register globals (php) on some parts of the site, my old pages uses register globals and i dont have time to recode them now. its possible in apache so it should be possible on IIS too :)

9 answers to this question

Recommended Posts

  • 0

Subdomains - I dunno. I'll mess around and see tonight.

register globals - I dunno either (helpful, aren't I :p). Although something like .htaccess might do the trick. I've gone through all my code and made it able to work without globals being global. It's a pain, yes, but it needed to be done.

  • 0

Yes in apache it is the httpd.conf file... on linux. but with iss you have to screw around with the active directory settings. Are you running dns or is it just like a server running off your home pc. Because microsoft makes it somewhat complicated. The domain must be added to the DNS and then an account has to be configured for it. When i say domain i mean subdomain as well because they are somewhat autonomous.

just think of each subdomain as seperate from the domain, meaning it will have to have its own user and permissions on the server. Either way, my advice, format the drive, install redhat 9.0 and use apache because with iis your begging to get rooted :p

just my 2 cents

  • 0

register globals is enabled from within the php.ini file. Look for the line:

register_globals = Off

and change it to:

register_globals = On

This said, it is highly recommend , for security reasons, that you find time to modify your code so that you don't have to do this.

Hope that helps.

  • 0

i'm not 100% certain about this but with regards to the subdomains you could try creating a new website and then set the Host Header for it to your full subdomain ( e.g. subdomain.domain.com ) you can also specify the root folder of this site to what ever you want.

i've never tired this myself so there may be some finer points to this setup.

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • YouTube app is no longer compatible with several iPhones by Taras Buria Google is rolling out a new update for the YouTube app on iOS, and it is bad news for those still using an old iPhone. Starting with version 20.22.1, the latest release in the App Store, YouTube for iPhone now requires iOS 16 and newer. Previously, the app required a device with iOS 15 and newer. The new hardware requirement makes several iPhones incompatible with the latest version of the YouTube app. Those include the iPhone 6S / 6S Plus, iPhone 7 / 7 Plus, and the original iPhone SE. The seventh-generation iPod touch is also no longer compatible. On the iPad side, the update kicks out the second-generation iPad Air and the fourth-generation iPad mini. Although old iPhones can no longer install YouTube version 20.22.1 and newer, old versions continue working just fine. However, going forward, users will not receive new features and improvements. Also, at some point in the future, the app will stop working altogether. Another workaround is to use the web version of the app, but that also provides a limited experience compared to the up-to-date client. Google is not the only service that kicks out old and now unsupported Apple devices. Recently, WhatsApp developers dropped iPhones that cannot run iOS 15.1 or newer. The news is clearly a bummer for those who are still using their old iPhones, which, to Apple's credit, have a solid lifespan (as long as you are happy with the battery life). However, it is also worth keeping in mind that the iPhone 6S series was released almost a decade ago. Having ten years of support is impressive, but it is clearly time to move on. Perhaps my friend with his day-one iPhone 7 Black can finally consider buying something less ancient.
    • Guys have already appeared saying that Windows 11 ruined their lives, stole their bank password, killed their dog, kidnapped their mother and that's why they will never install Windows 11 again.
    • I think they start to use AI in Robots but in very early stage. I think in less than 20 years we will see these movies in real life
    • Uhh... how do you think current robots work? And do I really have to tell you the obvious...? That movies aren't real.
  • Recent Achievements

    • Week One Done
      primussolicitors798 earned a badge
      Week One Done
    • First Post
      nothin earned a badge
      First Post
    • Enthusiast
      Epaminombas went up a rank
      Enthusiast
    • Posting Machine
      Fiza Ali earned a badge
      Posting Machine
    • One Year In
      WaynesWorld earned a badge
      One Year In
  • Popular Contributors

    1. 1
      +primortal
      188
    2. 2
      snowy owl
      134
    3. 3
      ATLien_0
      130
    4. 4
      Xenon
      119
    5. 5
      +FloatingFatMan
      97
  • Tell a friend

    Love Neowin? Tell a friend!