Can't get directory listing on my Apache to work.

Posted by joon on Ask Ubuntu See other posts from Ask Ubuntu or by joon
Published on 2011-03-16T03:54:11Z Indexed on 2011/03/16 8:18 UTC
Read the original article Hit count: 251

Filed under:

Hi,

I'm having trouble enabling the directory listing on apache. I did it a few weeks ago but had to reinstall cause my Wubi ran out of space, and now I can't get it to work and it's driving me crazy.

I have a folder /home/joon/Dropbox/Projects/apache, which I want to set as the root for my apache. Here's the first lines of the 'default' file in the sites-available folder:

<VirtualHost *:8888>
ServerAdmin webmaster@localhost

DocumentRoot /home/joon/Dropbox/Projects/apache
<Directory /home/joon/Dropbox/Projects/apache>
    Options +Indexes FollowSymLinks
    AllowOverride None

The rest is unchanged. Ports.conf is set to Listen 8888. I thought the +Indexes should do it, but I must have overlooked something.

I get a 403, forbidden. "You don't have permission to access / on this server." If I input the url of an image, http://127.0.0.1:8888/joon/bin/1chart.png, it displays, but no directory listing.

Please help.

© Ask Ubuntu or respective owner

Related posts about apache