My contemplations and diurnal novelties are publicized here

All you need to do is to create a virtual directory to host your website at any location other than htdocs

Locate httpd.conf it is located inside “Apache2\conf\ 

Locate <Directory /> in httpd.conf and add following line below to create an alias

Alias /yourwebsite “D:\Work Folder\yourwebsite”

<Directory “D:\Work Folder\yourwebsite “>

Options Indexes FollowSymLinks MultiViews ExecCGI

AllowOverride All

Order allow,deny

Allow from all


Now you can simple browse you website using the same http://localhost/yourwebsite  pages will be served from new directory



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: