I want to fix Index of/ page

Problems with the Windows version of XAMPP, questions, comments, and anything related.

I want to fix Index of/ page

Postby kyle92802 » 31. July 2010 07:45

Hi this may be a newb question, but I currently am trying to host 3 sites from my XAMPP/Apache server at home. I have Virtual Hosts setup in the config.httpd file. I have three website folders that are located in C:/XAMPP/htdocs. For example C:/XAMPP/htdocs/website1.com (folder labeled example1.com) and the same labeling for the second and third website. I have the VirtualHostName un-commented and labeled with my IP "VirtualHostName xxx.xxx.xxx.xxx:80". When I type a website URL in any browser's address bar, the first page I see is the "Index of/" page with a listing of folder links. I have been digging for days on information about this, and I have seen evrything from adding .htaccess file to adding an index.html page in the root directory. All three folders have there own index.html file in them. one of them is built and ready for deployment while the other two index files are just "under construction" notices. I would be forever indebted to anyone that can help me.

Also the webiste domains are all registered and hosted through godaddy. I have A records for them pointing to my Static IP address. I have tried diligently to follow standard configuration rules, but I am truly a novice.
kyle92802
 
Posts: 2
Joined: 31. July 2010 07:27

Re: I want to fix Index of/ page

Postby Nobbie » 31. July 2010 10:19

Sorry - but I cannot find any question. What is your problem?
Nobbie
 
Posts: 8761
Joined: 09. March 2008 13:04

Re: I want to fix Index of/ page

Postby kyle92802 » 31. July 2010 15:38

My question is; why do I get the page labeled Index of/, which shows a directory of my website folders, instead of the specific website when I enter the address?
kyle92802
 
Posts: 2
Joined: 31. July 2010 07:27

Re: I want to fix Index of/ page

Postby Altrea » 31. July 2010 19:23

Because of three rules which work together:

1) You just write the foldername (e.g. http://website1.com/) in the URL, no filename (http://website1.com/sitexyz.php)
2) This folder doesn't have one of the defined Default file in it (e.g. index.php, index.html - the full list and its order can be find in your Apache httpd.conf ind the lines which beginn with DirectoryIndex)
3) The folder which you request does have the option to show the Index of itself if rule 1 and two doesn't match.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 8286
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 43 guests