Indexes Options not workig 2.2

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/...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-15-2008
Kees
 
Posts: n/a
Default Indexes Options not workig 2.2

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





  #2 (permalink)  
Old 06-15-2008
HansH
 
Posts: n/a
Default Re: Indexes Options not workig 2.2

"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


  #3 (permalink)  
Old 06-15-2008
Kees
 
Posts: n/a
Default Re: Indexes Options not workig 2.2

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
>


  #4 (permalink)  
Old 06-15-2008
Kees
 
Posts: n/a
Default Re: Indexes Options not workig 2.2

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


  #5 (permalink)  
Old 06-15-2008
HansH
 
Posts: n/a
Default Re: Indexes Options not workig 2.2


"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


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0