Last active
September 21, 2024 18:02
-
-
Save arkadiusjonczek/61d6713779412a2257e21d356ee7ebda to your computer and use it in GitHub Desktop.
.htpasswd path finder for .htaccess file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AuthType Basic | |
| AuthName "wiki" | |
| AuthUserFile /path/.htpasswd | |
| Require valid-user |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # check http://www.htaccesstools.com/htpasswd-generator/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $dir = dirname(__FILE__); | |
| echo "<p>Full path to this dir: " . $dir . "</p>"; | |
| echo "<p>Full path to a .htpasswd file in this dir: " . $dir . "/.htpasswd" . "</p>"; | |
| echo $_SERVER['DOCUMENT_ROOT']; | |
| ?> |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
.htpasswd generator: http://www.htaccesstools.com/htpasswd-generator/