How to make virtual directory in Apache

Did you makes a directory for the web in C:\ drive ? Actually, you can make the directory in other folder. What is the pros if you create directory in C:\ drive ? If you re-install the Windows ( I use windows) the directory will be deleted. To anticipate it, i create the directory in D:\ drive. You should add the following code in the httpd.conf

#Alias for website workgal
Alias /workgal "D:/Website/WorkGallery"
<Directory "D:/Website/WorkGallery">
       Options Indexes FollowSymLinks MultiViews ExecCGI
       AllowOverride All
       Order allow,deny
       Allow from all
</Directory>

Well, workgal is the url for the web, you use it to access the web. For example, you can access the web via http://localhost/workgal. And the D:/Website/WorkGallery is the directory where you save your code and resource.

No related posts.

This entry was posted in PHP and tagged , . Bookmark the permalink.

One Response to How to make virtual directory in Apache

  1. Permana says:

    Well, i guess the author is the first commentator

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>