Problems with the Windows version of XAMPP, questions, comments, and anything related.
by the47thsen » 03. January 2014 03:49
I'm developing a site where I need to use the security URI. Is there any way to prevent it from redirecting to 'http://api.dev/security/security.php' ?
Maybe change is so only localhost/xampp/security would go to security.php?
-
the47thsen
-
- Posts: 2
- Joined: 03. January 2014 03:46
- Operating System: Win 7
by Altrea » 03. January 2014 06:15
If you will not break anything you have to change multiple files. The following is not tested:
- C:\xampp\apache\conf\extra\httpd-xampp.conf ~line 85
- Code: Select all
Alias /security "C:/xampp/security/htdocs/"
change the Alias to something different like
- Code: Select all
Alias /xamppsecurity "C:/xampp/security/htdocs/"
- same file ~line 130
- Code: Select all
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
change the word security to the same new Alias name you defined above
- Code: Select all
<LocationMatch "^/(?i:(?:xampp|xamppsecurity|licenses|phpmyadmin|webalizer|server-status|server-info))">
- In all used language files (C:\xampp\htdocs\xampp\lang\) change the a href of the variable $TEXT['security-text2'] to the new Alias.
- In file C:\xampp\htdocs\xampp\navi.php ~line 68 change the a href to the new Alias
- In all used language files (C:\xampp\security\htdocs\lang\) change the a href of the variable $TEXT['security-text2'] to the new Alias.
- In C:\xampp\security\htdocs\securefunctions.php change the Alias multiple times to the new value
- In C:\xampp\security\htdocs\security.php ~lines 26 and 214 change the Alias to the new value
- In C:\xampp\security\htdocs\splash.php change the Alias multiple times to the new value
best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!It's like porn for programmers
-
Altrea
- AF Moderator
-
- Posts: 11941
- Joined: 17. August 2009 13:05
- XAMPP version: several
- Operating System: Windows 11 Pro x64
by the47thsen » 03. January 2014 07:07
Thank you very much Altrea.
I managed to to get quick solution by changing the httpd-xampp.conf file
- Code: Select all
Alias /xampp/security "C:/xampp/security/htdocs/"
I will try your other steps too later.
-
the47thsen
-
- Posts: 2
- Joined: 03. January 2014 03:46
- Operating System: Win 7
Return to XAMPP for Windows
Who is online
Users browsing this forum: No registered users and 127 guests