I'm installed httpd 2.4, and the /etc/httpd/conf.d/ssl.conf like
WSGIScriptAlias /wsgi_app /trac/cgi-bin/wsgi_app.py
<Directory /trac/cgi-bin>
Require all granted
</Directory>
WSGIScriptAlias /ldap_app /trac/cgi-bin/wsgi_app.py
<Location /ldap_app>
...
</Location>
On one physical machine, it works to access http:///wsgi_app and http:///ldap_app. I want to clone such environment in my small virtual machine(including config files and packages), but it got a error when I try to access the ldap_app URL. I've increase the VM's RAM from 512M to 1024M, the problem still occurs. I turn on 'debug' log level for httpd, it can not help. Is there any hint to solve/trace this error? (I've checked /var/log/httpd/*.log nothing related to this problem).
The only differences which I found may helpful is the last number of the log. On physical machine's /var/log/httpd/ssl_request_log
[14/Jul/2014:17:26:38 +0800] 192.168.2.160 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /ldap_app HTTP/1.1" 2088
On VM machine's /var/log/httpd/ssl_request_log
[14/Jul/2014:17:37:55 +0800] 192.168.2.160 TLSv1.2 ECDHE-RSA-AES128-GCM-SHA256 "GET /ldap_app HTTP/1.1" 527
The /etc/httpd/conf.d/ssl.conf is
<Location /ldap-status>
SetHandler ldap-status
AuthType Basic
AuthName "LDAP Protected"
AuthBasicProvider ldap
AuthLDAPBindDN "CN=foo,CN=Users,DC=bar,DC=com,DC=tw"
AuthLDAPBindPassword "pass"
AuthLDAPURL "ldap://192.168.1.1:389/CN=Users,DC=taifex,DC=com,DC=tw?sAMAccountName?sub?(objectClass=*)"
# Require valid-user
</Location>
If I enable Require valid-user, it will occurs following error messages: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.