开发者

Python/Django mirror or proxy app

开发者 https://www.devze.com 2023-02-13 03:08 出处:网络
I need to setup a mirror/proxy site using Django/Python. What I need to do I have a site say abc.com. If I go to abc.com/stackoverflow.com, I want开发者_如何学JAVA all content to be served from my s

I need to setup a mirror/proxy site using Django/Python. What I need to do

I have a site say abc.com.

If I go to abc.com/stackoverflow.com, I want开发者_如何学JAVA all content to be served from my server at abc.com. This includes all JS, CSS and images.

So I want a django mirror/proxy app, which takes a url, rewrites the html, pulls the htmls and content and servers it from a local mirror.

[Edit]

I prefer a Django app, but a non-Django python app would be good as well.


You want a vhost setup. You have to connect multiple domain names so that they are served by the same web server. That is accomplished by pointing the domains to the same server and setting up vhosting there. Django, or other software that serves the pages aren't directly involved in it.

0

精彩评论

暂无评论...
验证码 换一张
取 消