Page 1 of 1

access local server

Posted: Thu Oct 27, 2011 1:46 am
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

Re: access local server

Posted: Thu Oct 27, 2011 12:37 pm
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