# Examples for using Caddy Web Server

This repository contains community-contributed, simple, guided examples of using Caddy with a variety of web applications and purposes.

Simply choose a folder that describes what you're trying to use Caddy for or with. Look at the Caddyfile in that folder, and follow the instructions there for more information.

Pay attention to when the file you're looking at was last updated. Some may need to be updated to work with newer versions of Caddy.

## Contributing

Please contribute new examples! We're happy to accept contributions that adhere to these quality standards:

- **Organize examples by application or use case.** The top-level folders of this repo should be names of applications or use cases. Within each folder, there may be subfolders if there are multiple examples for it.
- **The example should generalize.** It's okay to add an example for a niche (uncommon) application, but not a niche use of a niche application.
- **Be as minimal as possible.** If it doesn't _need_ to be in the Caddyfile to work properly, then don't put it in, even if you like it. We want people to learn precisely what they came to learn, the other stuff can follow.
- **Write a helpful README.** Each example folder should contain a README with simple, concise instructions. Use your best grammar and cite sources! Do not over-explain, but don't leave it totally empty either. At minimum, explain why your example works. Be specific about what the example accomplishes.
- **Create a Caddyfile file.** When applicable, create a file in your example folder called Caddyfile with the contents of the Caddyfile. You may annotate the Caddyfile with comments or describe it in the README, either way is fine.
- **Please keep it maintained.** As the web application or use case associated with your example evolves, please keep the example maintained for future readers. Lots of people rely on examples to learn.

Thank you for being a part of our community! (We invite you to check out [our forums](https://caddy.community/) too!)

# This repository is deprecated and no longer maintained.

The examples in this repo are for Caddy v1, which has been obsoleted by Caddy 2. **Please [upgrade to Caddy 2](https://caddyserver.com/docs/v2-upgrade).**


## Examples for v2

Check out **[the wiki category in our forums](https://caddy.community/c/wiki/13)** for v2 examples, guides, and tutorials. Anyone can post or edit a wiki topic.

Update readme: link to wiki category of forum
Update readme: link to wiki category of forum
