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.

How can I insert CSS block and HTML block at the top of the body using Apache reverse proxy.

The idea is that I can insert a (global) menu at the top of all our web apps for easy access.

share|improve this question
    
Personally, I think it would be easier to append a javascript fragement after, that would insert your css/html in the appropriate locations. –  Zoredache Aug 27 '11 at 4:55
add comment

2 Answers

up vote 0 down vote accepted

I have managed to figure out how to do this.

I used mod_substitute and mod_include.

This site has the details http://bemasc.net/wordpress/2010/06/24/how-to-not-use-mod_layout/

share|improve this answer
add comment

This is not a good idea. Your users wouldn't be able to trust you, in the sense that you can ADD CODE TO THEIR SITES. You could theoretically add keylogger scripts or something to the site, and so if you're going to be doing this, make it like a codeen server, where all new users are greeted with a welcome message.

share|improve this answer
    
this server is only for internal use. –  Samuel Taylor Aug 27 '11 at 12:13
add comment

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.