Tengo un servidor linux que aloja mi Website, pero tengo un problemita, cuando uno crea la account los directorios si no tienen la pagina index ellos listan el directorio.
Yo kiero cambiar eso y ke me salga una pagina de no puedes tener accesso a ese directorio o algo asi.
La FAQ del sitio me dice que:
"By default if you do not have a recognized index file in a directory you will get a directory listing laid out. This can be bad if there is coding or other files that you do not want seen unless the user accesses a particular way.
This may lead you to want to turn off directory indexing or browsing as it is sometimes referred to. Just create a .htaccess file or edit your current one in the public_html directory of your account and add the following:
Options -Indexes
If you want to do this only for a single directory, just go to that directory and create a .htaccess file with the above line."
pero cuando le pongo esto no puedo ni ejecutar los archivos de ese directorio, me sale error 500
Como hago solo pa que el apache no me liste los archivos pero si me los deje ejecutar ??
Thx
Yo kiero cambiar eso y ke me salga una pagina de no puedes tener accesso a ese directorio o algo asi.
La FAQ del sitio me dice que:
"By default if you do not have a recognized index file in a directory you will get a directory listing laid out. This can be bad if there is coding or other files that you do not want seen unless the user accesses a particular way.
This may lead you to want to turn off directory indexing or browsing as it is sometimes referred to. Just create a .htaccess file or edit your current one in the public_html directory of your account and add the following:
Options -Indexes
If you want to do this only for a single directory, just go to that directory and create a .htaccess file with the above line."
pero cuando le pongo esto no puedo ni ejecutar los archivos de ese directorio, me sale error 500
Como hago solo pa que el apache no me liste los archivos pero si me los deje ejecutar ??
Thx