This is a discussion on Indexes Options not workig 2.2 within the Apache Web Server forums, part of the Web Server and Related Forums category; I can't remove directory listings My document root is /var/ww If I put the site in /var/www/...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I can't remove directory listings My document root is /var/ww
If I put the site in /var/www/site and in apache2.conf <Directory "/var/www/site"> Options -Indexes </Options> I don't get a directory listing (403, forbidden). But if I put the site in /var/www (this is what I want) and in apache2.conf <Directory "/var/www"> Options -Indexes </Options> I do get a directory listing. I've tried to comment out all Indexes stuff but nothing helps. I've removed (a long time ago) the 'redirect' to 'public_html'. Any ideas? Greetings, Kees |
|
|||
|
"Kees" <xxx@yyy> schreef in bericht
news:pip9549mrlpeidr2k5etsqpvdogjg9njlb@4ax.com... >I can't remove directory listings My document root is /var/ww Missing third 'w' must be a typo ... > If I put the site in /var/www/site > and in apache2.conf > <Directory "/var/www/site"> > Options -Indexes > </Options> > I don't get a directory listing (403, forbidden). > > But if I put the site in /var/www (this is what I want) and in > apache2.conf > <Directory "/var/www"> > Options -Indexes > </Options> > I do get a directory listing. You might be bitten by a browser cache ... Try 'GET -Sued http:/yyy/' > I've tried to comment out all Indexes stuff but nothing helps. As restarting mismatches my impatience, just stop and start it one more time. Hans |
|
|||
|
On Sun, 15 Jun 2008 14:42:08 +0200, "HansH" <hansh@invalid.invalid>
wrote: I've carefully investigated it. It is not a typo. My document root is /var/www (3 w's, standard directory). In every test I've wiped the browser cache and rebooted the computer where apache runs. The difference remains. The </Options> should be </Directory> in both cases. Any ideas? Greetings, Kees >"Kees" <xxx@yyy> schreef in bericht >news:pip9549mrlpeidr2k5etsqpvdogjg9njlb@4ax.com.. . >>I can't remove directory listings My document root is /var/ww >Missing third 'w' must be a typo ... > >> If I put the site in /var/www/site >> and in apache2.conf >> <Directory "/var/www/site"> >> Options -Indexes >> </Options> >> I don't get a directory listing (403, forbidden). >> >> But if I put the site in /var/www (this is what I want) and in >> apache2.conf >> <Directory "/var/www"> >> Options -Indexes >> </Options> >> I do get a directory listing. >You might be bitten by a browser cache ... >Try 'GET -Sued http:/yyy/' > >> I've tried to comment out all Indexes stuff but nothing helps. >As restarting mismatches my impatience, just stop and start it one more >time. > >Hans > |
|
|||
|
On Sun, 15 Jun 2008 14:42:08 +0200, "HansH" <hansh@invalid.invalid>
wrote: >"Kees" <xxx@yyy> schreef in bericht >news:pip9549mrlpeidr2k5etsqpvdogjg9njlb@4ax.com.. . >>I can't remove directory listings My document root is /var/ww >Missing third 'w' must be a typo ... ...... >Hans Maybe this i's important: When the listing apears, it shows: Index of / files..... So not Index of /var/www For testing purposes I've put all permissions of files and directory's to 0777. The version of Apache is 2.2.3 and it runs on Debian. Greetings, Kees |
|
|||
|
"Kees" <xxx@yyy> schreef in bericht news:loqa549l5fopf66v56kp47sten972v2k76@4ax.com... > On Sun, 15 Jun 2008 14:42:08 +0200, "HansH" <hansh@invalid.invalid> 9njlb@4ax.com... >>>I can't remove directory listings My document root is /var/ww >>Missing third 'w' must be a typo ... >> > I've carefully investigated it. It is not a typo. My document root is > /var/www (3 w's, standard directory). That makes the missing third 'w' in "My document root is /var/ww" a typo. > In every test I've wiped the browser cache and rebooted the computer > where apache runs. /etc/init.d/apache restart; or /etc/init.d/apache stop; sleep 5; /etc/init.d/apache stop should do fine. > The difference remains. > > The </Options> should be </Directory> in both cases. ;-) > Maybe this is important: > When the listing apears, it shows: Index of / files..... > So not Index of /var/www Assuming you requested the http:/yyy/ it SHOULD indeed show you the root of the site withour revealing its local path. Does the list show as aspected the files and folders at /var/www ? > The version of Apache is 2.2.3 and it runs on Debian. On Debian the config is shattered into multiple files scattered across multiple folders -it really does have logic-: /etc/apache2 conf.d mods-available mods-enabled (holding symlinks to mods-available) sites-available sites-enabled (holding symlinks to sites-available) Many options set in /etc/apache2/apache2.conf can and will be overruled *per*site* by /etc/apache2/sites-enabled/*. Did you put some files in /etc/apache2/sites-available/ or modified the 'one and only' default? By now I start wondering WHY do you intend to change this? HansH |