hi folks,
Does any one know how to integrate apache as a dynamic server and lighttpd as a static server both.
I am working on a project where for improving the performance of a web site I am using both servers apache as well as lighttpd. In this case apache is on one server machine and lighttpd is on another server. I am using apache for serving all the dynamic content and also to run a drupal. And my second server, i.e., lighttpd server is used only for serving static content that is there in sites/default/files. So for this purpose I have used nfs server to mount on the drupal instance into sites/default/files. this nfs server is the same machine which is hosting lighttpd and in lighttpd server i have created directory drupal/files where all the content of sites/default/files is been sync. So, after mount whatever content or changes that I am doing on sites/default/files on apache is getting reflected to drupal/files.
But My problem is now that all this static content is still served by apache. Now i want it to be served by lighttpd server whenever request for the same content is their. I have read about using lighttpd as a server from http://www.lullabot.com/articles/using-lighttpd-static-file-server. But it is telling to do changes into include files as well as theme, which is much tedious task because my site is having a lot of content block in which i need to do changes as per told.
So, is there any other way that I can do to make it work.
My configuration:
Drupal 6.x, Apache2, MySQL 5.x, PHP 5.

Comments
The parallel module will do
The parallel module will do what you want. It doesn't require altering any files. Just download, install and configure it to change the file URL's to your Lighttpd server:
http://drupal.org/project/parallel
HollyIT - Grab the Netbeans Drupal Development Tool at GitHub.
Parallel module wont work in this case....
hey thanks for reply...
But this parallel madule does not integrate with cdn. and in my case we are using cdn. so this will not work for my case. i am using my lighttpd server as origin pull. so this may not work for that. so I need to integrate cdn with my site.
Rahul B. Shelke
My Cute Office
https://mycuteoffice.com/
Not quite sure I understand
Not quite sure I understand your problem. Parallel module is generally the tool that I use for origin pull CDNs. Though I'm a bit confused by your description of what you are trying to do. I think all you need to do is setup subdomain.example.com that points to your lighttpd server, enable the Parallel module and tell it to use subdomain.example.com for all of your images/CSS/JS. If you've got either the origin pull or NFS mount setup correctly (I can't quite follow which method you are using) it will just work.
--
Dave Hansen-Lange
Director of Technical Strategy, Advomatic.com
Pronouns: he/him/his
CDN + Lighttpd
Thanks Dave!!
This is Mukesh and I'm working with Rahul who posted this issue. We've setup an akamai server for our static content. The static content can be rendered with Lighttpd using Parallel module. However, the CDN integration will not happen. We would want to use the CDN technology to reduce the load on my lighttpd server as well.
I hope I clarified the issue, if not, please let me know.
Cheers,
Mukesh Agarwal
www.innoraft.com
I second Dave on this; I
I second Dave on this; I usually also rely on Parallel to add CDN support. It's simple, clean and works just fine with most CDN.
What you need to understand is that there are basically two types of CDN;
Akamai supports pull; Parallel will work just fine.
--
Wiredcraft (http://wiredcraft.com) - Building Web and mobile solutions using Open Source technologies.
Gotcha :)
That sounds great. We will be using Pull mechanism for CDN in any case. Will try this out and keep you guys posted.
Thanks for the suggestions. With the lullabot article, I was wondering why the need to change the base_path for all images,css,js, etc. Good to see that parallel module is replacing them by regular expression. Good to see that.
Cheers,
Mukesh Agarwal
www.innoraft.com
Us Lighty and nginx fans are
Us Lighty and nginx fans are stumped why so many people think our servers of choice are only good for serving static files alongside Apache. Both are great at serving dynamic content (including Drupal sites) as well, so why use Apache at all?
The Boise Drupal Guy!