Re: [users@httpd] ProxyPass question

2012-06-14 Thread Janos Dohanics
On Wed, 13 Jun 2012 17:20:59 -0500
Daniel Ruggeri  wrote:

> On 6/13/2012 3:52 PM, Janos Dohanics wrote:
> > Thanks Anne, this was what I needed.
> >
> > However, I got a new problem: I also want to protect the / directory
> > with .htaccess, and that works fine. I assumed that this will also
> > protect /Camera - evidently, not.
> >
> > Is there a way to force authentication to access the proxied
> > resource?
> 
> You can accomplish this with a  block instead of a
>  block. That may be the only change needed, depending on
> the rest of your configuration.

Thank you both for your help,

-- 
Janos Dohanics

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] ProxyPass question

2012-06-13 Thread Janos Dohanics
On Wed, 13 Jun 2012 13:20:50 +0200
Anne Blankert  wrote:

> If I understand your question correctly, think you need to configure:
> 
> ProxyPass /Camera/ http://10.10.10.249:7000/
> ProxyPass /discover.cgi http://10.10.10.249:7000/discover.cgi
> 
> 
> The ProxyPassReverse lines work only for redirects. /discover.cgi is
> not a redirect, but probably inside the content of one of your
> previous requests, so url /discover.cgi is NOT translated
> to /Camera/discover.cgi
> 
> 
> Anne Blankert

Thanks Anne, this was what I needed.

However, I got a new problem: I also want to protect the / directory
with .htaccess, and that works fine. I assumed that this will also
protect /Camera - evidently, not.

Is there a way to force authentication to access the proxied resource?

-- 
Janos Dohanics

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] ProxyPass question

2012-06-13 Thread Janos Dohanics
Hello List,

I need to proxy a DVR's built-in web server. I have this in
httpd-ssl.conf:

ProxyPass /Camera/ http://10.10.10.249:7000/
ProxyPassReverse /Camera/ http://10.10.10.249:7000/

The DVR's web page gets displayed - but not all of it. Here is the
snippet of the log file:

141.158.70.143 - - [13/Jun/2012:00:57:06 -0400] "GET /Camera/ HTTP/1.1" 200 2602
141.158.70.143 - - [13/Jun/2012:00:57:06 -0400] "GET /Camera/js/drag.js 
HTTP/1.1" 200 5031
[...]
141.158.70.143 - - [13/Jun/2012:00:57:12 -0400] "GET 
/Camera/system_js/config.js HTTP/1.1" 200 10911
141.158.70.143 - - [13/Jun/2012:00:57:14 -0400] "POST /discover.cgi?ALL 
HTTP/1.1" 404 210
[...]
141.158.70.143 - - [13/Jun/2012:00:57:14 -0400] "GET 
/xml/dvr/english/webpage.xml HTTP/1.1" 404 225
141.158.70.143 - - [13/Jun/2012:00:57:14 -0400] "GET 
/xml/dvr/english/webpage.xml HTTP/1.1" 404 225

The correct requests for the 404 items are of course /Camera/discover.cgi?
ALL and /Camera/xml/dvr/english/webpage.xml

Would you please advise?

-- 
Janos Dohanics

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org