You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tony Heal <th...@pace2020.com> on 2006/10/20 16:38:38 UTC
[users@httpd] conf files in conf.d directory
I have a conf file that has multiple RewriteRule lines. This conf file works
fine. My problem is this same conf file is used on several hundred boxes and
is created from a CVS build. I need to add a custom RewriteRule for a single
server that all other servers will not get. I believe I can create a new
file in conf.d, but I am not sure how to do this. My initial thought was to
simply create a file in conf.d with a file name that begins with a letter
higher than the original file and contains only this:
RewriteEngine On
RewriteRule "^/program/object/Job/(.*)/detail\$"
"/program2/object/Job/detail/\$1" [R,L]
But that does not work.
Any suggestions would help.
Thanks
Tony
Re: [users@httpd] conf files in conf.d directory
Posted by Vincent Bray <no...@gmail.com>.
Hi,
On 10/20/06, Tony Heal <th...@pace2020.com> wrote:
> I have a conf file that has multiple RewriteRule lines. This conf file works
> fine. My problem is this same conf file is used on several hundred boxes and
> is created from a CVS build. I need to add a custom RewriteRule for a single
> server that all other servers will not get. I believe I can create a new
> file in conf.d, but I am not sure how to do this. My initial thought was to
> simply create a file in conf.d with a file name that begins with a letter
> higher than the original file and contains only this:
conf.d is a distro specific (Red Hat/Fedora?) file layout not used by
the standard apache distribution. However the directive used for this
is 'Include'. You could use a name for an included which sorts
lexically before the others but I *believe* getting a consistent
sorting order depends on your filesystem.
http://httpd.apache.org/docs/2.2/mod/core.html#include
--
noodl
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org