Advertisement
Guest User

Untitled

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