[nycbug-talk] Apache rewrite rules

Rodrique Heron swygue at gmail.com
Wed Apr 4 16:15:35 EDT 2007


Peter Wright wrote:
>> I am responsible for a web server that several departments publish
>> content to. I want to delegate the creation of rewrite rules to a non
>> privileged user. Can I accomplish this safely without giving them shell
>> access or using .htaccess ? Are there any tools available ?
>>
>>     
>
> ahh it's been a while since i've had to deal with mod_rewrite rules - but
> i think you can break out the rules from the main httpd.conf file.  at the
> end of your main config file you can put a directive like this in:
>
> Include conf/conf.d/*.conf
>
>
> or what ever directory structure you would like to use.  in the conf.d
> directory you could then setup what ever access control mechanisms you
> want for your various users.  we use svn and rcs along side triggers and
> Makefile's to publish changes to these directories.
>
> I think this should work for you - unless I misunderstood your task.
>
> -p
>
>
>   
Thanks Peter,

That's exactly what I thought of, unfortunately I have no one whose 
competent enough to even ssh into the server and edit the file. What I 
am looking for is a web front-end, which I certainly lack the coding 
skills to do. For example, inside conf.d, a file called rewrite.conf and 
allow modifications to this file via the web front-end. Then have a 
script run from cron that checks if the file has been updated and 
restarts apache.




More information about the talk mailing list