Apache httpd does not load index.html when a web app is installed












1















In a CentOS 7 installation I installed OrangeScrum (which is a standard PHP application copied to /var/www/html). When I type the server IP I get the Apache test page and if I have an index.html page it will be displayed. And when I type the server-ip/orangescrum for example I get the web app. All this is fine.



Moving on to a server with Scientific Linux 7 I did the same, but when I install the app to the Apache and typing the server ip alone I get the app itself not the Apache status nor the index.html if any. Nothing has been done to httpd.conf except adding a virtual host definition like here



What am I missing to do in order to get the root index or the Apache test pages to work?










share|improve this question























  • Maybe a silly question, however, what is in /var/www/html on your Scientific Linux 7 system ? Do you have an .htaccess file with redirect there ?

    – thecarpy
    Nov 14 '17 at 7:57
















1















In a CentOS 7 installation I installed OrangeScrum (which is a standard PHP application copied to /var/www/html). When I type the server IP I get the Apache test page and if I have an index.html page it will be displayed. And when I type the server-ip/orangescrum for example I get the web app. All this is fine.



Moving on to a server with Scientific Linux 7 I did the same, but when I install the app to the Apache and typing the server ip alone I get the app itself not the Apache status nor the index.html if any. Nothing has been done to httpd.conf except adding a virtual host definition like here



What am I missing to do in order to get the root index or the Apache test pages to work?










share|improve this question























  • Maybe a silly question, however, what is in /var/www/html on your Scientific Linux 7 system ? Do you have an .htaccess file with redirect there ?

    – thecarpy
    Nov 14 '17 at 7:57














1












1








1








In a CentOS 7 installation I installed OrangeScrum (which is a standard PHP application copied to /var/www/html). When I type the server IP I get the Apache test page and if I have an index.html page it will be displayed. And when I type the server-ip/orangescrum for example I get the web app. All this is fine.



Moving on to a server with Scientific Linux 7 I did the same, but when I install the app to the Apache and typing the server ip alone I get the app itself not the Apache status nor the index.html if any. Nothing has been done to httpd.conf except adding a virtual host definition like here



What am I missing to do in order to get the root index or the Apache test pages to work?










share|improve this question














In a CentOS 7 installation I installed OrangeScrum (which is a standard PHP application copied to /var/www/html). When I type the server IP I get the Apache test page and if I have an index.html page it will be displayed. And when I type the server-ip/orangescrum for example I get the web app. All this is fine.



Moving on to a server with Scientific Linux 7 I did the same, but when I install the app to the Apache and typing the server ip alone I get the app itself not the Apache status nor the index.html if any. Nothing has been done to httpd.conf except adding a virtual host definition like here



What am I missing to do in order to get the root index or the Apache test pages to work?







centos apache-httpd scientific-linux






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '17 at 7:33









3bdalla3bdalla

1741823




1741823













  • Maybe a silly question, however, what is in /var/www/html on your Scientific Linux 7 system ? Do you have an .htaccess file with redirect there ?

    – thecarpy
    Nov 14 '17 at 7:57



















  • Maybe a silly question, however, what is in /var/www/html on your Scientific Linux 7 system ? Do you have an .htaccess file with redirect there ?

    – thecarpy
    Nov 14 '17 at 7:57

















Maybe a silly question, however, what is in /var/www/html on your Scientific Linux 7 system ? Do you have an .htaccess file with redirect there ?

– thecarpy
Nov 14 '17 at 7:57





Maybe a silly question, however, what is in /var/www/html on your Scientific Linux 7 system ? Do you have an .htaccess file with redirect there ?

– thecarpy
Nov 14 '17 at 7:57










1 Answer
1






active

oldest

votes


















0














Please delete the existing index.html file from /var/www/html directory or rename it to something line index.html.back. Then you shall start seeing your application while typing IP address.



Your server indexing .html file before .php file. Sub folders of the application doesn't have any .html file. So, it's working fine.



If this solve your issue update your virtual host configuration as follows



DirectoryIndex index.php index.phtml index.html index.htm





share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f404411%2fapache-httpd-does-not-load-index-html-when-a-web-app-is-installed%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Please delete the existing index.html file from /var/www/html directory or rename it to something line index.html.back. Then you shall start seeing your application while typing IP address.



    Your server indexing .html file before .php file. Sub folders of the application doesn't have any .html file. So, it's working fine.



    If this solve your issue update your virtual host configuration as follows



    DirectoryIndex index.php index.phtml index.html index.htm





    share|improve this answer




























      0














      Please delete the existing index.html file from /var/www/html directory or rename it to something line index.html.back. Then you shall start seeing your application while typing IP address.



      Your server indexing .html file before .php file. Sub folders of the application doesn't have any .html file. So, it's working fine.



      If this solve your issue update your virtual host configuration as follows



      DirectoryIndex index.php index.phtml index.html index.htm





      share|improve this answer


























        0












        0








        0







        Please delete the existing index.html file from /var/www/html directory or rename it to something line index.html.back. Then you shall start seeing your application while typing IP address.



        Your server indexing .html file before .php file. Sub folders of the application doesn't have any .html file. So, it's working fine.



        If this solve your issue update your virtual host configuration as follows



        DirectoryIndex index.php index.phtml index.html index.htm





        share|improve this answer













        Please delete the existing index.html file from /var/www/html directory or rename it to something line index.html.back. Then you shall start seeing your application while typing IP address.



        Your server indexing .html file before .php file. Sub folders of the application doesn't have any .html file. So, it's working fine.



        If this solve your issue update your virtual host configuration as follows



        DirectoryIndex index.php index.phtml index.html index.htm






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 15 '17 at 21:21









        Abhik BoseAbhik Bose

        1,5671322




        1,5671322






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f404411%2fapache-httpd-does-not-load-index-html-when-a-web-app-is-installed%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

            How to make a Squid Proxy server?

            第一次世界大戦

            Touch on Surface Book