Upload.wikimedia.org

From Wikitech
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 +
Uploaded image and media files for Wikimedia's wikis appear on the separate subdomain '''upload.wikimedia.org'''.
 +
 +
This provides separate physical hosting for efficiency, a separate domain name to aid in browser connection splitting, and a separate domain name to aid in JavaScript security rules.
 +
 
== Caching layer ==
 
== Caching layer ==
 +
 +
Uploads have a separate set of [[squid]] proxy caches from the text squids.
  
 
== Backend: storage ==
 
== Backend: storage ==
Line 13: Line 19:
 
''please add more documentation thx''
 
''please add more documentation thx''
  
[[Category:Services ]]
+
== Private wikis ==
 +
 
 +
Our private wikis do not serve their files to the public through this interface; they're served through <tt>img_auth.php</tt> on the local domain, which enforced authentication.
 +
 
 +
== Compatibility links ==
 +
 
 +
Most of our wikis have an rewrite rule to redirect requests from <tt>/upload</tt> and <tt>/math</tt> on the primary wiki domain to the appropriate subdirectory on <tt>upload.wikimedia.org</tt>. This provides compatbility for old direct image links from the days before the separate image hosting.
 +
 
 +
Special:Filepath can also send redirects here.
 +
 
 +
[[Category:Services]]

Revision as of 22:45, 12 August 2008

Uploaded image and media files for Wikimedia's wikis appear on the separate subdomain upload.wikimedia.org.

This provides separate physical hosting for efficiency, a separate domain name to aid in browser connection splitting, and a separate domain name to aid in JavaScript security rules.

Contents

Caching layer

Uploads have a separate set of squid proxy caches from the text squids.

Backend: storage

Backend: scaling

[3:33pm] mark: 01:31:52 <TimStarling> the first is for thumb.php requests by users, the second is for ordinary requests via the 404 handler
[3:34pm] mark: so it's accessed in two ways
[3:34pm] mark: one via squid directly

please add more documentation thx

Private wikis

Our private wikis do not serve their files to the public through this interface; they're served through img_auth.php on the local domain, which enforced authentication.

Compatibility links

Most of our wikis have an rewrite rule to redirect requests from /upload and /math on the primary wiki domain to the appropriate subdirectory on upload.wikimedia.org. This provides compatbility for old direct image links from the days before the separate image hosting.

Special:Filepath can also send redirects here.

Personal tools
Namespaces

Variants
Actions
Navigation
Ops documentation
Wiki
Toolbox