LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2018, 04:53 PM   #1
CosmoAnderson
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Rep: Reputation: Disabled
creating index file


I just got an hosting account, and uploaded my html.
It didn't load and was told I needed a index file. Can someone point me in the direction of how to create one?
Thanks, Cosmo
 
Old 06-11-2018, 05:00 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Have you configured the web server to deliver your html from the location to which you uploaded it?
What is the name of the file containing the "home" page of your site?
 
Old 06-11-2018, 05:04 PM   #3
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Index.html is the default name for the home page.
 
1 members found this post helpful.
Old 06-11-2018, 05:11 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by AwesomeMachine View Post
Index.html is the default name for the home page.
Um. Typically index.html or index.htm -- an out-of-the-box apache configuration, at least, wouldn't recognize the capital I. (Tho I concede your post may have suffered from some sort of autocorrect)
.
But it's not clear whether the OP has configured the web server at all, so they may be getting the server's default response page even if they have an index.html. Let's see what they say...

Last edited by scasey; 06-11-2018 at 05:12 PM.
 
Old 06-11-2018, 05:15 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,703

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
Welcome to linuxquestions.

In addition, the default web page if not specified when you browse to a website is typically index.html. That file as stated needs to be saved in what is known as the server's document root directory.

If your file is in the correct dirrectory but not saved as index.html you can try entering www.your_server_url/file.name

I can't type fast...

Last edited by michaelk; 06-11-2018 at 05:16 PM.
 
Old 06-11-2018, 05:20 PM   #6
CosmoAnderson
LQ Newbie
 
Registered: Jun 2018
Posts: 2

Original Poster
Rep: Reputation: Disabled
Success!

All I did was change the name of my file to home.html (I had tried index.html before, but that didn't work.)
Thx!
 
Old 06-11-2018, 05:58 PM   #7
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by CosmoAnderson View Post
All I did was change the name of my file to home.html (I had tried index.html before, but that didn't work.)
Thx!
Hmm? That sounds backwards. The name of your file should be index.html to load by default.
Are you using www.yourdomain.com/home.html as suggested by michaelk?

In any event...glad you got it working!

Last edited by scasey; 06-11-2018 at 06:29 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] how can i move the index of a file to another existing file? ddebbie90 Programming 1 02-08-2011 02:49 PM
LXer: ActiveState Launches Python Package Manager Index (PyPM Index) LXer Syndicated Linux News 0 11-03-2010 03:40 PM
How to change the default webpage configuration from index.php to index.htm, etc meema Linux - Server 4 08-22-2008 09:06 PM
apache index.html doesn't show up but index.php do zoffmann Linux - Server 5 01-28-2008 03:53 PM
creating array in c++ with string index mohtasham1983 Programming 3 03-11-2007 04:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration