Sida 1 av 1
Stänga av virtual listing eller vad det heter...
Postat: 18 augusti 2009, 23:00:00
av ElectricMan
Skulle vilja stänga av funktionen i Apache så att den inte listar allt som finns i mapparna.
Har inte hittat den funktionen, men jag hoppas att den finns så jag slipper att stoppa dit tomma html filer osv. hela tiden jag skapar en mapp.
Nån som vet vad jag ska söka efter eller göra så att jag får som jag vill?
Re: Stänga av virtual listing eller vad det heter...
Postat: 18 augusti 2009, 23:19:53
av sodjan
"Directory Listing". I någon config fil någonstans...
Apache är komplext, du har en hel del att studera om det är nytt för dig.
Re: Stänga av virtual listing eller vad det heter...
Postat: 19 augusti 2009, 01:04:17
av blueint
Någonting med "Directory" i httpd.conf
Re: Stänga av virtual listing eller vad det heter...
Postat: 19 augusti 2009, 10:02:23
av AndLi
Och sen när du läst klart Apache manualen kan du ju öva lite på dina google skills,
google -> "turn off virtual listning apache" och tredje träffen ger dig svaret, kan inte lagt mycket kraft på att försöka själv?
Kod: Markera allt
How do I turn automatic directory listings on or off?
If a client requests a URL that designates a directory and the directory does not contain a filename that matches the DirectoryIndex directive, then mod_autoindex can be configured to present a listing of the directory contents.
To turn on automatic directory indexing, find the Options directive that applies to the directory and add the Indexes keyword. For example:
<Directory /path/to/directory>
Options +Indexes
</Directory>
To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off directory listing for a particular subdirectory, you can use Options -Indexes. For example:
<Directory /path/to/directory>
Options -Indexes
</Directory>
Re: Stänga av virtual listing eller vad det heter...
Postat: 19 augusti 2009, 10:14:31
av ElectricMan
Tack så mycket AndLi!
Jo, jag har sökt... Men på fel sökord, jag trodde att det hette Virtual Directory eller virtual listing...
Men nu funkar det ju!
