---
title: Directory Structure
description: The predefined directory layout inside a serverlet.
---

Every serverlet has a predefined directory structure. All your data lives in the **/srv/** directory. You have full user permissions to this directory, and it's the only one where data is stored permanently — data outside this directory may not survive a restart.

- `/srv/bin/` — location for your applications' binary files
- `/srv/config/` — location for application configuration files
- `/srv/data` — location for application data
- `/srv/log` — location for application logs
- `/srv/service` — location for runit configuration files
- `/srv/www` — location for your application

It's not a good idea to change this structure (delete or rename it) — doing so could break some applications. That said, you're free to change the contents of the **/srv/** directory however you like. No directories other than **/srv/** and **/tmp/** can be modified.

## Full serverlet directory structure

`/bin/`, `/boot/`, `/dev/`, `/etc/`, `/home/`, `/lib/`, `/lib32/`, `/lib64/`, `/libx32/`, `/media/`, `/mnt/`, `/opt/`, `/proc/`, `/root/`, `/run/`, `/sbin/`, `/srv/` (your directory), `/srvlet/`, `/sys/`, `/tmp/` (directory for writing temporary data), `/usr/`, `/var/`