Jump to content

Dumb New Guy


davidspeare

Recommended Posts

Hello,

I recently installed the XAMPP package on my computer and am confused on the set up of the config file.  The installation went fine.  All components are working.  However, I now want to redirect the document root to a new folder and the httpd file in the apache-conf path does not control what page is loading.  I can completely delete this file and it still loads as if I did nothing.

Would someone be able to point me in the direction of where the index page should be?  If I can at least find that I should be able to start figuring a little of this out.

Thanks for the assistance.

David
Link to comment
https://forums.phpfreaks.com/topic/30308-dumb-new-guy/
Share on other sites

What do you mean by index page? Do you want add a file to the DirectoryIndex ? example you have a file called homepage.html in the document root and when you go to http://mysite.com/ you want this file to load automatically?

To do this you'll need to open up the http.conf file and find the following:
[code]<IfModule dir_module>
    DirectoryIndex index.html index.php
</IfModule>
[/code]
Yours may not look that, but similar, now add a space after the last entry and then homepage.html

Save the httpd.conf and restart XAMPP. Now when you go to http://localhost/ it should load up homepage.html (if that file currently exists in the document root).

Is that what you mean? If not could you explain what you mean?
Link to comment
https://forums.phpfreaks.com/topic/30308-dumb-new-guy/#findComment-139794
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.