Apache will not display index in web root, subfolders are fineTrace where apache is serving a page fromWhy is this server redirecting to another page?Apache web server intermittently serves 403: “Directory index forbidden by Options directive” and 304All my PHP files are prompting direct downloadcPanel & DirectoryIndex - server default page showing for domain rootHow to restore apache configuration?.htaccess password directory protection - blank page.htaccess redirect all extension to phpDeny access to root directory while allowing access to the DirectoryIndex for default pageRestrict access to apache document root but not for subdomains

Is it possible for people to live in the eye of a permanent hypercane?

Replace only 2nd, 3rd, nth...character and onwards

Incremental Ranges!

Why is Colorado so different politically from nearby states?

Regarding eBGP Multipath

How to connect an offset point symbol to its original position in QGIS?

The term for the person/group a political party aligns themselves with to appear concerned about the general public

What is the history of the check mark / tick mark?

Personalization conditions switching doesn`t work in Experience Editor (9.1.0, Initial Release)

Explain Ant-Man's "not it" scene from Avengers: Endgame

Do I include animal companions when calculating difficulty of an encounter?

How certain is a caster of when their spell will end?

Count down from 0 to 5 seconds and repeat

Why don't B747s start takeoffs with full throttle?

The ring of global sections of a regular scheme

Humans meet a distant alien species. How do they standardize? - Units of Measure

Why is the relationship between frequency and pitch exponential?

Convert camelCase and PascalCase to Title Case

What does it mean by "d-ism of Leibniz" and "dotage of Newton" in simple English?

What happened to all the nuclear material being smuggled after the fall of the USSR?

How do you build a story from a world?

Is it OK to bring delicacies from hometown as tokens of gratitude for an out-of-town interview?

How were concentration and extermination camp guards recruited?

Comma Code - Ch. 4 Automate the Boring Stuff



Apache will not display index in web root, subfolders are fine


Trace where apache is serving a page fromWhy is this server redirecting to another page?Apache web server intermittently serves 403: “Directory index forbidden by Options directive” and 304All my PHP files are prompting direct downloadcPanel & DirectoryIndex - server default page showing for domain rootHow to restore apache configuration?.htaccess password directory protection - blank page.htaccess redirect all extension to phpDeny access to root directory while allowing access to the DirectoryIndex for default pageRestrict access to apache document root but not for subdomains






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








3















I have an Apache 2.2.3 server running on CentOS 5.5. In the root of my web directory, there is an index.html file.



Going to something like, say, www.exampledomain.egg/index.html works, but going to www.exampledomain.egg/ displays a completely blank page. I've double checked the DirectoryIndex option and still, nothing.



It seems as if this only affects the root of the domain. If there is a subdirectory, like www.exampledomain.egg/iamafolder/, that will display its own DirectoryIndex as normal.



Here's what I have in the .htaccess file:



DirectoryIndex index.html index.txt index.php









share|improve this question






























    3















    I have an Apache 2.2.3 server running on CentOS 5.5. In the root of my web directory, there is an index.html file.



    Going to something like, say, www.exampledomain.egg/index.html works, but going to www.exampledomain.egg/ displays a completely blank page. I've double checked the DirectoryIndex option and still, nothing.



    It seems as if this only affects the root of the domain. If there is a subdirectory, like www.exampledomain.egg/iamafolder/, that will display its own DirectoryIndex as normal.



    Here's what I have in the .htaccess file:



    DirectoryIndex index.html index.txt index.php









    share|improve this question


























      3












      3








      3


      1






      I have an Apache 2.2.3 server running on CentOS 5.5. In the root of my web directory, there is an index.html file.



      Going to something like, say, www.exampledomain.egg/index.html works, but going to www.exampledomain.egg/ displays a completely blank page. I've double checked the DirectoryIndex option and still, nothing.



      It seems as if this only affects the root of the domain. If there is a subdirectory, like www.exampledomain.egg/iamafolder/, that will display its own DirectoryIndex as normal.



      Here's what I have in the .htaccess file:



      DirectoryIndex index.html index.txt index.php









      share|improve this question
















      I have an Apache 2.2.3 server running on CentOS 5.5. In the root of my web directory, there is an index.html file.



      Going to something like, say, www.exampledomain.egg/index.html works, but going to www.exampledomain.egg/ displays a completely blank page. I've double checked the DirectoryIndex option and still, nothing.



      It seems as if this only affects the root of the domain. If there is a subdirectory, like www.exampledomain.egg/iamafolder/, that will display its own DirectoryIndex as normal.



      Here's what I have in the .htaccess file:



      DirectoryIndex index.html index.txt index.php






      apache-2.2 directory directoryindex






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited May 18 at 22:31









      window.document

      1436




      1436










      asked Mar 22 '11 at 21:03









      zach.hinchyzach.hinchy

      1613




      1613




















          3 Answers
          3






          active

          oldest

          votes


















          1














          Check the apache access log file to see that you are indeed requesting the correct file. Also check the index file for any run-away tags (e.g. missing </head> that could cause the whole document to be parsed as header information only.)






          share|improve this answer






























            0














            Are there other index.XXX files? Often index.php, for example will take priority over index.html.






            share|improve this answer























            • no other index.* files.

              – zach.hinchy
              Mar 22 '11 at 21:08











            • Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

              – farr
              Mar 22 '11 at 21:10











            • No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

              – zach.hinchy
              Mar 22 '11 at 21:12












            • You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

              – farr
              Mar 22 '11 at 21:13











            • no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

              – zach.hinchy
              Mar 22 '11 at 21:15



















            0














            One thing you can try is checking to help troubleshoot is the last access time of the index.html file in question. First you'll need to make sure that atime flags are updated on your filesystem. Run mount and see if the filesystem that your document root is on has a noatime flag set. If it does, then you aren't updating the atimes of files and will need to remount it without this flag. Otherwise, it should be updating the atimes.



            Now that you've done, that, just run this:



            ls -l --full-time --time=atime index.html


            Then wait a few seconds and then try to access http://www.exampledomain.egg/ then go back to the shell and run that ls command again and see if the atime has changed.




            • If the atime didn't change:



              See if you still have the default welcome.conf turned on in /etc/httpd/conf.d/ It could be that the welcome error file is blank or something and you're matching that. The default match there only matches at the root, which sounds like what you are encountering.




            • If the atime did change:



              Make sure the index.html file isn't really empty? cat index.html



            Also, you didn't mention whether you checked the source in your browser on the blank page to see if it is really empty or if it just has invisible content.



            Use a different browser to verify that the problem is on the server end:



            curl http://www.exampledomain.egg/



            And its ok if it really had invisible content, I've fooled myself a few times into thinking this so don't kick yourself too hard.






            share|improve this answer

























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "2"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f250519%2fapache-will-not-display-index-in-web-root-subfolders-are-fine%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Check the apache access log file to see that you are indeed requesting the correct file. Also check the index file for any run-away tags (e.g. missing </head> that could cause the whole document to be parsed as header information only.)






              share|improve this answer



























                1














                Check the apache access log file to see that you are indeed requesting the correct file. Also check the index file for any run-away tags (e.g. missing </head> that could cause the whole document to be parsed as header information only.)






                share|improve this answer

























                  1












                  1








                  1







                  Check the apache access log file to see that you are indeed requesting the correct file. Also check the index file for any run-away tags (e.g. missing </head> that could cause the whole document to be parsed as header information only.)






                  share|improve this answer













                  Check the apache access log file to see that you are indeed requesting the correct file. Also check the index file for any run-away tags (e.g. missing </head> that could cause the whole document to be parsed as header information only.)







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 22 '11 at 21:35









                  jhojho

                  1315




                  1315























                      0














                      Are there other index.XXX files? Often index.php, for example will take priority over index.html.






                      share|improve this answer























                      • no other index.* files.

                        – zach.hinchy
                        Mar 22 '11 at 21:08











                      • Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

                        – farr
                        Mar 22 '11 at 21:10











                      • No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

                        – zach.hinchy
                        Mar 22 '11 at 21:12












                      • You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

                        – farr
                        Mar 22 '11 at 21:13











                      • no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

                        – zach.hinchy
                        Mar 22 '11 at 21:15
















                      0














                      Are there other index.XXX files? Often index.php, for example will take priority over index.html.






                      share|improve this answer























                      • no other index.* files.

                        – zach.hinchy
                        Mar 22 '11 at 21:08











                      • Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

                        – farr
                        Mar 22 '11 at 21:10











                      • No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

                        – zach.hinchy
                        Mar 22 '11 at 21:12












                      • You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

                        – farr
                        Mar 22 '11 at 21:13











                      • no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

                        – zach.hinchy
                        Mar 22 '11 at 21:15














                      0












                      0








                      0







                      Are there other index.XXX files? Often index.php, for example will take priority over index.html.






                      share|improve this answer













                      Are there other index.XXX files? Often index.php, for example will take priority over index.html.







                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Mar 22 '11 at 21:07









                      farrfarr

                      362




                      362












                      • no other index.* files.

                        – zach.hinchy
                        Mar 22 '11 at 21:08











                      • Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

                        – farr
                        Mar 22 '11 at 21:10











                      • No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

                        – zach.hinchy
                        Mar 22 '11 at 21:12












                      • You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

                        – farr
                        Mar 22 '11 at 21:13











                      • no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

                        – zach.hinchy
                        Mar 22 '11 at 21:15


















                      • no other index.* files.

                        – zach.hinchy
                        Mar 22 '11 at 21:08











                      • Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

                        – farr
                        Mar 22 '11 at 21:10











                      • No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

                        – zach.hinchy
                        Mar 22 '11 at 21:12












                      • You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

                        – farr
                        Mar 22 '11 at 21:13











                      • no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

                        – zach.hinchy
                        Mar 22 '11 at 21:15

















                      no other index.* files.

                      – zach.hinchy
                      Mar 22 '11 at 21:08





                      no other index.* files.

                      – zach.hinchy
                      Mar 22 '11 at 21:08













                      Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

                      – farr
                      Mar 22 '11 at 21:10





                      Can you paste your DirectoryIndex line? Do you have another .htaccess in document root?

                      – farr
                      Mar 22 '11 at 21:10













                      No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

                      – zach.hinchy
                      Mar 22 '11 at 21:12






                      No other .htaccess files. Here's the line: DirectoryIndex index.html index.txt index.php

                      – zach.hinchy
                      Mar 22 '11 at 21:12














                      You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

                      – farr
                      Mar 22 '11 at 21:13





                      You don't have mod_dir disabled by some config item or minimal installation do you? This is the module that provides the DirectoryIndex function

                      – farr
                      Mar 22 '11 at 21:13













                      no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

                      – zach.hinchy
                      Mar 22 '11 at 21:15






                      no, because I can go to other subdirectories on my server and get the folder listing. actually, checking it out a bit more, it seems like the "blank index" thing is only happening in the web root. any subfolders are working as expected. i'm going to update my question to reflect that.

                      – zach.hinchy
                      Mar 22 '11 at 21:15












                      0














                      One thing you can try is checking to help troubleshoot is the last access time of the index.html file in question. First you'll need to make sure that atime flags are updated on your filesystem. Run mount and see if the filesystem that your document root is on has a noatime flag set. If it does, then you aren't updating the atimes of files and will need to remount it without this flag. Otherwise, it should be updating the atimes.



                      Now that you've done, that, just run this:



                      ls -l --full-time --time=atime index.html


                      Then wait a few seconds and then try to access http://www.exampledomain.egg/ then go back to the shell and run that ls command again and see if the atime has changed.




                      • If the atime didn't change:



                        See if you still have the default welcome.conf turned on in /etc/httpd/conf.d/ It could be that the welcome error file is blank or something and you're matching that. The default match there only matches at the root, which sounds like what you are encountering.




                      • If the atime did change:



                        Make sure the index.html file isn't really empty? cat index.html



                      Also, you didn't mention whether you checked the source in your browser on the blank page to see if it is really empty or if it just has invisible content.



                      Use a different browser to verify that the problem is on the server end:



                      curl http://www.exampledomain.egg/



                      And its ok if it really had invisible content, I've fooled myself a few times into thinking this so don't kick yourself too hard.






                      share|improve this answer





























                        0














                        One thing you can try is checking to help troubleshoot is the last access time of the index.html file in question. First you'll need to make sure that atime flags are updated on your filesystem. Run mount and see if the filesystem that your document root is on has a noatime flag set. If it does, then you aren't updating the atimes of files and will need to remount it without this flag. Otherwise, it should be updating the atimes.



                        Now that you've done, that, just run this:



                        ls -l --full-time --time=atime index.html


                        Then wait a few seconds and then try to access http://www.exampledomain.egg/ then go back to the shell and run that ls command again and see if the atime has changed.




                        • If the atime didn't change:



                          See if you still have the default welcome.conf turned on in /etc/httpd/conf.d/ It could be that the welcome error file is blank or something and you're matching that. The default match there only matches at the root, which sounds like what you are encountering.




                        • If the atime did change:



                          Make sure the index.html file isn't really empty? cat index.html



                        Also, you didn't mention whether you checked the source in your browser on the blank page to see if it is really empty or if it just has invisible content.



                        Use a different browser to verify that the problem is on the server end:



                        curl http://www.exampledomain.egg/



                        And its ok if it really had invisible content, I've fooled myself a few times into thinking this so don't kick yourself too hard.






                        share|improve this answer



























                          0












                          0








                          0







                          One thing you can try is checking to help troubleshoot is the last access time of the index.html file in question. First you'll need to make sure that atime flags are updated on your filesystem. Run mount and see if the filesystem that your document root is on has a noatime flag set. If it does, then you aren't updating the atimes of files and will need to remount it without this flag. Otherwise, it should be updating the atimes.



                          Now that you've done, that, just run this:



                          ls -l --full-time --time=atime index.html


                          Then wait a few seconds and then try to access http://www.exampledomain.egg/ then go back to the shell and run that ls command again and see if the atime has changed.




                          • If the atime didn't change:



                            See if you still have the default welcome.conf turned on in /etc/httpd/conf.d/ It could be that the welcome error file is blank or something and you're matching that. The default match there only matches at the root, which sounds like what you are encountering.




                          • If the atime did change:



                            Make sure the index.html file isn't really empty? cat index.html



                          Also, you didn't mention whether you checked the source in your browser on the blank page to see if it is really empty or if it just has invisible content.



                          Use a different browser to verify that the problem is on the server end:



                          curl http://www.exampledomain.egg/



                          And its ok if it really had invisible content, I've fooled myself a few times into thinking this so don't kick yourself too hard.






                          share|improve this answer















                          One thing you can try is checking to help troubleshoot is the last access time of the index.html file in question. First you'll need to make sure that atime flags are updated on your filesystem. Run mount and see if the filesystem that your document root is on has a noatime flag set. If it does, then you aren't updating the atimes of files and will need to remount it without this flag. Otherwise, it should be updating the atimes.



                          Now that you've done, that, just run this:



                          ls -l --full-time --time=atime index.html


                          Then wait a few seconds and then try to access http://www.exampledomain.egg/ then go back to the shell and run that ls command again and see if the atime has changed.




                          • If the atime didn't change:



                            See if you still have the default welcome.conf turned on in /etc/httpd/conf.d/ It could be that the welcome error file is blank or something and you're matching that. The default match there only matches at the root, which sounds like what you are encountering.




                          • If the atime did change:



                            Make sure the index.html file isn't really empty? cat index.html



                          Also, you didn't mention whether you checked the source in your browser on the blank page to see if it is really empty or if it just has invisible content.



                          Use a different browser to verify that the problem is on the server end:



                          curl http://www.exampledomain.egg/



                          And its ok if it really had invisible content, I've fooled myself a few times into thinking this so don't kick yourself too hard.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Mar 23 '11 at 0:50

























                          answered Mar 23 '11 at 0:43









                          deltaraydeltaray

                          1,030713




                          1,030713



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Server Fault!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f250519%2fapache-will-not-display-index-in-web-root-subfolders-are-fine%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                              Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                              What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company