Is there a configuration for Caddy? #1004
-
Hello, I'd like to use Caddy as a web server for Yellow. I run Caddy and PHP8.2 and with phpinfo() in the index.php file I get an output as well. What I can't manage is that Yellow runs. Does anyone have it running and could show me their Caddyfile? Thank you very much and Happy New Year! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hello. I guess that the only problem is translating .htaccess into the Caddy syntax. I have found very similar questions in the Caddy forum: https://caddy.community/t/help-converting-htaccess-over-to-caddy-redir/460 There is also a PHP script which automatically translates, but it seems to me overkill for the very simple .htaccess file of Yellow: https://github.com/buckybytes/htaccess-to-caddyfile-converter Perhaps you could ask for help in the Caddy forum and then post the solution here? It coud be useful if there were instructions for using Yellow with various web servers (some time ago I successfully used Yellow with lighttpd). |
Beta Was this translation helpful? Give feedback.
-
I am a try and error programmer. :-)
If someone has improved, I am grateful for it. |
Beta Was this translation helpful? Give feedback.
-
Usually your web server has to do three things:
This is required for using Datenstrom Yellow as a content management system, for example when you want to edit your website in the web browser. Here's some technical background for website administrators. The first item on the list is what makes everything work together. This is where the core and other extensions are loaded and then handle the incoming HTTP requests. The second item on the list makes sure that nobody sees your content files in the raw Markdown format. The third item on the list makes sure that nobody sees your system files and personal data. As you can see there is no special rule for the media directory, that's because media files such as images are handled as regular files. Some web servers require additional settings, for example for the FastCGI configuration, but this is very much dependent on the web server and the operating system. Everyone does it a little different. There are example configurations for the Apache web server and the Nginx web server. I think it shouldn't be too difficult to make it work with any other web server. If you're working on your own computer, you can also use the built-in web server. |
Beta Was this translation helpful? Give feedback.
I am a try and error programmer. :-)
This way I found out the following Caddyfile that runs on me:
If someone has improved, I am grateful for it.