Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Matt McCutchen
On Thu, 2009-02-05 at 20:10 +1000, Steve Dalton wrote: > Matt - That method didn't work for me... it got into an internal > recursion and bombed out after 10 redirects. I think you do perhaps > need to test for something to stop it going on forever. Does this happen even with the rule in the vhost

Re: [us...@httpd] ProxyHTMLURLMap

2009-02-05 Thread André Warnier
Robert Steinmetz AIA wrote: Nick Kew wrote: [...] Robert Steinmetz AIA wrote: I' think the proper maps would be ProxyHTMLURLMap http://applications.mydoamin.com/aplication / ProxyHTMPURLMap /application/ But that doesn't work, and no matter how I configure the ProxyHTMLURLMap th

Re: [us...@httpd] ProxyHTMLURLMap

2009-02-05 Thread Robert Steinmetz AIA
Nick Kew wrote: Robert Steinmetz AIA wrote: I have been working on a reverse proxy problem for a while. I have it mostly working but I need to rewrite some URLs to delete one level of directory I think ProxyHTMLURLMap will be able to do it and I have determined that it is doing something on

Re: [us...@httpd] Reverse Proxy URL confuion.

2009-02-05 Thread Robert Steinmetz AIA
Thanks for all your help. I think I'm going to have to go deep diving into the application, if I can. I tried every combination of ProxyHTMLURLMap I can think of and none of them seem to affect the output at all. I'm think of filing a bug with the developer since there appear to be only two spo

Re: [us...@httpd] directives in Include-d file in

2009-02-05 Thread André Warnier
Matus UHLAR - fantomas wrote: I would like to use the same accesslist for more directories (include it more times), but it seems that I can't iclude directives into the section, but the must lie inside of the included file. Am I right or did I miss something? In 1.3, I think you are right.

Re: [us...@httpd] mod_jk

2009-02-05 Thread André Warnier
Hi Mohit. Mohit Anchlia wrote: Couple of questions regarding mod_jk: 1. Does apache read worker.properties dynamically? So if I change worker.property would it be dynamically read by mod_jk. No, I don't think so. You need to restart Apache if you make a change. A more generic answer : In gene

Re: [us...@httpd] Fixed Content-Length using mod_ext_filter in mode=input

2009-02-05 Thread Nick Kew
On Thu, 5 Feb 2009 09:59:48 -0800 (PST) Cris Webea wrote: > Has anyone seen this behavior before? Do you think this could be a > bug? (as supposedly, not using the PreservesContentLength flag should > let the filter change the Content-Length). Sounds plausible, though the meaning of Content-Len

[us...@httpd] Fixed Content-Length using mod_ext_filter in mode=input

2009-02-05 Thread Cris Webea
Hi, I wrote an input filter using mod_ext_filter. In the filter "implementation" I get the post data (from stdin) and modify it (to stdout) with no issues.. However, after changing the post data, the Content-Length of the request still has the original value. For instance: Original post dat

[us...@httpd] directives in Include-d file in

2009-02-05 Thread Matus UHLAR - fantomas
Hello, I have apache-1.3 (upgrading soon, but yet...) I tried to configure access to some directory via external file: httpd.conf: --- Include /.../xyz-access --- xyz-access: --- # Order deny,allow Deny from ... --- However when starting apache, it complaints: Syntax error on line 4

Re: [us...@httpd] mod_jk

2009-02-05 Thread Peter Schober
* Mohit Anchlia [2009-02-05 17:39]: > Couple of questions regarding mod_jk: Note that mod_jk is supported by the tomcat people, not httpd (in contrast to mod_proxy_ajp), so the tomcat connector documentation applies. > 2. Does mod_jk check if the system is up and running before forwarding > that

[us...@httpd] mod_jk

2009-02-05 Thread Mohit Anchlia
Couple of questions regarding mod_jk: 1. Does apache read worker.properties dynamically? So if I change worker.property would it be dynamically read by mod_jk. 2. Does mod_jk check if the system is up and running before forwarding that request to the server configured in worker.properties file?

Re: [us...@httpd] Re: Help - Name Server - Maybe

