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

</Directory>

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

 

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: