Apache httpd does not load index.html when a web app is installed
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
add a comment |
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
Maybe a silly question, however, what is in/var/www/htmlon your Scientific Linux 7 system ? Do you have an.htaccessfile with redirect there ?
– thecarpy
Nov 14 '17 at 7:57
add a comment |
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
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
centos apache-httpd scientific-linux
asked Nov 14 '17 at 7:33
3bdalla3bdalla
1741823
1741823
Maybe a silly question, however, what is in/var/www/htmlon your Scientific Linux 7 system ? Do you have an.htaccessfile with redirect there ?
– thecarpy
Nov 14 '17 at 7:57
add a comment |
Maybe a silly question, however, what is in/var/www/htmlon your Scientific Linux 7 system ? Do you have an.htaccessfile 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
add a comment |
1 Answer
1
active
oldest
votes
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
add a comment |
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
add a comment |
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
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
answered Nov 15 '17 at 21:21
Abhik BoseAbhik Bose
1,5671322
1,5671322
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Maybe a silly question, however, what is in
/var/www/htmlon your Scientific Linux 7 system ? Do you have an.htaccessfile with redirect there ?– thecarpy
Nov 14 '17 at 7:57