I`ll looking someone familiar with Varnish Cache to develop Varnish VMOD plugin. Plugin should parse html output and change static files like js, css, jpg paths. For every path changes plugin must know original path so next time when request come, plugin must give original content.
Example:
host header: [login to view URL]
<html>
<body>
<img src="images/[login to view URL]" />
<img src="[login to view URL]" />
<script src="js/[login to view URL]"></script>
<script src="[login to view URL]"></script>
<link rel="stylesheet" href="css/[login to view URL]" />
<link rel="stylesheet" href="[login to view URL]" />
</body>
</html>
Rewrite:
rewrite host: [login to view URL]
<html>
<body>
<img src="[login to view URL]" />
<img src="[login to view URL]" />
<script src="[login to view URL]"></script>
<script src="[login to view URL]"></script>
<link rel="stylesheet" href="[login to view URL]" />
<link rel="stylesheet" href="[login to view URL]" />
</body>
</html>
When some rewritten request come to Varnish Cache plugin must know original content.
Example:
Request: [login to view URL]
Original is: [login to view URL]
Rewrite should be done in "vcl_deliver" while rewrite to original path should be done in "vcl_recv"
I can provide test server with Apache as back-end and Varnish as front-end.
Good starting examples are:
[login to view URL]
[login to view URL]
If someone is able to do this job for me, i have one more similar project/plugin for another web server witch is also c++ development.
Feel free to ask any kind of question!
hello,
you can place your confidence in my C++/HTTP knowledge and experience.
i haven't used varnish before. and i can start after wednesday.
greets, srdjan