4 days ago
Hi, I have deployed simple static website served using Caddy but the domain assigned is returning 404:
I have tested caddy command locally and it works fine.
Can you please advise what is wrong?
4 Replies
3 days ago
Heya,
Your app is live and serving traffic but you don't have an endpoint for /
configured.
```
Starting Container
using provided configuration
Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies
admin endpoint disabled
automatic HTTPS is completely disabled for server
started background certificate maintenance
cleaning storage unit
finished cleaning storage units
server running
serving initial configuration
handled request
handled request
handled request
handled request
handled request
```
You can see it's handling requests, there's just nothing to serve.
You'll need to configure your application to serve something at the root.
Status changed to Awaiting User Response railway[bot] • 3 days ago
echohack
Heya,Your app is live and serving traffic but you don't have an endpoint for / configured.```Starting Containerusing provided configurationCaddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistenciesadmin endpoint disabledautomatic HTTPS is completely disabled for serverstarted background certificate maintenancecleaning storage unitfinished cleaning storage unitsserver runningserving initial configurationhandled requesthandled requesthandled requesthandled requesthandled request```You can see it's handling requests, there's just nothing to serve.You'll need to configure your application to serve something at the root.
3 days ago
Hi @echohack,
here is a snippet from my Caddyfile,
I previously had it as
`root * public`
now changed to full path in my monorepo
`root * apps/some-project-folder/public`
none of that works.
Attachments
Status changed to Awaiting Railway Response railway[bot] • 3 days ago
3 days ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • 3 days ago
3 days ago
any guide you can point me out to show how to deal with monorepos and Caddy in railway?
3 days ago
Your Caddy server is running but not finding files to serve at the root path (/
). The issue is likely with:
Incorrect root directory path in your Caddyfile
Railway's working directory vs your file structure
Caddyfile syntax issues
can you provide me with your Your current Caddyfile (complete file) & Your monorepo directory structure