(Solved) New xampp security concept: Access Forbidden Error 403

New xampp security concept
New xampp security concept

This setting can be configured in the file "httpd-xampp.conf".
open httpd-xampp.conf and change configuration.
Config File Location : Drive:\xampp\apache\conf\extra\httpd-xampp.conf

-------------------------------
In old version use this
-------------------------------
Original Lines.
    Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var


Change it to for all access.

Require all granted
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var


Change it to for IP Based access.

Order deny,allow
deny from all
Allow from 192.168.1.1
Allow from 127.0.0.1
Allow from localhost
Allow from ::1
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var


-------------------------------
In new version use this
-------------------------------
Original Lines.
 Alias /phpmyadmin "D:/xampp/phpMyAdmin/"
    
        AllowOverride AuthConfig
        Require local
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var


Change it to for all access.

 Alias /phpmyadmin "D:/xampp/phpMyAdmin/"
    
        AllowOverride AuthConfig
        Require all granted
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var


Change it to for IP Based access.


    Alias /phpmyadmin "C:/xampq/phpMyAdmin/"
    
        AllowOverride AuthConfig
        Require local
        Require ip 192.168.1.5
        ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
    



save and exit httpd-xampp.conf and restart apache.

NOTE : Make sure u  backup files ( httpd-xampp.conf ) and ( httpd-vhosts.conf ) ,Both Files are located in Drive:\xampp\apache\conf\extra


SHARE

Ibrar Ansari

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment