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.

Information and Links

Join the fray by commenting, tracking what others have to say, or linking to it from your blog.


Other Posts
Verification
Just launched

Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Well, i guess the author is the first commentator