IDNetters Forums

Technical News & Discussion => IDNet Help => Topic started by: GUB on Apr 27, 2009, 08:14:25

Title: Webspace setup question
Post by: GUB on Apr 27, 2009, 08:14:25
I have all my details and am succesfully uploading via an FTP client, however I don't see what I think I should?

All I want to do is have somewhere to upload files that I can then link to.  Nothing fancy, just a simple file store.  I have a basic index/html (copied from another thread) but that just comes up with a blank screen, I thought I would see a folder/file structure?

Any help appreciated :) thanks
Title: Re: Webspace setup question
Post by: kinmel on Apr 27, 2009, 08:31:25
Welcome to IDNet and the forum    :welc: :karma:    get ready for a different ISP experience.


If your home page contains a file named index.html, then the contents of that file are displayed -  eg my Idnet webspace with index.html (http://a_woodward.www.idnet.com/)

If your home page DOES NOT contain a file named index.html, then the index of files in the home directory are displayed -  eg my Idnet webspace without index.html (http://a_woodward.www.idnet.com/test)

If you already have a file index.html in your home directory and the page shows up blank,  then, either index.html does not contain any html Code, or you are entering the wrong URL in your browser.
Title: Re: Webspace setup question
Post by: Rik on Apr 27, 2009, 08:45:28
Thanks for that, Alan.  :thumb: :karma:

Welcome to the forum, GUB. :welc: :karma:
Title: Re: Webspace setup question
Post by: Sebby on Apr 27, 2009, 13:20:59
Welcome, GUB! :thumb:

:welc: :karma:
Title: Re: Webspace setup question
Post by: GUB on Apr 27, 2009, 18:14:47
Thanks for the welcomes, and the input, however I am still stuck  :red:

If I delete the index.html file I get a 403 forbidden message.  Have a look and see http://mjm.www.idnet.com/
Title: Re: Webspace setup question
Post by: Rik on Apr 27, 2009, 18:26:11
Have a word with support, it may be a permissions problem which they can fix in a jiffy for you. The fact that you are uploading OK puzzles me slightly, but support will quickly work out what's gone wrong for you. (An email is fine if you can't conveniently phone them.)
Title: Re: Webspace setup question
Post by: Rik on Apr 27, 2009, 18:39:49
I've had a word with support on your behalf. They can see a file you've uploaded, but they think that what you want to do can't be done on the free webspace as simply as you would like. OTOH, file access is doable, eg:

http://rik.www.idnet.com/us250409.jpg should reveal a photo to you.

Unless you give people access with password and username (not recommended), then you need to send individual links, as above. Remember that the whole thing is case-sensitive, ie G and g are not the same thing.

Does that help at all?
Title: Re: Webspace setup question
Post by: GUB on Apr 27, 2009, 18:48:35
Ah, some progress!  I can link files in the way you say, but I do not see the file listing as shown in the post by kinmel (the second link he posted) and I think I should be able to?  I used to be able to do it on my Eclipse webspace, so assumed it was a basic thing?
Title: Re: Webspace setup question
Post by: Sebby on Apr 27, 2009, 18:53:50
How about if you create a new folder, then put the files there? It might just be that directory listing is not allowed when it's the root directory.
Title: Re: Webspace setup question
Post by: Rik on Apr 27, 2009, 18:54:56
It doesn't work for me either, so I'm not sure how Alan did it. :( However http://rik.www.idnet.com/Smileys has no index file and returns the 403 error, but http://rik.www.idnet.com/Smileys/rofl.gif works. Sadly, it's not as simple as being in the root.
Title: Re: Webspace setup question
Post by: kinmel on Apr 27, 2009, 19:40:28
I cheated with the second link this morning, because I needed to keep 2 pages live, the second was a sub-directory.

However, if my home page does not have index.html then it does show an index of the files in the home directory, have a look  -       http://a_woodward.www.idnet.com
Title: Re: Webspace setup question
Post by: Rik on Apr 27, 2009, 19:46:54
You still appear to have an index page from here, Alan, ie I see the temporary message plus the iDNet bit...

Oops, cleared cache, now you don't.  :blush:

Still doesn't work on my webspace though.
Title: Re: Webspace setup question
Post by: kinmel on Apr 27, 2009, 19:54:10
Quote from: Rik on Apr 27, 2009, 19:46:54
You still appear to have an index page from here, Alan, ie I see the temporary message plus the iDNet bit...

Oops, cleared cache, now you don't.  :blush:

Still doesn't work on my webspace though.

Very strange, I am not aware of anything deliberately altered on my space.
Title: Re: Webspace setup question
Post by: Rik on Apr 27, 2009, 19:55:15
I am still wondering if it's a permissions issue on the server... I'll talk to support again in the morning.
Title: Re: Webspace setup question
Post by: kinmel on Apr 27, 2009, 22:30:09
Playing around with permissions on my servers at home, I have accidentally used FTP to the wrong site and have added a faulty .htaccess file to my Idnet webspace.

It's proper broken now  :bawl:

Hope support don't have too much trouble fixing it when they read my email in the morning.  :red:
Title: Re: Webspace setup question
Post by: Simon on Apr 27, 2009, 23:11:31
I'm sure they will sort it, Alan.  ;)
Title: Re: Webspace setup question
Post by: kinmel on Apr 28, 2009, 07:55:17
Quote from: Simon on Apr 27, 2009, 23:11:31
I'm sure they will sort it, Alan.  ;)

I have no doubt that they will   :thumb:.

When reading up on the topic l find that the experts agree that not allowing indexing of the home folder is a "Good Thing" as it greatly improves security. Otherwise a missing index.html leaves the files on your webspace wide open to everyone.

I expect we will find that Idnet follow good practice and turn indexing off by default and that my Idnet webspace was incorrectly configured. ( well it is now  ::) ).


Title: Re: Webspace setup question
Post by: kinmel on Apr 28, 2009, 08:54:08
Idnet have reset my webspace already, they didn't shout at me either.

My webspace now works the same as yours, if no index.html is present then 403 error.
Title: Re: Webspace setup question
Post by: Rik on Apr 28, 2009, 09:04:43
GUB

I've had a word with support on this, and to do what you want, you need to create and upload an htaccess file.

Open Notepad, then type Options +Indexes - note the capital O & I, and the space before the + sign (but not after). Hit Save as, then select all files. Type the name .htaccess and save. You should then have a file called .htaccess, with no extension. Upload this to your webspace root folder via FTP, and the list of files should appear.
Title: Re: Webspace setup question
Post by: Sebby on Apr 28, 2009, 12:52:15
.htaccess is the extension; the file has no name. You'll need to save it in quote marks in Notepad, otherwise you'll end up with a file called .htaccess.txt.
Title: Re: Webspace setup question
Post by: Rik on Apr 28, 2009, 14:30:40
I didn't realise that, Seb, but it makes sense. Provided you change to all files from .txt when saving, Notepad will save the file correctly.
Title: Re: Webspace setup question
Post by: Sebby on Apr 28, 2009, 21:50:06
Oh right, is there an option to save as something other than txt?
Title: Re: Webspace setup question
Post by: Rik on Apr 29, 2009, 00:02:13
Yes, if you select the 'all files' option, see screenshot.

[attachment deleted by admin]
Title: Re: Webspace setup question
Post by: Sebby on Apr 29, 2009, 14:59:55
Oh yes. :thumb: