SHARE
TWEET

Untitled

a guest Jun 18th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.    LoadModule php5_module "C:/xampp/apache/bin/php5apache2.dll"
  8.     AddType application/x-httpd-php-source .phps
  9.     AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt
  10.  
  11.     <Directory "C:/xampp/htdocs/xampp">
  12.         <IfModule php5_module>
  13.             <Files "status.php">
  14.                 php_admin_flag safe_mode off
  15.             </Files>
  16.         </IfModule>
  17.     </Directory>
  18.  
  19.     Alias /security "C:/xampp/security/htdocs/"
  20.     <Directory "C:/xampp/security/htdocs">
  21.         <IfModule php5_module>
  22.             <Files "xamppsecurity.php">
  23.                 php_admin_flag safe_mode off
  24.             </Files>
  25.         </IfModule>
  26.         AllowOverride AuthConfig
  27.         Order allow,deny
  28.         Allow from all
  29.     </Directory>
  30.  
  31.     Alias /phpmyadmin "C:/xampp/phpMyAdmin/"
  32.     <Directory "C:/xampp/phpMyAdmin">
  33.         AllowOverride AuthConfig
  34.         Order allow,deny
  35.         Allow from all
  36.     </Directory>
  37.  
  38.     Alias /webalizer "C:/xampp/webalizer/"
  39.     <Directory "C:/xampp/webalizer">
  40.         <IfModule php5_module>
  41.             <Files "webalizer.php">
  42.                 php_admin_flag safe_mode off
  43.             </Files>
  44.         </IfModule>
  45.         AllowOverride AuthConfig
  46.         Order allow,deny
  47.         Allow from all
  48.     </Directory>
  49.  
  50.       Alias /contrib "C:/xampp/contrib/"
  51.     <Directory "C:/xampp/contrib">
  52.         <IfModule php5_module>
  53.             <Files "webalizer.php">
  54.                 php_admin_flag safe_mode off
  55.             </Files>
  56.         </IfModule>
  57.  
  58.         AllowOverride AuthConfig
  59.         Order allow,deny
  60.         Allow from all
  61.     </Directory>
  62. </IfModule>
  63. </IfModule>
  64.  
  65.  
  66. # Access restriction via Remote
  67. <IfModule auth_remote_module>
  68.     <Directory "C:/xampp/htdocs/fonts">
  69.     AllowOverride All
  70.     AuthType           Basic
  71.     AuthName           "AUTH REMOTE TEST"
  72.     AuthRemoteServer   localhost
  73.     AuthRemotePort     80
  74.     AuthRemoteURL      /forbidden/
  75.     Require            valid-user
  76.     #User: user / Password: pass
  77. </Directory>
  78. </IfModule>
  79.  
  80. # Access restriction via MySQL
  81. <IfModule mysql_auth_module>
  82. <Location /restricted>
  83.      AuthMySQLEnable On
  84.     AuthName "MySQL Secured Place"
  85.     AuthType Basic
  86.     require valid-user
  87.     AuthMySQLHost localhost
  88.     AuthMySQLUser root
  89. #   AuthMySQLPassword
  90.    AuthMySQLDB webauth
  91.     AuthMySQLUserTable user_pwd
  92.     AuthMySQLNameField name
  93.     AuthMySQLPasswordField pass
  94.     AuthMySQLPwEncryption none
  95. </Location>
  96. </IfModule>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top