Jump to content

Recommended Posts

Hey admins, if I put this in the wrong forum, can you please move this to the right one? Thanks!

 

 

Hey guys! I am trying to display a random image on my testing site. My image files are located in the following:

F:/xampp/htdocs/xampp/justtryinoutsomephp/Images

 

The reason I put in the "F" instead of "C" is because I am actually using the USB Lite version of xampp. ::)

Anyway, my images are not displaying because of this new so called "New Xampp Security Concept." I've been doing lots of researching and experimenting for a few days and it came to the point where I just said screw it and post this to the forum.

On the error 403 page, it said:

"Access forbidden!

 

New XAMPP security concept:

 

Access to the requested object is only available from the local network.

 

This setting can be configured in the file 'httpd-xampp.conf'.

 

If you think this is a server error, please contact the webmaster."

 

That's what I've been doing is tinkling with the "httpd-xampp.conf" file. On one of the forums, it said that you have to restart the xampp server in order for the changes to take effect. I actually went the simple and easy way and just turned off the server using the xampp off file and turned it back on using the xampp on file as well. Didn't work.....:-\ So what I am wondering now is is there a way to restart the xampp server without using the xampp off and xampp on files or what adjustments do I need to make in the config file? Thanks for your help and advice guys! :)

 

Here's my config in case if anybody reqests it. :P

#
# New XAMPP security concept
#

# Close XAMPP security section here
<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
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>

# Close XAMPP sites here
<LocationMatch "^/(?i:(?:xampp|licenses|phpmyadmin|webalizer|server-status|server-info))">
    Order deny,allow
    Allow from all
    Allow from ::1 127.0.0.0/8
    ErrorDocument 403 /error/HTTP_XAMPP_FORBIDDEN.html.var
</LocationMatch>
[\code]

Link to comment
https://forums.phpfreaks.com/topic/258925-new-xampp-security-concept/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.