[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 421
  • Last Modified:

can i make a virtualdirectory or website in IIS but not with localhost by coding (Urgent)

can i make a virtualdirectory or website in IIS but not with localhost?
can a virtual directory being call without localhost? like ccc.com
i have try virtualdrive and i must write localhost/ccc.com
0
mptrader
Asked:
mptrader
  • 2
  • 2
1 Solution
 
ahoffmannCommented:
> can a virtual directory being call without localhost? like ccc.com
you need to add a proper line in your system32\drivers\hosts file for ccc.com
in your IIS configuration you also can specify the host name (which is different of the site name)
0
 
mptraderAuthor Commented:
i can't find system32\drivers\hosts
can you give me an example
and can i do this with vb.net?
0
 
ahoffmannCommented:
> .. can't find system32\drivers\hosts
oops, it's system32\drivers\etc\hosts, or in detail: %SystemRoot%\system32\drivers\etc\hosts

> and can i do this with vb.net?
you can do it with whatever you like, even writing frameworks with IDEs and so on ...
but I'd simply use edit.com or notepad.exe (if you're adicted to GUIs ;-)
or do it on command line:
  echo "127.0.0.1 ccc.com" >> %SystemRoot%\system32\drivers\etc\hosts

KISS - keep it simple stupid
0
 
mptraderAuthor Commented:
i get an error

Directory Listing Denied
This Virtual Directory does not allow contents to be listed.

how to solve this?
i want to call my virtual drive directly
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now