Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

The following dilemma exists... One virtual hosts, three directories with three different handlers let's say Mason, PHP, Ruby.

example.org/Dir1/ (Mason)
example.org/Dir2/ (PHP)
example.org/Dir3/ (Ruby)

Now when I request whatever from Dir2 or Dir3 I'd like apache2 to execute a script from Dir1 first followed by the original request. Is it possible to do it with some magic configuration option?

share|improve this question

1 Answer 1

To me it seems like the only way to do smth like this is writing input handler, that is a program that Apache can use at various stages of processing HTTP request. More here:

http://www.modpython.org/live/current/doc-html/pyapi-filter.html

share|improve this answer
    
Thanks! This is a good starting point to my investigation. –  tkane Jan 26 '11 at 11:00

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.