LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   where to upload index.html file (http://www.linuxquestions.org/questions/linux-server-73/where-to-upload-index-html-file-4175410976/)

hemanthm17 06-12-2012 01:55 AM

where to upload index.html file
 
Hi all,
I am newbie to web programming and architecture ,recently i got a domain name and the hodting server is linux .All i need is when i enter my webaddress i need to display my index.html pages but when i get default index.html page provided by hosting server saying "website is under construction" .So inorder to display my custom index.html page when i enter my webaddress where should i upload my custom index.html page(i just want to upload single page ,i dont want to install any app)

acid_kewpie 06-12-2012 02:00 AM

well the default documentroot on most apache servers is /var/www/html but you've not provided any information about how the system is configured, and whatever form of hosting you've purchased could do things in all manner of different ways. Safest bet is to ask them / read the docs they must have already written for people in your situation.

Mubinali 06-12-2012 09:06 AM

Hey,

As Chris rightly mentioned, the path is /var/www/html. Most providers have public_html, document root and www as options when you click on File Manager in Cpanel Interface (I am assuming this as Cpanel is defacto for linux hosting. Now, all you need to do is remove the default page that came in your hosting panel and upload your custom index.html page.

rockstar05 06-12-2012 09:43 AM

Hi,

Please check that your website is well configured as and save in proper location of document root i.e. /var/www/html/ and also see the IP address metioned in configuration file.

me_spearhead 06-13-2012 12:16 AM

Hi,

Just to add, be careful with case in file names. Linux is case sensitive. index.html and Index.html are both different files. This is common mistake for :

Quote:

error 404 page not found
Check Directory Index option for the same in config file.

hemanthm17 06-13-2012 08:41 AM

Quote:

Originally Posted by hemanthm17 (Post 4701189)
Hi all,
I am newbie to web programming and architecture ,recently i got a domain name and the hodting server is linux .All i need is when i enter my webaddress i need to display my index.html pages but when i get default index.html page provided by hosting server saying "website is under construction" .So inorder to display my custom index.html page when i enter my webaddress where should i upload my custom index.html page(i just want to upload single page ,i dont want to install any app)

FYI i got AN ERROR "550 Security server forbids that action on this file"

Mubinali 06-13-2012 10:55 AM

@hemanthm17

we need to know the action that you were trying to perform post which you got this error. By just knowing the error, its difficult to help you.

frankbell 06-13-2012 09:48 PM

This really does sound like a question for your hosting provider.

You don't need to know what the typical Linux server configuration may happen to be. You need to know how your hosting provider has configured its Linux server. You should get better answers by contacting them or by checking their knowledge base.


All times are GMT -5. The time now is 12:00 PM.