Re: [EMAIL PROTECTED] suppressing HTTP 100 continue

2007-08-17 Thread André Malo
* Jimmy Lee wrote: 

> I'm working with some devices that can't handle 100 continues.
>
> Is there a way to apply filters to apache to stop it from sending HTTP
> 100? Or is the only way to hack the base code?

RFC 2616 (8.2.3):

> An origin server SHOULD NOT send a 100 (Continue) response if
> the request message does not include an Expect request-header
> field with the "100-continue" expectation, and MUST NOT send a
> 100 (Continue) response if such a request comes from an HTTP/1.0
> (or earlier) client. There is an exception to this rule: for
> compatibility with RFC 2068, a server MAY send a 100 (Continue)
> status in response to an HTTP/1.1 PUT or POST request that does
> not include an Expect request-header field with the "100-
> continue" expectation. This exception, the purpose of which is
> to minimize any client processing delays associated with an
> undeclared wait for 100 (Continue) status, applies only to
> HTTP/1.1 requests, and not to requests with any other HTTP-
> version value.

So, teach the clients to not send the Expect header and/or use HTTP/1.0.
Apache does not send the header without the client "Expect"ing it.

HTH, nd

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-17 Thread wi
You'll need to configure a virtual host listening to the 8765 interface.
Once you've done that, you will simply need to put together a rewrite to
send requests to /abc.html to whatever target url you want.

Start by reading http://httpd.apache.org/docs/2.2/vhosts/

>From there, configuring the rewrite will be the next task.

cheers
Wayne


On 8/16/07, Manivel Arumugam <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> There is a need to configure a rewrite rule for the following source
> url to point to a target url.
>
> Source url - http://usearch.3m.com:8765/abc.html
>
> If you closely look at the above url, you can see a port number in it.
> I'm not that expert with rewrites and have never done this in the past
> either. Any help on how to set up this rewrite with port number would
> be much appreciated.
>
> Thanks
> Mani
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
2X7 -> %A-3+ -> %K-7+ -> %9-?+ -> %Q-8 -> ?9-?9+


[EMAIL PROTECTED] CacheDefaultExpire help

2007-08-17 Thread Morten Kristiansen

Let's say I have the following config for mod_cache:

...
CacheEnable disk /context1
CacheEnable disk /context2


is it possible to have two different "CacheDefaultExpire"; one for each
"CacheEnable"?



Morten


-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] Apache 2 reverse proxy doesn't forward PROPFIND requests

2007-08-17 Thread charles Collin
Hi,

An Apache 2 SVN server is configured on a LAN with mod_dav_svn and LDAP
authentication.
It listens on port 443.
Locally, it works perfectly, users use tortoiseSVN to operate the SVN
repository. When connecting to the https port of the server, an
authentication pops up, people get authenticated and every SVN function
works.
We've got another Apache 2 Server on the internet used as a reverse proxy to
reach the latter apache/svn local server.
This one listens on port 80.

When browsing the repository from internet with a web browser such as
Firefox or IE, I can see the reverse proxy connecting to the https port of
the local apache/svn server and everything goes right: authentication pops
up, and internet computers can browse without any problem the repository.
The problem is when tortoiseSVN is used: instead of using simple GET/POST
requests, it uses PROPFIND requests and nothing works at all, the SVN server
isn't contacted.
I 'wiresharked' the output of the reverse proxy: nothing is forwarded at
all: the PROPFIND request gets stuck in apache reverse proxy.

In the  section redirecting towards the SVN server, I added a
 directive to allow PROPFIND requests forwarding: nothing changed.

Any help is highly appreciated.
 
Cheers




This e-mail and any attachment is for authorised use by the intended 
recipient(s) only. It may contain proprietary material, confidential 
information and/or be subject to legal privilege. It should not be copied, 
disclosed to, retained or used by, any other party. If you are not an intended 
recipient then please promptly delete this e-mail and any attachment and all 
copies and inform the sender. Thank you.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] Mod Rewrite Help

2007-08-17 Thread Joshua Slive
On 8/17/07, wi <[EMAIL PROTECTED]> wrote:
> You'll need to configure a virtual host listening to the 8765 interface.
> Once you've done that, you will simply need to put together a rewrite to
> send requests to /abc.html to whatever target url you want.
>
> Start by reading http://httpd.apache.org/docs/2.2/vhosts/
>
> From there, configuring the rewrite will be the next task.

Or, if you don't want the virtual host, you can use a RewriteCond
based on the %{SERVER_PORT} as mentioned here:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] CacheDefaultExpire help

