Host a Debian repository on a Windows Web/Ftp server

Because debian (and I suspect all apt) repositories use some symlinks and windows filesystems do not, I advise against this due to how much your repository may expand - though I don't see why it wouldn't be possible. It may result in an increase in the size of your repo mirror compared to the the upstream mirror because symlinking is used to reduce duplicates within the mirror.

I would use rsync on windows to create and maintain the mirror. More info Is available here http://www.debian.org/mirror/ftpmirror

If your going to be asking users to add your repo to their sources you should be aware of the security implications to the user and perhaps note apt pinning as a way of mitigating that.


file names

Another issue with IIS servers is that they do not feel at ease with linux file names. Here are 2 problems you will have to address for sure

  1. Several file extensions used on linux systems are not known in the default mime set of IIS. Typically, we talk about .img, .rpm, .deb. The default behaviour of IIS is to refuse the data if the mime type is unknown.

==> You can fix this by adding a MIME Type mapping Extension "." to MIME Type "text/plain". After doing this my IIS 8.5 on Windows 2012 was able to act as a mirror for my ubuntu 16.04 server. Solution thanks to Hosting APT repository on Windows using IIS?

  1. Some file name components on linux conflict with IIS. Typically, the plus sign is not allowed in a URL as it may help hackers with SQL injection code etc. Linux however has packages with have such signs in their names, like the gcc-c++ compiler. If you do not explicitly allow this in IIS, you will get a failure.

Conclusion: try to avoid such configuration if possible. But if it is really needed, there are ways to do it. I'm finishing an installation of an (older) Fedora image from an IIS 7.5 (fully automated install).