Article 5NT8V Regex for friendly url's can cause errors (error 500) when we also have authentication via ldap?

Regex for friendly url's can cause errors (error 500) when we also have authentication via ldap?

by
cesarsj
from LinuxQuestions.org on (#5NT8V)
I made a system for my department where I use friendly url's, but my boss keeps insisting that I take the regex under the .htaccess. If I do, I have to change all the system's route references, and so it will be a lot of rework, besides I prefer the use of friendly url's.

The .htacces looks like this (I exchanged more sensitive information for ?):

Code:Options +SymLinksIfOwnerMatch

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]

SSLRequireSSL
AuthType basic
AuthBasicProvider ldap
AuthName "Resctrict Access"
AuthLDAPBindDN cn=apacheldap,ou=DSA,dc=?,dc=?,dc=br
AuthLDAPBindPassword ?
AuthLDAPURL ldap://?:389/ou=people,dc=?,dc=?,dc=br?uid?one TLS
AuthLDAPGroupAttribute memberUid
AuthLDAPGroupAttributeIsDN off
Require ldap-group cn=?,ou=groups,dc=?,dc=?,dc=brTo complicate my defense (of keeping the system as it is), sometimes, after a while, error 500 starts to appear, saying that authentication with LDAP failed, then I just restart apache and stop giving this error for a time, until you return. I would like to know if there is something in the .htaccess that might be causing this?

The system uses php, composer, autoload, html, javascript, bootstrap and jquery. And the connection to the database is via php pdo driver on a mysql server.latest?d=yIl2AUoC8zA latest?i=7EznQWIjoWg:-zx_CA6vX1I:F7zBnMy latest?i=7EznQWIjoWg:-zx_CA6vX1I:V_sGLiP latest?d=qj6IDK7rITs latest?i=7EznQWIjoWg:-zx_CA6vX1I:gIN9vFw7EznQWIjoWg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments