Is it possible with nginx?

Peter Vage lists at ruby-forum.com
Mon Feb 16 00:05:31 MSK 2009


I would like to delegate dedicated server for hosting static files for
some of my websites. For example i have got domains web1.com, web2.com
and web34.com on first server. On second server I have got domain
files.com.

I would like to ask you if this possible that i make links on web 1,2,3
which looks like:
http://web1.com.files.com/path/image.jpg
http://web2.com.files.com/path/path/file.zip
http://web3.com.files.com/another-path/background.gif

browsers try to get files from this links but there aren't this files,
so on second server there is script index.php which download files from
right servers and create folders /web1.com/path/image.jpg ,
/web2.com/path/path/file.zip etc and send to browser this files. When
another browser want that files then there are just that files on
files.com server.

I don't know how to setu nginx config on second server that
http://web1.com.files.com/path/image.jpg
was
http://web1.com.files.com/web1.com/path/image.jpg

This kind of solution is used by Coral CDN
http://wiki.coralcdn.org/wiki.php?n=Main.FAQ

Have you got any solution how to do this?
Maybe have you got any other idea how to create backup and speed up web
server at the same time?

Best regards
Peter
-- 
Posted via http://www.ruby-forum.com/.





More information about the nginx mailing list