Xampp probleem! Beveiligings concept

Status
Niet open voor verdere reacties.

Brabbo

Gebruiker
Lid geworden
8 mei 2011
Berichten
56
hoi beste mensen!

ik ben bezig met mijn site...
maar als ik erop wil komt er deze tekst:

Toegang verboden!

Nieuwe XAMPP beveiliging concept:

Toegang tot het gevraagde object is alleen beschikbaar in het lokale netwerk.

Deze instelling kan worden geconfigureerd in het bestand "httpd-xampp.conf".


kent iemand dit probleem?

Gr,

Floris
 
Nee ik ken het probleem niet.
Maar aan de fout te zien die je krijgt moet je iets wijzigen in het bestand "httpd-xampp.conf" wat ergens in de mappen van jou xampp server staat.

Verder kan je bij de configuratie kijken van je xampp server of daar iets verkeerds staat aangevinkt of iets anders.

Overigens is het een gratis forum en kan je niet altijd snel antwoord verwachten.
 
Wat ik zei is: Je moet waarschijnlijk het bestandje "httpd-xampp.conf" wijzigen.
Wat waarschijnlijk in je xampp map staat.
Anders gebruik je de zoekfunctie van windows en zoek je op: "httpd-xampp.conf".
Dit open je met kladblok en dan kijken wat erin staat.
Als je het dan bestudeerd snap je het vast wel.
 
nou... snap jij hier iets van dan? ik niet


#
# XAMPP settings
#

<IfModule env_module>
SetEnv MIBDIRS "/xampplite/php/extras/mibs"
SetEnv MYSQL_HOME "\\xampplite\\mysql\\bin"
SetEnv OPENSSL_CONF "/xampplite/apache/bin/openssl.cnf"
SetEnv PHP_PEAR_SYSCONF_DIR "\\xampplite\\php"
SetEnv PHPRC "\\xampplite\\php"
SetEnv TMP "\\xampplite\\tmp"
UnsetEnv PERL5LIB
</IfModule>

#
# PHP-Module setup
#
LoadFile "/xampplite/php/php5ts.dll"
LoadModule php5_module modules/php5apache2_2.dll

<IfModule php5_module>
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

PHPINIDir "/xampplite/php"
</IfModule>

#
# PHP-CGI setup
#
<IfModule !php5_module>
<FilesMatch "\.php$">
SetHandler application/x-httpd-php-cgi
</FilesMatch>
<IfModule actions_module>
Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
</IfModule>
</IfModule>


<IfModule mime_module>
AddType text/html .php .phps
</IfModule>

ScriptAlias /php-cgi/ "/xampplite/php/"
<Directory "/xampplite/php">
AllowOverride None
Options None
Order deny,allow
Deny from all
<Files "php-cgi.exe">
Allow from all
</Files>
</Directory>

<Directory "/xampplite/cgi-bin">
<FilesMatch "\.php$">
SetHandler cgi-script
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler None
</FilesMatch>
</Directory>

<Directory "/xampplite/htdocs/xampp">
<IfModule php5_module>
<Files "status.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>

<IfModule alias_module>
Alias /security "/xampplite/security/htdocs/"
<Directory "/xampplite/security/htdocs">
<IfModule php5_module>
<Files "xamppsecurity.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>

Alias /licenses "/xampplite/licenses/"
<Directory "/xampplite/licenses">
Options +Indexes
<IfModule autoindex_color_module>
DirectoryIndexTextColor "#000000"
DirectoryIndexBGColor "#f8e8a0"
DirectoryIndexLinkColor "#bb3902"
DirectoryIndexVLinkColor "#bb3902"
DirectoryIndexALinkColor "#bb3902"
</IfModule>
</Directory>

Alias /phpmyadmin "/xampplite/phpMyAdmin/"
<Directory "/xampplite/phpMyAdmin">
AllowOverride AuthConfig
</Directory>