2007-08-17 Thread Joshua Slive
On 8/17/07, Morten Kristiansen <[EMAIL PROTECTED]> wrote:
>
> Let's say I have the following config for mod_cache:
>
> ...
> CacheEnable disk /context1
> CacheEnable disk /context2
> 
>
> is it possible to have two different "CacheDefaultExpire"; one for each
> "CacheEnable"?

>From the docs, it appears that none of the caching directives are
available on a per-directory basis, and therefore you can't do what
you want. I'm not really sure why this restriction exists, to be
honest.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[EMAIL PROTECTED] IPv6 Configuration - Windows

2007-08-17 Thread Stusynski, Dan
I built Apache 2.2.4 on Win XP sp2 from source and everything works fine
except 1 thing.
 
In httpd.conf I have the following Listen directives:
Listen ipv4_address:88
Listen [ipv6_address]:88
 
After starting Apache, it appears to receive requests for both
http://ipv4_address:88 and http://[ipv6_address]:88 (as expected).
 
However, if I put the generic listen addresses:
Listen 0.0.0.0:88
Listen [::]:88
 
The browser request never seems to reach Apache and never times out when
browsing to http://hostname:88 or http://ipv4_address:88 or
http://ipv6_address:88. The browser just seems to hang and the request
never reaches Apache. After looking at the documentation this seems as
if it should work, but doesn't.
 
The box I'm testing on doesn't have an IPv6 address that DNS will
resolve but I have added that host/ip in my hosts file on my machine.
Even still, I would have expected when explicitly typing in the IPv4
address it would have resolved as it did with the previous listen
directives. Could this just be a name resolution issue I'm overlooking
and that the generic addresses should work?
 
I've tried numerous other Listen directives such as using the host name
or using the generic addresses that listen on seperate ports and every
configuration seems to work. 
 
Any thoughts are appreciated.
 
Dan Stusynski


[EMAIL PROTECTED] HTTP authentication, with proxy?

2007-08-17 Thread aaron smith
Hello All,

I've got authentication in place on my server for every virtual host. with
the usual:


Options FollowSymLinks
AllowOverride All
Order deny,allow
Deny from all
AuthType Basic
AuthUserFile /etc/httpd/conf/htpasswd
AuthName "Authorized users only!"
require valid-user
satisfy any


Now in the VirtualHost declaration I'm proxying all requests over to a rails
app:

ServerName wiki.[mydomain].com
ServerAdmin [EMAIL PROTECTED]
ProxyRequests   Off
ProxyPreserveHost   On
RewriteEngine   On
RewriteRule ^/(.*) http://127.0.0.1:2600/$1 [P,L]
ProxyPassReverse/ http://127.0.0.1:2600/


But it seems that with the proxy it overrides HTTP authentication..  Also
note that I changed the directory to "whatever" and the serverName to
[mydomain].. that isn't actualkly in the vhosts file.

Any ideas?

Thanks all


Re: [EMAIL PROTECTED] HTTP authentication, with proxy?

2007-08-17 Thread Joshua Slive
On 8/17/07, aaron smith <[EMAIL PROTECTED]> wrote:

> But it seems that with the proxy it overrides HTTP authentication..

That's because the proxy never hits a local "". Use
 instead.

Joshua.

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [EMAIL PROTECTED] HTTP authentication, with proxy?

2007-08-17 Thread aaron smith
perfect, thanks.

On 8/17/07, Joshua Slive <[EMAIL PROTECTED]> wrote:
>
> On 8/17/07, aaron smith <[EMAIL PROTECTED]> wrote:
>
> > But it seems that with the proxy it overrides HTTP authentication..
>
> That's because the proxy never hits a local "". Use
>  instead.
>
> Joshua.
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: [EMAIL PROTECTED]
>"   from the digest: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


[EMAIL PROTECTED] Question on accessing directories

2007-08-17 Thread Thomas M. Else
Dear users,

I installed Apache web server 2.2.4 on my Windows XP Platform along with 
Active State Perl 5.8.  I'm trying to run a cgi script using Apache Web Server. 
 When the script tries to access a local drive on my computer (C:/test), the 
script gets hung up and sits there without doing anything.  If I run the perl 
script using Active State Perl and predefine the values for the form fields, 
the program works fine.  How do I allow the program to access the C:/Test 
directory and open / amend files in it?

Thanks,

Tommy



Thomas M. Else
Chief Meteorologist - Operations Manager 
For Weather Works - Your Weather Experts
Phone:  908-850-8600
Fax:  908-850-8664
Email:  [EMAIL PROTECTED]