How to remove/change all Security URLs

Problems with the Windows version of XAMPP, questions, comments, and anything related.

How to remove/change all Security URLs

Postby kitesurfa » 30. December 2010 19:33

Hi there

I hope this question wont inflame too many people but I have a random issue,

Im running a site in my htdocs folder that was total hell to configure and set up. Its a magento site that's a clone of a production site and I want to run it in XAMPP so I can make changes to the template. One of the main sections of the sites has the URL /security/

So my sites running under http://localhost/ and I need the URL http://localhost/security/ to be part of my site but it keeps redirecting to the XAMPP default security page.

Is there a way I can totally remove or rename the path way to the xampp security page? I tried renaming the folder to no avail.

Any tips would be much appreciated.

Putting the site inside a folder is not an option as I have apache pointed to the sites document root so the links don't break.
kitesurfa
 
Posts: 2
Joined: 30. December 2010 19:25

Re: How to remove/change all Security URLs

Postby Altrea » 30. December 2010 21:58

- Open your \xampp\apache\conf\extra\httpd-xampp.conf file
- search for something like "Alias /security "C:/xampp/security/htdocs/"" (depends on your installation path)
now you can either remove this whole line (that results to that the xampp security page could not be requested any more, without other changes made)
or change the line to something else (e.g.: Alias /xamppsecurity "C:/xampp/security/htdocs/""

If this could not solve your problem you have to fully remove the security folder from the new security script:
- again in your \xampp\apache\conf\extra\httpd-xampp.conf file
- search for <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
- remove |security from the list (or change it to the alias you changed above)

The hyperlinks in the xampp backend will not be updated, so you can't reach the xampp security page from the backend any more!
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: How to remove/change all Security URLs

Postby kitesurfa » 31. December 2010 01:40

thanks a lot. that sounds like the exact solution I need!

Many Thanks!
kitesurfa
 
Posts: 2
Joined: 30. December 2010 19:25


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 93 guests