PDA

View Full Version : Web Hosting: URL to stuff outside of the PublicHTML folder?


gingo
11-09-03, 09:46 PM
When I put something in a folder outside of the Public HTML folder on my web host how do I get the URL to whatever it is?

For instance, if I were to make a folder in my Public HTML folder the URL would be:

www.my-domain-name.com/FOLDER/


But what would the URL be to that folder if its outside of the public html folder?

mdcomp
11-09-03, 09:48 PM
Originally posted by gingo
When I put something in a folder outside of the Public HTML folder on my web host how do I get the URL to whatever it is?

For instance, if I were to make a folder in my Public HTML folder the URL would be:

www.my-domain-name.com/FOLDER/


But what would the URL be to that folder if its outside of the public html folder?

I don't think you can access those. It might just be for storage for things you don't want to be served out on the net. I am no genius when it comes to webhosting though, but thats just my take on it. On my web host I can't get the url of things not in the public html folder either.

Matt

XWRed1
11-09-03, 11:21 PM
No. On Apache servers, Apache maps /~username to public_html in that user's home directory. Other than that, user's home directories typically aren't web accessible.

gingo
11-10-03, 12:45 PM
Hmm, I was folling directions for installing a new poster on my site.

Its recommends putting the stuff outside of your public HTML folder so other people cant access it, but then it needs to know the URL to the folder... So, I was a little confused.

So I guess I just put in the Public HTML folder then?

mdcomp
11-10-03, 03:40 PM
Originally posted by gingo
Hmm, I was folling directions for installing a new poster on my site.

Its recommends putting the stuff outside of your public HTML folder so other people cant access it, but then it needs to know the URL to the folder... So, I was a little confused.

So I guess I just put in the Public HTML folder then?

Yes, put it in the Public HTML folder. If you don't you will not be able to view it through a url. You would only have access to it through an ftp server or some other type of file manager.

Matt

XWRed1
11-10-03, 04:11 PM
It probably means the stuff you don't want accessible to others goes outside public_html because it only needs it internally, and wants a pathname on the server so it knows where those files are.