docs icon indicating copy to clipboard operation
docs copied to clipboard

Add Caddy webserver example

Open dschissler opened this issue 7 years ago • 3 comments

I took a crack at it here in my Webird caddy branch. I'm sure that its not optimized, tight and sexy yet. https://github.com/perchlayer/webird/blob/caddy/app/phalcon/common/views/simple/caddy/dev.volt

Here is a response that I received from the forum a while ago. I think that this could help. https://caddy.community/t/i-have-no-idea-how-to-convert-this-nginx-fastcgi-setup-to-caddy/2156/2

I should be able to get to this in the next 3-6 weeks.

dschissler avatar Jul 01 '17 22:07 dschissler

@dschissler Well, could you please provide a production ready example for a Phalcon related project? The single module will be enough. So that we can use it as our official recommendation.

sergeyklay avatar Jul 02 '17 13:07 sergeyklay

Closing in favor of https://github.com/phalcon/docs/issues/2322

niden avatar Jun 18 '19 19:06 niden

this works fine for me

https://example.cc {
    gzip
    tls /ssl/example.cc/cert.pem /ssl/example.cc/key.pem
    root /path/to/phalcon/public
    fastcgi / unix:/run/php/php7.3-fpm.sock php
    rewrite {
        r (.*)
        to {path} {path}/ /index.php?_url={1}
    }
}

hldh214 avatar Jun 24 '19 12:06 hldh214