Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Set up WAMP to serve http://localhost/my-site using C:\wamp\www\my-site\sub-directory as it's root directory.

Hi

I can't seem to find any documentation that will help me achieve this.

I thought it'd be worth asking on here to see if anyone knows how to do it.

I also have AMPPS on my Mac so that's another option.

Kind regards, Mike

1 Answer

Hi,

The "Easiest" way would be if you change the root directory directly in the httpd.conf that is provided with the WAMP.

Just look for the line('s) that says: DocumentRoot

Then change this to the folder you would like it to be the root directory of your WAMP.

Gavin Ralston
Gavin Ralston
28,770 Points

That's the way to do it. Change the DocumentRoot line to wherever you want it to be. No need to mess around with folder permissions and ownership, just change the document root to something in your home folder.