access local server

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
dotphp
Forum Commoner
Posts: 25
Joined: Sat Nov 10, 2007 8:03 am

access local server

Post by dotphp »

Hi,

I have xampp install locally on my computer.
What I need to change in order, for example, then I access the http://www.something.dev to open my website located in /xampp/htdocs/pic/ .
If I access http://www.something-else.dev to open my website located in /xampp/htdocs/other/ .

All this will be open locally ( on the same computer).

Thanks
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: access local server

Post by manohoo »

Even though I question the usefulness of what you are trying to accomplish here are two ways you can accomplish the task:

1. edit your hosts file, add an entry like this:
127.0.0.1 www.something.dev
2. Setup your apache configuration (httpd.conf I believe)
add a VirtualHost and setup the documentroot accordingly
Post Reply