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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.