Apache HTTP Server Location directive - exclude url -


i've apache http server used proxy (over https) jboss-deployed webapp. i've following entry in conf file:

<location "/app">     proxypass           http://localhost:8080/app     proxypassreverse    http://localhost:8080/app     authtype basic     authname "private documentation repository"     authuserfile <path-to-file>     require valid-user </location> 

as can see, valid user required access /app. question is: how write directive exclude 1 particular file jboss webapp, access file won't require valid user e.g.:

<location "/app/some-file.xyz">     proxypass           http://localhost:8080/app/some-file.xyz     proxypassreverse    http://localhost:8080/app/some-file.xyz </location> 

i mean: when user requests (app/) /app/some-file.xyz he/she prompted password, otherwise apache enable user download some-file.xyz. appreciated.

<location "/app/*.xyz">     allow      satisfy      proxypass           http://localhost:8080/app/*.xyz     proxypassreverse    http://localhost:8080/app/*.xyz </location> 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -