Notices

Great community. Great ideas.

Welcome to ASP/Free, a community dedicated to helping beginners and professionals alike in improving their knowledge of Microsoft's development and administration technologies. Sign up today to gain access to the combined insight of tens of thousands of members.

Thread: URL to access localhost

Results 1 to 4 of 4
Share This Thread →
  1. #1
    roughneck82 is offline Contributing User
    Join Date
    Oct 2004
    Location
    Tejas
    Posts
    63
    Rep Power
    10

    URL to access localhost

    Is there any possible way for me to type in a URL
    such as www.mywebsite.com into my addy bar in my
    browser and have it bring up a certain file in my
    wwwroot folder?

  2. #2
    Aeternas is offline Registered User
    Join Date
    Sep 2004
    Posts
    10
    Rep Power
    0
    You should make a website or virtual folder (depends on which windows version you're using) in IIS. If you're running Linux, then I cannot help you, sorry.

    On your desktop, right-click "myComputer", go to "Manage". Then click "Services", and go to "IIS". If you're running winXP or win2000-Professional, you'll have a "StandardWebsite" thingy there. Right-click it and go to "New" and click "Virtual folder". In the "Alias" thing, you should write a name of the website ("www.whatever.com") or something that helps you remember what this site is about ("myHobbySite"). Then choose a folder in the wwwroot where your wesite is situated.
    In win2000 server edition you should make a new website (instead of a virtual folder) and the other things are basically the same (I think, but it's been a while since I've done it).

    When you've made your virtual folder or website, then you should right-click the virtual folder/website, go to "properties" and there you can make some finishing touches. FOr instance, set the default page for your website (when people go to "www.whatever.com" a page should be displayed). In the "documents" tab you should add the name of your default page (like "home.htm" or "index.htm").

    When you type "http://localhost//nameOfYourVirtualFolder" in your browser you get your website. If you want to type "www.whatever.com" then you'll have to configure the DNS with forward lookup zones and stuff... (The MS DNS configuration thingy)

    I hope it does you some good...

  3. #3
    roughneck82 is offline Contributing User
    Join Date
    Oct 2004
    Location
    Tejas
    Posts
    63
    Rep Power
    10
    Also,

    When I assign the virtual folder does it have to be in the wwwroot folder for asp to work when I view it in the browser?

    Can I just have a directory in My Documents or on the C Drive and it still work?

  4. #4
    ltarrant is offline Contributing User
    Join Date
    Aug 2004
    Location
    UK
    Posts
    74
    Rep Power
    10
    Assuming you've got a webserver running on your machine you could just edit you host file.

    Go to C:\WINDOWS\system32\drivers\etc open the file hosts in notepad

    And add the line 127.0.0.1 www.mywebsite.com

Share This Thread →

Become Part of This Conversation

Join NowFor Free!

Similar Threads

  1. Can not access localhost
    By betsyh in forum Microsoft IIS
    Replies: 10
    Last Post: September 29th, 2005, 03:18 PM
  2. Cannot access localhost
    By Jorg in forum Microsoft IIS
    Replies: 14
    Last Post: September 22nd, 2004, 11:57 AM
  3. Access denied to Access DB
    By 2Drunk2Funk in forum ASP Development
    Replies: 1
    Last Post: August 10th, 2004, 11:34 AM
  4. ODBC call within ACCESS to linked tables.
    By JazzGo in forum ASP Development
    Replies: 1
    Last Post: June 21st, 2004, 11:51 AM
  5. Problem updating access database through localhost website
    By angieng67 in forum Microsoft Access Help
    Replies: 1
    Last Post: October 8th, 2003, 05:57 AM

ASP Free Advertisers and Affiliates