Apache friends Configuration (XAMPP)

Friday, 25 March 2011 10:45

Apache friends configuration tips and advice

Apache friends Configuration Tips

Remove the administration console restriction

If you are not connected locally Apache friends (XAMPP) prevent you to connect to the administration console. To change that you need to edit the following file :

C:\opt\xampp\apache\conf\extra\httpd-xampp.conf

put in comment the lines 4 to�9 according to the source below

Apache friends configuration remove administrator


#
# New XAMPP security concept
#
#<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
#    Order deny,allow
#    Deny from all
#    Allow from 127.0.0.0/8 
#    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
#</LocationMatch>

Redirect you Apache friends home page

Let's say we want to redirect our home page from /xampp to /xwiki

Edit�the file located <xampp installation folder>/htdocs/index.php

 	
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { 		
    $uri = 'https://'; 	
} else { 		
    $uri = 'http://'; 	
} 	
$uri .= $_SERVER['HTTP_HOST']; 	
$header('Location: '.$uri.'/xampp/'); 	
exit; 
?>
Something is wrong with the XAMPP installation :-( 

After

 	
<?php
if (!empty($_SERVER['HTTPS']) && ('on' == $_SERVER['HTTPS'])) { 		
    $uri = 'https://'; 	
} else { 		
    $uri = 'http://'; 	
} 	
$uri .= $_SERVER['HTTP_HOST']; 	
$header('Location: '.$uri.'/xwiki/'); 	
exit; 
?>
Something is wrong with the XAMPP installation :-( 
Tags: installation , configuration , page , apache , home , file , xampp , redirect , edit , administration , friends , (xampp)

Add comment


Security code
Refresh