RESOLVED:How to make virtual directory in apachee?
Hi all installed apache in my c drive under c:\webserver\apache\ and my public directory where i put my html files are located at c:\webserver\public\
I got a huge list of files outside the webserver and it is located at c:\folder\filename\myfiles . I wonder how i can make my website point to that folder and be able to use this folders containt without having to move them inside my public apache folder.
Is there a way to make it like http:\localhost\myfiles and be able to access c:\folder\filename\myfiles without having to move the folder inside webserver. I be happy if some one tell me how to achive this task.thanks
Re: How to make virtual directory in apachee?
You can change the root directory, or you can take one of my virtual host and use it as an example:
Quote:
<VirtualHost *:80>
ServerName natesblog.us.to
DocumentRoot "/Program Files/Apache Group/Apache2/htdocs/blog"
ServerAlias
www.natesblog.us.to
</VirtualHost>
Servername is the name you want to name it (I believe this can be anything), DocumentRoot (obvious), and ServerAlias is where you put the url to that site (use a space for mutiple urls like "www.natesblog.us.to natesblog.us.to").
Re: How to make virtual directory in apachee?
in the http.conf file located in your <apache root>/conf folder just in case u din know that