/    Sign up×
Community /Pin to ProfileBookmark

Sharing a directory on the web

Here’s my scenario:

I’m currently running a web server and have it set to make a certain index.html file the home page. So if you type in

[url]http://24.19.54.215[/url]

in your address bar, my index.html file will come up (it just says under construction right now).

Now, I have other folders placed inside the same directory as index.html, and I want to allow remote users to be able to access them. For example, I want a user to be able to type in

[url]http://24.19.54.215/pics[/url]

and have it display one of those pages that says “index of /pics” and then lists all the files in that directory. However when I do type that in my address bar, it says “You are not authorized to view this page” or some crap. My question is, what do I have to do to allow web users to be able to veiw this page? Please don’t tell me it invloves my web server, because I’m using a really simple one that doesn’t really have any configuration settings in it.

If it does invlove the web server, then please reccomend a simple easy-to-use web server that supports this function.

EDIT: If there is more than one solution, please just tell me the easiest one.

Thanks!

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@rhsundergroundJan 10.2005 — moved to general.
Copy linkTweet thisAlerts:
@scragarJan 10.2005 — if you have an inbdex.html inside of pics(/pics/index.html) then this page shouldn't come up as it's generated as a security issue by the users OS, if you've added an index page to the folder then say so as it may be that your link is not correct.
Copy linkTweet thisAlerts:
@ray326Jan 10.2005 — The easiest solution? Enable directory indexing on the server. If it's your server then no problem but many hosting companies leave this turned off by default.
Copy linkTweet thisAlerts:
@ButtersauthorJan 11.2005 — ok thanks i found what i was looking for on google, i did have to download a different web server
×

Success!

Help @Butters spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...