• 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

    • Are we forgetting the hardware degradation on 13th and 14th gen??
    • Cry more. The Ukrainians who had internet access because of Starlink were trash too, huh?
    • RoboForm 9.7.5 by Razvan Serea RoboForm is the top-rated Password Manager and Web Form Filler that completely automates password entering and form filling. RoboForm makes logging into Web sites and filling forms faster, easier, and more secure. RoboForm memorizes and securely stores each user name and password the first time you log into a site, then automatically supplies them when you return. RoboForm's powerful Logins feature eliminates the manual steps of logging into any online account. With just one click RoboForm will navigate to a Web site, enter your username and password and click the submit button for you. Completing long registration or checkout forms is also a breeze. Simply click on your RoboForm Identity and RoboForm fills-in the entire form for you. You no longer need to remember all your passwords. You remember one Master Password, and RoboForm remembers the rest. This allows you to use stronger passwords, making your online experience more secure. RoboForm uses strong AES encryption for complete data security. The all new RoboForm comes with Chrome and Safari browser support, iPhone/iPad and Android support, as well a brand new RoboForm Everywhere license for use on unlimited computers and mobile devices. RoboForm 9.7.5 changelog: Prepared for the upcoming RoboForm browser extension with New Auth. Download: RoboForm 9.7.5 | 42.1 MB (Free, paid upgrade available) View: RoboForm Website Get alerted to all of our Software updates on Twitter at @NeowinSoftware
    • NTLite 2025.06.10460 is out.
    • I understand. I am not talking about benchmarks at all, even though I probably should look into those too - I just mean historically Vivaldi was a rather sluggish chromium browser when in use compared to other chromium browsers. I am always willing to give it additional tries whenever performance improvements are mentioned in the patch notes.
  • Recent Achievements

    • One Year In
      Vladimir Migunov earned a badge
      One Year In
    • One Month Later
      daelos earned a badge
      One Month Later
    • Week One Done
      daelos earned a badge
      Week One Done
    • Mentor
      Karlston went up a rank
      Mentor
    • One Month Later
      EdwardFranciscoVilla earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      494
    2. 2
      snowy owl
      252
    3. 3
      +FloatingFatMan
      250
    4. 4
      ATLien_0
      225
    5. 5
      +Edouard
      181
  • Tell a friend

    Love Neowin? Tell a friend!