kashmir2004
Programmer
I installed Apache 2.0 on my computer. In the past, i used Apache, PHP and mysql to build my own web server interface. But for now, for my personnal needs, i just want to use Apache 2.0 server.
My server have it own url to access it from internet. I defined the main directory who can be access by any user connecting to my server with the given url.
What i want to do is to display a specific file extension (.txt for example) for all subdirectories of the main directory (defined as the web file's directory of Apache).
All other files must be hidden to users accessing my web server.
For example, let say that my main directory is called FilesDir and it subfolders are call fold1,a fold2, fold3 etc. When someone access a subfolder of FilesDir, all i want him to see is the .txt files contained in fold1, fold2 etc... even if there are other types of files in each of fold1, fold2, etc...
And in the best of both worlds, i want to hide some subdirs in the main web files directory of Apache.
I'm not sure if i made myself understandable. English is not my native language.
I tried this with an .htacess files for each subdirectories and it doesn't work. I tried to configured the httpd.conf file and it doesn't work either. I've read articles that may be could help but i didn't find my answer.
So i would really appreciate a good answer. If someone can help, if someone have this type of config, let me know how it works.
Regards
André
My server have it own url to access it from internet. I defined the main directory who can be access by any user connecting to my server with the given url.
What i want to do is to display a specific file extension (.txt for example) for all subdirectories of the main directory (defined as the web file's directory of Apache).
All other files must be hidden to users accessing my web server.
For example, let say that my main directory is called FilesDir and it subfolders are call fold1,a fold2, fold3 etc. When someone access a subfolder of FilesDir, all i want him to see is the .txt files contained in fold1, fold2 etc... even if there are other types of files in each of fold1, fold2, etc...
And in the best of both worlds, i want to hide some subdirs in the main web files directory of Apache.
I'm not sure if i made myself understandable. English is not my native language.
I tried this with an .htacess files for each subdirectories and it doesn't work. I tried to configured the httpd.conf file and it doesn't work either. I've read articles that may be could help but i didn't find my answer.
So i would really appreciate a good answer. If someone can help, if someone have this type of config, let me know how it works.
Regards
André