Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is a Virtual Directory?

directory virtual
0
Posted

What is a Virtual Directory?

0

Virtual directories are aliases for directory paths on the server. It allows moving files on the disk between different folders, drives or even servers without changing the structure of web pages. It avoids typing an extremely long URL each time to access an ASP page.

0

Virtual directory is another directory that is outside of the ‘default’ location. For example, if you have already shared the directory – ‘c:\files\’, now you want to share one more directory “d:\doc\”. Then you have two choices: 1) If you do not use ‘virtual directory’, you must copy the directory ‘d:\doc\’ into ‘c:\files\’. Now you can access it with this URL: http://YourIP/doc/ This will access the directory ‘c:\files\doc\’. 2) If you use ‘virtual directory’, you can add a new virtual directory for ‘d:\doc\’, set the alias as ‘doc’. Now you will have the same URL: http://YourIP/doc/ This will access ‘d:\doc\’ directly. To the visitors, ‘http://YourIP/doc/’ = ‘c:\files\doc\’. But the directory ‘c:\files\doc\’ doesn’t exist. That’s why we call it ‘Virtual Directory’.

0

virtual directory are that directory throgh which we map to location of the directory.suppose you need to make a directory on a place but we dont have the sufficient place for creating directory then for mapping the directory on that place we create directoy on different location and map to current location.this is called virtual directory.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123