#401 mORMot 1 » Authentication over ssl with apache proxy » 2014-08-06 09:10:03

danielkuettner
Replies: 26

I habe an apache conf like this:

Listen 8880
<VirtualHost *:8880>
SSLEngine On

ProxyRequests off
ProxyPreserveHost on

ProxyPass /dk/ http://192.168.1.16:8180/
ProxyPassReverse /dk/ http://192.168.1.16:8180/

Header set Access-Control-Allow-Credentials: true
Header set Access-Control-Allow-Headers: Authorization
Header set Access-Control-Allow-Methods: *

<Proxy *>
  Order deny,allow
  Allow from all
  AuthType Basic
  AuthName "Datasnap"
  AuthBasicProvider ldap
  AuthLDAPURL ldap://localhost/ou=people,dc=kanzlei,dc=local?uid
  Require user daniel sylvia melanie
  #Satisfy Any
</Proxy>
</VirtualHost>

Apache is using for ssl and auhtentication. MORMot is for REST.

For external access I only need one Port(8880) and over proxy I can have many mORMot-Restserver on different ports.

Without Autentication (setting Satisfy Any) it works.

How can I set the username+password for apache (Authscheme ist Basic)?

Board footer

Powered by FluxBB