Making Hidden Filed Visible under Directory Indexing in Apache?
Whenever I browse through http://localhost/publish
it shows: Index of /publish [ICO] Name Last modified Size Description [DIR] Parent Directory - [DIR] Fedora-9/ 22-Oct-2009 18:11 - [DIR] Fedora-11/ 22-Oct-2009 18:01 - Apache/2.2.11 (Fedora) Server at localhost Port 80 Now I have created a hidden file .htaccess under Fedora-11. How can I make it visible under Fedora-11. |
Quote:
It's one thing to make it visible to the site maintainer, it is quite another to make it visible to the world. |
Either remove the . from .htacess or create a symbolic link to this file.
I am not sure about the later part of above comment but you can try. |
Quote:
|
All I want is to let a friend of mine provide with the overall files contained in the directory?
|
Quote:
|
What if I want a user acess the certain portion of directory through username/password?
Is that possible? |
Quote:
|
I had the following Directory Structure which I want to open with authentication:
Code:
Index of /publish Code:
<Directory /usr/web/www/publish> This seems ok but the QUESTION IS: How Can I allow users to browse the page above publically accessible.But SOURCES under FEdora-9 to ask for username/passwd? |
It seems that you do not have any html/php page being displayed when people visit your website. Why dont you create a simple webpage in php and name it as index.php. Dont present a direct listing of the directory which you want to password protect. Place that index.php with password forms in that directory and challenge the visitors for authentication.
There may be other simpler ways, it may be possible to do this directly as you are doing it currently, but this is how i did it. |
Buddy..I understand what you mean.
I know index.php should have forms to accept username/password. But that is totally different and not what I mean to ask. I want to put Authentication for particular directory in Directory Indexes? What I want is Whenever Someone click on Fedora 9 it shud ask for password? What you say is PHP form which accept username/passwd? |
Closed ... one of serverl (>5 dupes/closely related threads)
|
All times are GMT -5. The time now is 09:59 AM. |