Where is the www directory?

I did this tutorial site works fine and everything but I need to know where my index.html file is being kept in which directory exactly on my server?

Not sure off the top of my head. If you haven’t set a root, and you’re running it as a service, I’m pretty sure it goes in the home directory of the user it’s run as?

Try sudo find / -name 'index.html' maybe?

1 Like

It’s not clear from that tutorial; without the root directive in the Caddyfile, it’s just whatever folder the system service is running in. I’d recommend just putting a root directive in your config and then put your site in there.

Just so you know, you could use our official DigitalOcean image: https://marketplace.digitalocean.com/apps/caddy

It’s a one-click start, and it has good instructions and tells you where all the files are. :slight_smile: It’s running a beta version of v2 though, so be aware that it’s a little different.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.