2009-02-05 Thread Norman Peelman
Michael Rogers wrote: Mr. Peelman: Thanks for asking for the info. I have attached it in a Word Doc because it seemed easier to do it that way then ot try to past it all in an email. After looking at your .doc file and pulling up your manual on the internet, it appears that you router does

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread André Warnier
Restarting at the beginning for a moment.. The aim is as follows : - a user connects to http://foo.com/ - he must and gets authenticated (say as "evilhacker") - following this, he should have access, and only access, to the documents located under /var/www/usersites/evilhacker/ , - so that his n

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Eric Covener
On Thu, Feb 5, 2009 at 3:41 AM, André Warnier wrote: > Matt McCutchen wrote: >> RewriteRule ^(.*)$ /var/www/accesstest/%{REMOTE_USER}/$1 >> > (Not trying to be sarcastic here, it's a genuine question) > > What happens if Evil Hacker me, logs in as user1 and then request in my > browser http://foo.

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread André Warnier
Eric Covener wrote: On Thu, Feb 5, 2009 at 3:12 AM, Matt McCutchen wrote: On Thu, 2009-02-05 at 18:01 +1000, Steve Dalton wrote: I managed to do something similar in the end, using the prefix user_ for each user directory then adding .htaccess to root dir of: AuthType Basic AuthName "Restrict

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Eric Covener
On Thu, Feb 5, 2009 at 3:12 AM, Matt McCutchen wrote: > On Thu, 2009-02-05 at 18:01 +1000, Steve Dalton wrote: >> I managed to do something similar in the end, using the prefix user_ >> for each user directory then adding .htaccess to root dir of: >> >> AuthType Basic >> AuthName "Restricted Files

Re: [us...@httpd] port issue with reverse proxy

2009-02-05 Thread Torsten Foertsch
On Thu 05 Feb 2009, André Warnier wrote: > Mike Soultanian wrote: > > André Warnier wrote: > >> I mean, if in your browser you get such a response page, and look > >> at the html source of the page, do you really see links to > >> "http://myserver.tld:81/...";, or are they more like > > > > yup.. t

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Steve Dalton
Matt - That method didn't work for me... it got into an internal recursion and bombed out after 10 redirects. I think you do perhaps need to test for something to stop it going on forever. Andre - I think you are right... that's why you still need to have a "Require user " in a seperate directive

Re: [us...@httpd] port issue with reverse proxy

2009-02-05 Thread André Warnier
Mike Soultanian wrote: André Warnier wrote: I mean, if in your browser you get such a response page, and look at the html source of the page, do you really see links to "http://myserver.tld:81/...";, or are they more like yup.. that's exactly what I'm getting :( Well, if all the links a

Re: [us...@httpd] port issue with reverse proxy

2009-02-05 Thread Mike Soultanian
André Warnier wrote: I mean, if in your browser you get such a response page, and look at the html source of the page, do you really see links to "http://myserver.tld:81/...";, or are they more like yup.. that's exactly what I'm getting :(

Re: [us...@httpd] port issue with reverse proxy

2009-02-05 Thread André Warnier
Mike Soultanian wrote: Per my initial requirements, I was able to get reverse proxy working pretty well so my legacy web app sees every request originating from itself. To do this, I'm using the following: proxyrequests off NameVirtualHost *:80 NameVirtualHost myserver.tld:81 ProxyPass / h

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Steve Dalton
Thanks Matt I'll try that - looks a lot simpler... I'll also give it a good testing...:) Steve On Thu, Feb 5, 2009 at 6:41 PM, André Warnier wrote: > Matt McCutchen wrote: > >> On Thu, 2009-02-05 at 18:01 +1000, Steve Dalton wrote: >> >>> I managed to do something similar in the end, using the p

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread André Warnier
Matt McCutchen wrote: On Thu, 2009-02-05 at 18:01 +1000, Steve Dalton wrote: I managed to do something similar in the end, using the prefix user_ for each user directory then adding .htaccess to root dir of: AuthType Basic AuthName "Restricted Files" AuthUserFile /var/www/passwd/htpasswd Requir

[us...@httpd] port issue with reverse proxy

2009-02-05 Thread Mike Soultanian
Per my initial requirements, I was able to get reverse proxy working pretty well so my legacy web app sees every request originating from itself. To do this, I'm using the following: proxyrequests off NameVirtualHost *:80 NameVirtualHost myserver.tld:81 ProxyPass / http://myserver.tld:81/ P

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Matt McCutchen
On Thu, 2009-02-05 at 18:01 +1000, Steve Dalton wrote: > I managed to do something similar in the end, using the prefix user_ > for each user directory then adding .htaccess to root dir of: > > AuthType Basic > AuthName "Restricted Files" > AuthUserFile /var/www/passwd/htpasswd > Require valid-use

Re: [us...@httpd] How to serve up different content depending on authenticated user

2009-02-05 Thread Steve Dalton
Thanks guys I managed to do something similar in the end, using the prefix user_ for each user directory then adding .htaccess to root dir of: AuthType Basic AuthName "Restricted Files" AuthUserFile /var/www/passwd/htpasswd Require valid-user RewriteEngine on RewriteCond $1 !^user_ RewriteCond %{