• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 425
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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