[us...@httpd] SSL redirect ?

2010-11-04 Thread Brent Clark

Hiya

I got an interesting request from a client and I was hoping to bounce 
this off you guys.



I need my linux server to accept incoming connections on port 8080 and
forward them to an HTTPS address and do all communications.

So, if a developer connects to, and uses

https://abc.com/v4/transaction?wsdl

it should redirect, communicate, and return data from

https://trans.api.hidden.com/v4/transaction?wsdl

Basically, I need to mask the trans.api.hidden.com and make all 
communications deal with abc.co.za.



This is the same server.

Personally I cant see this is possible, cause of the it been SSL. I 
would assume this activity as no different as a MITM attack.

But googling, says I should look at mod_proxy. Is this possible?

What do you guys think. If someone could help. It would be appreciated.

Kind Regards
Brent Clark

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] prevent Indexes by group

2010-11-04 Thread Andrew Simpson
Greetings,

I am trying to prevent certain users from directory Indexes.

What is the best way to limit functionality in a directory by group?

Thanks for any help,
Drew

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] rewritecond group

2010-11-04 Thread Andrew Simpson
Greetings,

Is there any way to refer to the currently authenticated user's
group(s) from within a rewritecond?

Thanks,
Drew

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] rewritecond group

2010-11-04 Thread Rich Bowen


On Nov 4, 2010, at 9:45 AM, Andrew Simpson wrote:


Greetings,

Is there any way to refer to the currently authenticated user's
group(s) from within a rewritecond?


No. There is not an ENV var set for the group in which the user is  
authenticated, so this is not accessible to mod_rewrite.


Additionally, mod_rewrite runs too early to have access to this, but  
presumably if it was set, you could use the LA-U syntax to get access  
to it.


--
Rich Bowen
rbo...@rcbowen.com


-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Not serving virtual domain with copied .conf and .db files

2010-11-04 Thread Norman Fournier
Hello,

I am hosting a number of virtual domains but having a problem getting them 
online.

Once I have a working .conf and .db file for a domain, with files located in 
the same directory as the next domain on my list, I copy them and edit the 
.conf and .db file contents for the next domain, but the host does not resolve 
after a graceful or restart.

I have proofed the files repeatedly and they seem correct.

I am using the Apache server that is provided on OSX Snow Leopard, but not OSX 
Server.

Please let me know if additional information is required from me in order to 
help.

Norman
---
http://www.normanfournier.com



-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] SSL redirect ?

2010-11-04 Thread Joost de Heer

On 11/04/2010 11:56 AM, Brent Clark wrote:

Hiya

I got an interesting request from a client and I was hoping to bounce this off
you guys.



I need my linux server to accept incoming connections on port 8080 and
forward them to an HTTPS address and do all communications.

So, if a developer connects to, and uses

https://abc.com/v4/transaction?wsdl

it should redirect, communicate, and return data from

https://trans.api.hidden.com/v4/transaction?wsdl

Basically, I need to mask the trans.api.hidden.com and make all communications
deal with abc.co.za.



This is the same server.

Personally I cant see this is possible, cause of the it been SSL. I would
assume this activity as no different as a MITM attack.
But googling, says I should look at mod_proxy. Is this possible?


Yes, you need ProxyPass/ProxyPassReverse and SSLProxyEngine.

Joost

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] SSL redirect ?

2010-11-04 Thread Brent Clark

On 04/11/2010 18:25, Joost de Heer wrote:


Yes, you need ProxyPass/ProxyPassReverse and SSLProxyEngine.

Joost



And for the idiot and curiosity in me. I take it this is not possible on 
separate machines?


Thanks for replying.

Brent



-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] SSL redirect ?

2010-11-04 Thread Tom Evans
On Thu, Nov 4, 2010 at 10:56 AM, Brent Clark  wrote:
> Hiya
>
> I got an interesting request from a client and I was hoping to bounce this
> off you guys.
>
> 
> I need my linux server to accept incoming connections on port 8080 and
> forward them to an HTTPS address and do all communications.
>
> So, if a developer connects to, and uses
>
> https://abc.com/v4/transaction?wsdl
>
> it should redirect, communicate, and return data from
>
> https://trans.api.hidden.com/v4/transaction?wsdl
>
> Basically, I need to mask the trans.api.hidden.com and make all
> communications deal with abc.co.za.
>
> This is the same server.
>
> Personally I cant see this is possible, cause of the it been SSL. I would
> assume this activity as no different as a MITM attack.
> But googling, says I should look at mod_proxy. Is this possible?
>
> What do you guys think. If someone could help. It would be appreciated.
>
> Kind Regards
> Brent Clark
>