Alias /webalizer "/xampplite/webalizer/"
<Directory "/xampplite/webalizer">
<IfModule php5_module>
<Files "webalizer.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>
</IfModule>

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
 
En als je dit nou eens probeert?

Code:
#
# XAMPP settings
#

<IfModule env_module>
SetEnv MIBDIRS "/xampplite/php/extras/mibs"
SetEnv MYSQL_HOME "\\xampplite\\mysql\\bin"
SetEnv OPENSSL_CONF "/xampplite/apache/bin/openssl.cnf"
SetEnv PHP_PEAR_SYSCONF_DIR "\\xampplite\\php"
SetEnv PHPRC "\\xampplite\\php"
SetEnv TMP "\\xampplite\\tmp"
UnsetEnv PERL5LIB
</IfModule>

#
# PHP-Module setup
#
LoadFile "/xampplite/php/php5ts.dll"
LoadModule php5_module modules/php5apache2_2.dll

<IfModule php5_module>
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

PHPINIDir "/xampplite/php"
</IfModule>

#
# PHP-CGI setup
#
<IfModule !php5_module>
<FilesMatch "\.php$">
SetHandler application/x-httpd-php-cgi
</FilesMatch>
<IfModule actions_module>
Action application/x-httpd-php-cgi "/php-cgi/php-cgi.exe"
</IfModule>
</IfModule>


<IfModule mime_module>
AddType text/html .php .phps
</IfModule>

ScriptAlias /php-cgi/ "/xampplite/php/"
<Directory "/xampplite/php">
AllowOverride None
Options None
Order deny,allow
Deny from all
<Files "php-cgi.exe">
Allow from all
</Files>
</Directory>

<Directory "/xampplite/cgi-bin">
<FilesMatch "\.php$">
SetHandler cgi-script
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler None
</FilesMatch>
</Directory>

<Directory "/xampplite/htdocs/xampp">
<IfModule php5_module>
<Files "status.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>

<IfModule alias_module>
Alias /security "/xampplite/security/htdocs/"
<Directory "/xampplite/security/htdocs">
<IfModule php5_module>
<Files "xamppsecurity.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>

Alias /licenses "/xampplite/licenses/"
<Directory "/xampplite/licenses">
Options +Indexes
<IfModule autoindex_color_module>
DirectoryIndexTextColor "#000000"
DirectoryIndexBGColor "#f8e8a0"
DirectoryIndexLinkColor "#bb3902"
DirectoryIndexVLinkColor "#bb3902"
DirectoryIndexALinkColor "#bb3902"
</IfModule>
</Directory>

Alias /phpmyadmin "/xampplite/phpMyAdmin/"
<Directory "/xampplite/phpMyAdmin">
AllowOverride AuthConfig
</Directory>

Alias /webalizer "/xampplite/webalizer/"
<Directory "/xampplite/webalizer">
<IfModule php5_module>
<Files "webalizer.php">
php_admin_flag safe_mode off
</Files>
</IfModule>
AllowOverride AuthConfig
</Directory>
</IfModule>

#
# New XAMPP security concept
#
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
Order deny,allow
Allow from all>
Allow from ::1 127.0.0.0/8 \
fc00::/7 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 \
fe80::/10 169.254.0.0/16

ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
 
Jup, alles selecteren, kopieëren, plakken en opslaan.
Dan kijken of je site het doet.
Zou ik misschien een link mogen?

EDIT:
Wel opslaan als een .conf bestand in dezelfde map!
 
Laatst bewerkt:
Geen probleem.

Mag ik nog een webadres van je waar ik je website op kan zien?
Ben wel benieuwd van wat jij in elkaar knutselt.

En ik denk dat ik wel weet wat er bij die sterretjes staat als het over New Kids gaat ;)

Verder is het ook verstandig om je database te beveiligen d.m.v. een wachtwoord.
 
Laatst bewerkt:
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan