0

I've got an XAMPP installation running great and I've configured my local machine to be accessed by other users via my IP address using this tutorial here.

However, when I navigate to this page I get the standard XAMP (horrible yellow and orange) homepage.

Where can I change my root directory for my website so I've got a folder called oursite within the htdocs folder of XAMPP which I'd like to load when a user navigates to my page instead of redirecting to the xampp folder.

Community
  • 1
  • 1
Daniel
  • 87
  • 10
  • In your vhosts. Usually a file called httpd.conf – Daan Jul 11 '14 at 11:22
  • In my `httpd-vhosts.conf` file I've added the lines: ` DocumentRoot "/Applications/XAMPP/htdocs/oursite/" ServerName myserver.name ` But it still redirects to `xampp/` – Daniel Jul 11 '14 at 11:33

1 Answers1

0

Just as explained in the tutorial you mentionned, in the file C:\xampp\apache\conf\extra\httpd-vhosts.conf, you should have a VirtualHost definition like this one :

<VirtualHost *:80>
  # Just Change the line above so that DocumentRoot point to your "oursite" folder
  DocumentRoot "/Applications/MAMP/htdocs/oursite/"  
  ServerName Whatever.server.name.you.want
</VirtualHost>

Just Change the line above the previous comment so that DocumentRoot point to your "oursite" folder

Community
  • 1
  • 1
rebrec
  • 515
  • 4
  • 8