Advertisement
Guest User

Untitled

a guest
Jul 6th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. # XAMPP settings
  2. #
  3. <IfModule alias_module>
  4. <IfModule mime_module>
  5. #ScriptAlias /php/ "C:/xampp/php/"
  6. #Action application/x-httpd-php "/php/php-cgi.exe"
  7. PHPINIDir "C:/xampp/php"
  8. LoadModule php5_module "C:/xampp/apache/bin/php5apache2_2.dll"
  9. AddType text/html .php .phps .php5 .php4 .php3 .phtml .phpt
  10. <FilesMatch "\.php$|\.php5$|\.php4$|\.php3$|\.phtml$|\.phpt$">
  11. SetHandler application/x-httpd-php
  12. </FilesMatch>
  13. <FilesMatch "\.phps$">
  14. SetHandler application/x-httpd-php-source
  15. </FilesMatch>
  16.  
  17. <Directory "C:/xampp/htdocs/xampp">
  18. <IfModule php5_module>
  19. <Files "status.php">
  20. php_admin_flag safe_mode off
  21. </Files>
  22. </IfModule>
  23. </Directory>
  24.  
  25. Alias /security "C:/xampp/security/htdocs/"
  26. <Directory "C:/xampp/security/htdocs">
  27. <IfModule php5_module>
  28. <Files "xamppsecurity.php">
  29. php_admin_flag safe_mode off
  30. </Files>
  31. </IfModule>
  32. Order deny,allow
  33. Deny from all
  34. Allow from 127.0.0.1
  35. </Directory>
  36.  
  37. Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
  38. <Directory "C:/xampp/phpMyAdmin">
  39. AllowOverride AuthConfig
  40. Order allow,deny
  41. Allow from all
  42. </Directory>
  43.  
  44. Alias /webalizer "C:/xampp/webalizer/"
  45. <Directory "C:/xampp/webalizer">
  46. <IfModule php5_module>
  47. <Files "webalizer.php">
  48. php_admin_flag safe_mode off
  49. </Files>
  50. </IfModule>
  51. AllowOverride AuthConfig
  52. Order allow,deny
  53. Allow from all
  54. </Directory>
  55.  
  56. Alias /contrib "C:/xampp/contrib/"
  57. <Directory "C:/xampp/contrib">
  58. <IfModule php5_module>
  59. <Files "webalizer.php">
  60. php_admin_flag safe_mode off
  61. </Files>
  62. </IfModule>
  63.  
  64. Order deny,allow
  65. Deny from all
  66. Allow from 127.0.0.1
  67. </Directory>
  68. </IfModule>
  69. </IfModule>
  70.  
  71.  
  72. # Access restriction via Remote
  73. <IfModule auth_remote_module>
  74. <Directory "C:/xampp/htdocs/fonts">
  75. AllowOverride All
  76. AuthType Basic
  77. AuthName "AUTH REMOTE TEST"
  78. AuthRemoteServer localhost
  79. AuthRemotePort 80
  80. AuthRemoteURL /forbidden/
  81. Require valid-user
  82. #User: user / Password: pass
  83. </Directory>
  84. </IfModule>
  85.  
  86. # Access restriction via MySQL
  87. <IfModule mysql_auth_module>
  88. <Location /restricted>
  89. AuthMySQLEnable On
  90. AuthName "MySQL Secured Place"
  91. AuthType Basic
  92. require valid-user
  93. AuthMySQLHost localhost
  94. AuthMySQLUser root
  95. # AuthMySQLPassword
  96. AuthMySQLDB webauth
  97. AuthMySQLUserTable user_pwd
  98. AuthMySQLNameField name
  99. AuthMySQLPasswordField pass
  100. AuthMySQLPwEncryption none
  101. </Location>
  102. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement