I need to disable that indexing when I enter on my root directory on a apache2 server, any tips?
相关问题
- “Zero out” sensitive String data in Swift
- Stop .htaccess redirect with query string
- High cost encryption but less cost decryption
- .htaccess rule, redirecting old unexistent address
- How to deploy a web application Aurelia in an Apac
相关文章
- Apache+Tomcat+JK实现的集群,如果Apache挂了,是不是整个服务就挂了?
- WebService 启动调试后,能成功调用函数,但断点进不去任何方法
- Warning : HTML 1300 Navigation occured?
- Use savefig in Python with string and iterative in
- How reliable is HTTP_HOST?
- Accessing an array element when returning from a f
- Making a two way SSL authentication between apache
- Security concerns about CORS
If it's only one directory that you want to protect from viewing contents, you can also just add an index.html or index.php that will show whenever someone browses to that directory.
Make sure that you also add -Indexes to the config files in your sites-enabled (or sites-available as it was in my case) directory, they're usually inside the "/etc/apache2/" directory.
Usually done like this:
The minus means "no"...
Edit your apache2 configuration file which normally is on the dir: "/etc/apache2/httpd.conf".
Add the following or edit if your already have some configurations for the default web server dir (/var/www):
This will disable the indexing to all the public directories.