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
Post a Comment