Step 1: host the zip file
The pack must be a .zip with pack.mcmeta at its root, available at a direct download link. Opening the link must download the file straight away, without a preview page. Dropbox links work if you change dl=0 to dl=1. Google Drive share links usually do not. A GitHub release or your own web space works well.
Step 2: point server.properties at it
With the server stopped, set these keys and start the server again:
- resource-pack: the direct download URL; escape colons as \: if your editor requires it
- resource-pack-sha1: the SHA-1 hash of the zip, lowercase
- require-resource-pack: true to kick players who decline it
- resource-pack-prompt: optional message shown on the download prompt
Why the SHA-1 hash matters
Clients cache resource packs by hash. Without it, players can keep using an old cached copy after you update the pack. With it, a changed hash forces a fresh download. Generate it with sha1sum pack.zip on Linux, certutil -hashfile pack.zip SHA1 on Windows, or an online SHA-1 tool, and update it every time you change the pack.
When the pack fails to load
Paste the URL into a private browser window: if it does not download immediately, the link is wrong. Check the pack.mcmeta pack_format matches the server version, as old packs show as incompatible. Keep the file as small as possible; very large packs time out for players on slow connections.