New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

How to disable directory listing

Started by wpmagic70, May 08, 2016, 07:09:32 AM

Previous topic - Next topic

wpmagic70

Hi all. I installed cwp on my vps but sounds like directory browsing is enabled and i added following code on httpd.conf but it not works at all:
Options -Indexes

I have inserted it in many places even in my domain directory but it not works.
Please help me.
Thanks.

Sandeep

create .htaccess file and add Options -Indexes
or add Options -Indexes in you existing .htaccess file

in root folder of website files (in public_html)

wpmagic70

Thank you. I was inserted it in there but seems the file was not changed at that time! this time tried changing that file from cwp root filemanager2 instead of  ftp and that worked.

Also i was inserted it in /usr/local/apache/conf/httpd.conf but it was not working there. Why ?
Thanks.

Sandeep

you can't add this to apache config file

i will recommend you to use winscp
https://winscp.net/eng/download.php

tristar78

#4
Hello, there.

I have been using CWP Panel more than 1 year. Really thanks founder&contributers to give us such nice platform.

Please follow this small modification for disable "Directory indexing" or "Directory Listing" on all server-side.

Quote[OPEN]
/usr/local/apache/conf/extra/httpd-userdir.conf
[FIND]
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
[REPLACE]
Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
[IMPORTANT]
RESTART APACHE SERVICE AFTER CHANGES!!!


Sandeep

#5
thanks

but its not necessary at all

pivey

hmm.. i added an .htaccess with Options -Indexes but still get 500 Internal Server error
Did also try recommended edit to \usr\local\apache\conf\extra\httpd-userdir.conf
Also 500 Internal Server error with log files indicating "htaccess: Options not allowed here"

Sandeep

Quote from: pivey on October 18, 2016, 11:37:06 AM
hmm.. i added an .htaccess with Options -Indexes but still get 500 Internal Server error
Did also try recommended edit to \usr\local\apache\conf\extra\httpd-userdir.conf
Also 500 Internal Server error with log files indicating "htaccess: Options not allowed here"
kindly let us know the url and its path

pivey

Please apologize, i was away for some time.
I sent you a private message for Url & path

Sandeep

Quote from: pivey on November 04, 2016, 08:43:44 PM
Please apologize, i was away for some time.
I sent you a private message for Url & path

if you have .htaccess file kindly rename it to .htaccess.bak and check

adisreyaj

Quote from: tristar78 on May 18, 2016, 10:29:20 AM
Hello, there.

I have been using CWP Panel more than 1 year. Really thanks founder&contributers to give us such nice platform.

Please follow this small modification for disable "Directory indexing" or "Directory Listing" on all server-side.

Quote[OPEN]
/usr/local/apache/conf/extra/httpd-userdir.conf
[FIND]
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
[REPLACE]
Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
[IMPORTANT]
RESTART APACHE SERVICE AFTER CHANGES!!!

You are a savior!

TheMobiHost

Thank you..  :)

Quote from: tristar78 on May 18, 2016, 10:29:20 AM
Hello, there.

I have been using CWP Panel more than 1 year. Really thanks founder&contributers to give us such nice platform.

Please follow this small modification for disable "Directory indexing" or "Directory Listing" on all server-side.

Quote[OPEN]
/usr/local/apache/conf/extra/httpd-userdir.conf
[FIND]
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
[REPLACE]
Options MultiViews SymLinksIfOwnerMatch IncludesNoExec
[IMPORTANT]
RESTART APACHE SERVICE AFTER CHANGES!!!

Namaste

I tried adding .htaccess file to public_html and usr local apache htdocs directories and that did nothing.  But I did edit apache config file to delete indexes form followsymlink line.  And that fixed it.
Listen to everything Pixelpadre says.