2010-12-13 16 views

Odpowiedz

24

Upewnij mod_headers jest włączony. Przykładowy config:

<VirtualHost *:80> 
     ServerName something.example.com 
     ServerAdmin [email protected] 

     ProxyRequests Off 
     ProxyPreserveHost Off 
     AllowEncodedSlashes On 
     KeepAlive Off 

     <Proxy *> 
      Order deny,allow 
      Allow from all 
     </Proxy> 

     <Location /> 
       AuthType Basic 
       AuthName "Authorized Users Only" 
       AuthUserFile /etc/apache2/passwd 
       Require valid-user 
     </Location> 

     RequestHeader unset Authorization 
     ProxyPass/http://localhost:5984/ example 
     ProxyPassReverse/http://localhost:5984/ 

     ErrorLog /var/log/apache2/something.example.com-error_log 
     CustomLog /var/log/apache2/something.example.com-access_log common 
</VirtualHost> 
10

prostu miałem ten sam problem z Apache przed innym serwerze Java próbuje zrobić podstawowy auth, dodanie następujących do mojego konfiguracji Apache wydawało się to naprawić:

RequestHeader unset Authorization 
+0

Razem z Proxy? Lub co to jest element nadrzędny? – Jan

+0

thx. to mi wystarczyło na apache 2.4 ze złączem weblogic. – realgt

Powiązane problemy