If your client connects to https://abc.com/ , then that is where SSL
will be terminated for the client. If you then proxy that connection
to https://trans.api.hidden.com/ , then that will be a separate SSL
connection between two apache servers, it will not carry any client
certificates that the client initially presented to https://abc.com .

wrt to your later question, apache is more than capable of proxying to
itself. I'm not sure you would need the overhead of an SSL connection
on a request that would never go on the wire.

Cheers

Tom

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] WebDav PUT fails with 500 response

2010-11-04 Thread Paul Simon
Hi All,

I'm hoping somebody might guide me in the right direction. A php
script is using the CURL extension to put files to a webdav server. It
has been working successfully, putting a couple hundred files in the
last few months. However, recently there's a file that fails to be PUT
and is causing apache (2.2.15 Win32 Dav/2) to report the following
error:

[error] ... Could not get next bucket brigade  [500, #0]

I don't know what that means. I switched on CURL's debugging and
here's the result of a failed put:

* About to connect() to 192.168.131.7 port 80 (#0)
*   Trying 192.168.131.7... * connected
* Connected to 192.168.131.7 (192.168.131.7) port 80 (#0)
* Server auth using Digest with user 'c...@blah.net'
> PUT 
> /can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls
>  HTTP/1.1
Host: 192.168.131.7
Accept: */*
Content-Length: 0

< HTTP/1.1 401 Authorization Required
< Date: Thu, 04 Nov 2010 16:12:00 GMT
< Server: Apache/2.2.15 (Win32) DAV/2
< WWW-Authenticate: Digest realm="DAV",
nonce="MdD/ajyUBAA=a41625d47f33bf3730b340217d986655ea2832cd",
algorithm=MD5, qop="auth"
< Content-Length: 401
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
* Connection #0 to host 192.168.131.7 left intact
* Issue another request to this URL:
'http://192.168.131.7/can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls'
* Re-using existing connection! (#0) with host 192.168.131.7
* Connected to 192.168.131.7 (192.168.131.7) port 80 (#0)
* Server auth using Digest with user 'c...@blah.net'
> PUT 
> /can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls
>  HTTP/1.1
Authorization: Digest username="c...@blah.net", realm="DAV",
nonce="MdD/ajyUBAA=a41625d47f33bf3730b340217d986655ea2832cd",
uri="/can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls",
cnonce="MjE3NTQx", nc=0001, qop="auth",
response="f384fc1a6e4bf502917851d9f1b9af00", algorithm="MD5"
Host: 192.168.131.7
Accept: */*
Content-Length: 359936

* Connection died, retrying a fresh connect
* Closing connection #0
* Issue another request to this URL:
'http://192.168.131.7/can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls'
* About to connect() to 192.168.131.7 port 80 (#0)
*   Trying 192.168.131.7... * connected
* Connected to 192.168.131.7 (192.168.131.7) port 80 (#0)
* Server auth using Digest with user 'c...@blah.net'
> PUT 
> /can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls
>  HTTP/1.1
Authorization: Digest username="c...@blah.net", realm="DAV",
nonce="MdD/ajyUBAA=a41625d47f33bf3730b340217d986655ea2832cd",
uri="/can-folders/Dropbox/TEST/INBOX/0900/p/YYY%20Tally%20K-12%20-%20No%20Alt%20Ed%20%28_6b%29%202010-11.xls",
cnonce="MjE3NTQx", nc=0002, qop="auth",
response="4399a5a0cb0660e5ea2cdb6dcbd1ba94", algorithm="MD5"
Host: 192.168.131.7
Accept: */*
Content-Length: 359936

< HTTP/1.1 500 Internal Server Error
< Date: Thu, 04 Nov 2010 16:12:20 GMT
< Server: Apache/2.2.15 (Win32) DAV/2
< Content-Length: 546
< Connection: close
< Content-Type: text/html; charset=iso-8859-1
<
* Closing connection #0

Thanks,
Paul

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Re: LimitRequestBody http return code

2010-11-04 Thread Mohit Anchlia
On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener  wrote:
> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia  wrote:
>> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia  wrote:
>>> I am trying to test LimitRequestBody. It looks like it always returns
>>> Http code 500. Is this as expected?  I thought it's supposed to return
>>> Http 413.
>>>
>>> Is there a way to change the return code of LimitRequestBody?
>>>
>>
>> Can someone please help me answer this question? I have a requirement
>> to use some specific text but can't do that if it keeps returning 500
>> status code. 500 status code is too generic. Shouldn't it be returning
>> 413?
>
> returns 413 here.

I am seeing the following when I add "LimitRequestBody 400" for my
test in virtual host

500 (Internal Server Error) Can't read entity body: Connection reset by peer
Content-Type: text/plain
Client-Date: Thu, 04 Nov 2010 22:36:21 GMT
Client-Warning: Internal response

500 Can't read entity body: Connection reset by peer
Error Code :500 Can't read entity body: Connection reset by peer

>
>> -
>> 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: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>>
>
>
>
> --
> Eric Covener
> cove...@gmail.com
>
> -
> 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Re: LimitRequestBody http return code

2010-11-04 Thread Eric Covener
On Thu, Nov 4, 2010 at 6:38 PM, Mohit Anchlia  wrote:
> On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener  wrote:
>> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia  
>> wrote:
>>> On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia  
>>> wrote:
 I am trying to test LimitRequestBody. It looks like it always returns
 Http code 500. Is this as expected?  I thought it's supposed to return
 Http 413.

 Is there a way to change the return code of LimitRequestBody?

>>>
>>> Can someone please help me answer this question? I have a requirement
>>> to use some specific text but can't do that if it keeps returning 500
>>> status code. 500 status code is too generic. Shouldn't it be returning
>>> 413?
>>
>> returns 413 here.
>
> I am seeing the following when I add "LimitRequestBody 400" for my
> test in virtual host
>
> 500 (Internal Server Error) Can't read entity body: Connection reset by peer
> Content-Type: text/plain
> Client-Date: Thu, 04 Nov 2010 22:36:21 GMT
> Client-Warning: Internal response
>
> 500 Can't read entity body: Connection reset by peer
> Error Code :500 Can't read entity body: Connection reset by peer


Any idea what module those Client-* headers come from?  Might be related.

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Re: LimitRequestBody http return code

2010-11-04 Thread Mohit Anchlia
On Thu, Nov 4, 2010 at 3:40 PM, Eric Covener  wrote:
> On Thu, Nov 4, 2010 at 6:38 PM, Mohit Anchlia  wrote:
>> On Sun, Oct 31, 2010 at 6:02 PM, Eric Covener  wrote:
>>> On Sun, Oct 31, 2010 at 8:09 PM, Mohit Anchlia  
>>> wrote:
 On Wed, Sep 8, 2010 at 2:23 PM, Mohit Anchlia  
 wrote:
> I am trying to test LimitRequestBody. It looks like it always returns
> Http code 500. Is this as expected?  I thought it's supposed to return
> Http 413.
>
> Is there a way to change the return code of LimitRequestBody?
>

 Can someone please help me answer this question? I have a requirement
 to use some specific text but can't do that if it keeps returning 500
 status code. 500 status code is too generic. Shouldn't it be returning
 413?
>>>
>>> returns 413 here.
>>
>> I am seeing the following when I add "LimitRequestBody 400" for my
>> test in virtual host
>>
>> 500 (Internal Server Error) Can't read entity body: Connection reset by peer
>> Content-Type: text/plain
>> Client-Date: Thu, 04 Nov 2010 22:36:21 GMT
>> Client-Warning: Internal response
>>
>> 500 Can't read entity body: Connection reset by peer
>> Error Code :500 Can't read entity body: Connection reset by peer
>
>
> Any idea what module those Client-* headers come from?  Might be related.

All I am doing is adding "LimitRequestBody 400" and I see the above in
my perl script and this is what I see below in access log:

10.4.106.55 - - [04/Nov/2010:15:39:36 -0700] "POST /val/validate.cgi
HTTP/1.1" 400 364 "-" "libwww-perl/5.79" "eitws1" 0 - - - 188 522

>
> -
> 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: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Apache2, MySQL and mod_dbd

2010-11-04 Thread Sheryl
Niklas wrote:

> I want to use Apache2's built in functionality to authenticate and
> authorize user for accessing certain pages, mod_dbd. I want to store the
> users in MySQL.
>
> How should I set up this? I have tried a lot of things and it seems to be
> really hard getting it to work. As I understand, there is no support for
> this by default in Apache but I have to compile Apache in order to
> "include" the mysql driver. Today I get the "Invalid command 'DBDriver'"
> when starting httpd. 

I have done this fairly recently.  Rather than go through it all here,
I'll refer you to http://www.apachefriends.org/f/viewtopic.php?p=93012
which I think is the article I found with google to figure out how to get
things working.

Essentially you need to install a third-party module to take care of the
logins.  There are a couple of them out there, none of them updated for
apache 2.2.x, but mysql-3.0.0 is close and a patch is available from
another source which will bring it the rest of the way.

Good luck,

Sheryl

> I am using
> OSX 10.6.4 (I guess one can solve it as you would do in linux)
> Apache 2.2.17
> MySQL 5.1
>
> I really need to solve this and hope someone knows how to do this!
>
> Thanks in advance!
>
> Regards,
> Niklas
>
> -
> 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: users-unsubscr...@httpd.apache.org
>"   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Dennis Jacobfeuerborn

Hi,
I'm trying to find a way to always generate a 404 error using htaccess when 
a directory is accessed and with mod_autoindex enabled.
That is when I access http://server/directory/ I want to get a 404 error 
instead of an auto generated index.


I tried doing this with a RewriteRule but the autogenerated index gets 
displayed anyway and disabling the Index with "Options -Indexes" only gives 
me a 403 instead of a 404.


Is there a way to do this?

Regards,
  Dennis

-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Igor Cicimov
Post the rewrite rule here.

Igor

On Nov 5, 2010 1:11 PM, "Dennis Jacobfeuerborn" 
wrote:

Hi,
I'm trying to find a way to always generate a 404 error using htaccess when
a directory is accessed and with mod_autoindex enabled.
That is when I access http://server/directory/ I want to get a 404 error
instead of an auto generated index.

I tried doing this with a RewriteRule but the autogenerated index gets
displayed anyway and disabling the Index with "Options -Indexes" only gives
me a 403 instead of a 404.

Is there a way to do this?

Regards,
 Dennis

-
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: users-unsubscr...@httpd.apache.org
 "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org


Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Dennis Jacobfeuerborn

ErrorDocument 404 /_disabled/index.html
RewriteEngine on
RewriteRule !/_disabled/ /_force_404_

The idea was to use the rewrite rule to rewrite any access to a 
non-existing page and then have the ErrorDocument directive catch that but 
instead of a custom error page I only get the default message "The 
requested URL /_force_404_ was not found on this server."


Regards,
  Dennis

On 11/05/2010 03:31 AM, Igor Cicimov wrote:

Post the rewrite rule here.

Igor


On Nov 5, 2010 1:11 PM, "Dennis Jacobfeuerborn" mailto:denni...@conversis.de>> wrote:

Hi,
I'm trying to find a way to always generate a 404 error using htaccess
when a directory is accessed and with mod_autoindex enabled.
That is when I access http://server/directory/ I want to get a 404 error
instead of an auto generated index.

I tried doing this with a RewriteRule but the autogenerated index gets
displayed anyway and disabling the Index with "Options -Indexes" only
gives me a 403 instead of a 404.

Is there a way to do this?

Regards,
 Dennis

-
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: users-unsubscr...@httpd.apache.org

"   from the digest: users-digest-unsubscr...@httpd.apache.org

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





-
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: users-unsubscr...@httpd.apache.org
  "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [us...@httpd] Forcing custom 404 error page instead of autoindex

2010-11-04 Thread Eric Covener
On Thu, Nov 4, 2010 at 10:45 PM, Dennis Jacobfeuerborn
 wrote:
> ErrorDocument 404 /_disabled/index.html
> RewriteEngine on
> RewriteRule !/_disabled/ /_force_404_
>
> The idea was to use the rewrite rule to rewrite any access to a non-existing
> page and then have the ErrorDocument directive catch that but instead of a
> custom error page I only get the default message "The requested URL
> /_force_404_ was not found on this server."
>

That's backwards.  You can use R=404 in the flags of a rewriterule.

> Regards,
>  Dennis
>
> On 11/05/2010 03:31 AM, Igor Cicimov wrote:
>>
>> Post the rewrite rule here.
>>
>> Igor
>>
>>> On Nov 5, 2010 1:11 PM, "Dennis Jacobfeuerborn" >> > wrote:
>>>
>>> Hi,
>>> I'm trying to find a way to always generate a 404 error using htaccess
>>> when a directory is accessed and with mod_autoindex enabled.
>>> That is when I access http://server/directory/ I want to get a 404 error
>>> instead of an auto generated index.
>>>
>>> I tried doing this with a RewriteRule but the autogenerated index gets
>>> displayed anyway and disabling the Index with "Options -Indexes" only
>>> gives me a 403 instead of a 404.
>>>
>>> Is there a way to do this?
>>>
>>> Regards,
>>>  Dennis
>>>
>>> -
>>> 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: users-unsubscr...@httpd.apache.org
>>> 
>>> "   from the digest: users-digest-unsubscr...@httpd.apache.org
>>> 
>>> For additional commands, e-mail: users-h...@httpd.apache.org
>>> 
>>>
>
>
> -
> 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: users-unsubscr...@httpd.apache.org
>  "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>



-- 
Eric Covener
cove...@gmail.com

-
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: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org