Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

httpd-xampp.conf

By: a guest on Sep 28th, 2012  |  syntax: None  |  size: 3.22 KB  |  views: 172  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #
  2. # XAMPP settings
  3. #
  4.  
  5. <IfModule env_module>
  6.     SetEnv MIBDIRS "/xampp/php/extras/mibs"
  7.     SetEnv MYSQL_HOME "\\xampp\\mysql\\bin"
  8.     SetEnv OPENSSL_CONF "/xampp/apache/bin/openssl.cnf"
  9.     SetEnv PHP_PEAR_SYSCONF_DIR "\\xampp\\php"
  10.     SetEnv PHPRC "\\xampp\\php"
  11.     SetEnv TMP "\\xampp\\tmp"
  12. </IfModule>
  13.  
  14. #
  15. # PHP-Module setup
  16. #
  17. LoadFile "/xampp/php/php5ts.dll"
  18. LoadModule php5_module "/xampp/php/php5apache2_4.dll"
  19.  
  20. <FilesMatch "\.php$">
  21.     SetHandler application/x-httpd-php
  22. </FilesMatch>
  23. <FilesMatch "\.phps$">
  24.     SetHandler application/x-httpd-php-source
  25. </FilesMatch>
  26.  
  27. #
  28. # PHP-CGI setup
  29. #
  30. #<FilesMatch "\.php$">
  31. #    SetHandler application/x-httpd-php-cgi
  32. #</FilesMatch>
  33. #<IfModule actions_module>
  34. #    Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
  35. #</IfModule>
  36.  
  37.  
  38. <IfModule php5_module>
  39.     PHPINIDir "/xampp/php"
  40. </IfModule>
  41.  
  42. <IfModule mime_module>
  43.     AddType text/html .php .phps
  44. </IfModule>
  45.  
  46. ScriptAlias /php-cgi/ "/xampp/php/"
  47. <Directory "/xampp/php">
  48.     AllowOverride None
  49.     Options None
  50.     Order deny,allow
  51.     Deny from all
  52.     <Files "php-cgi.exe">
  53.         Allow from all
  54.     </Files>
  55. </Directory>
  56.  
  57. <Directory "/xampp/cgi-bin">
  58.     <FilesMatch "\.php$">
  59.         SetHandler cgi-script
  60.     </FilesMatch>
  61.     <FilesMatch "\.phps$">
  62.         SetHandler None
  63.     </FilesMatch>
  64. </Directory>
  65.  
  66. <Directory "/xampp/htdocs/xampp">
  67.     <IfModule php5_module>
  68.         <Files "status.php">
  69.                 php_admin_flag safe_mode off
  70.         </Files>
  71.     </IfModule>
  72.     AllowOverride AuthConfig
  73. </Directory>
  74.  
  75. <IfModule alias_module>
  76.     Alias /security "/xampp/security/htdocs/"
  77.     <Directory "/xampp/security/htdocs">
  78.         <IfModule php5_module>
  79.                 <Files "xamppsecurity.php">
  80.                         php_admin_flag safe_mode off
  81.                 </Files>
  82.         </IfModule>
  83.         AllowOverride AuthConfig
  84.         Order allow,deny
  85.         Allow from all
  86.    </Directory>
  87.  
  88.     Alias /licenses "/xampp/licenses/"
  89.     <Directory "/xampp/licenses">
  90.         Options +Indexes
  91.         <IfModule autoindex_color_module>
  92.             DirectoryIndexTextColor  "#000000"
  93.             DirectoryIndexBGColor "#f8e8a0"
  94.             DirectoryIndexLinkColor "#bb3902"
  95.             DirectoryIndexVLinkColor "#bb3902"
  96.             DirectoryIndexALinkColor "#bb3902"
  97.         </IfModule>
  98.         Order allow,deny
  99.         Allow from all
  100.    </Directory>
  101.  
  102.     Alias /phpmyadmin "/xampp/phpMyAdmin/"
  103.     <Directory "/xampp/phpMyAdmin">
  104.         AllowOverride AuthConfig
  105.         Order allow,deny
  106.         Allow from all
  107.     </Directory>
  108.  
  109.     Alias /webalizer "/xampp/webalizer/"
  110.     <Directory "/xampp/webalizer">
  111.         <IfModule php5_module>
  112.                 <Files "webalizer.php">
  113.                         php_admin_flag safe_mode off
  114.                 </Files>
  115.         </IfModule>
  116.         AllowOverride AuthConfig
  117.         Order allow,deny
  118.         Allow from all
  119.     </Directory>
  120. </IfModule>
  121.  
  122. #
  123. # New XAMPP security concept
  124. #
  125. <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
  126.         Order deny,allow
  127.         Deny from all
  128.         Allow from ::1 127.0.0.0/8 \
  129.                 fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
  130.                 fe80::/10 169.254.0.0/16
  131.  
  132.         ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
  133. </LocationMatch>