how to set up ubuntu LAMP stack /var/www similar to the xampp htdocs for http://localhost

Posted by kimsia on Server Fault See other posts from Server Fault or by kimsia
Published on 2010-11-21T12:54:10Z Indexed on 2012/10/03 3:41 UTC
Read the original article Hit count: 510

Filed under:
|

In xampp,

all anyone has to do is to place a folder inside htdocs and http://localhost/folder_name will automatically work.

If i set up a LAMP stack using sudo tasksel in ubuntu,

how do i do it such that if i put a folder inside /var/www the same thing would happen as in localhost/folder_name would work?

update

sorry all, i have chosen to do things in a different way hence this question is no longer relevant to me.

I apologise.

I have awarded upticks to all answers here.

Thanks for the suggestion.

© Server Fault or respective owner

Related posts about apache2

Related posts about xampp