Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请教一下如何使用caddy反代 #18

Open
Joyace opened this issue Oct 7, 2018 · 1 comment
Open

请教一下如何使用caddy反代 #18

Joyace opened this issue Oct 7, 2018 · 1 comment

Comments

@Joyace
Copy link

Joyace commented Oct 7, 2018

http://xxxx {
 redir https://i.joyace.xyz{url}
}
xxxx {
 gzip
 tls [email protected]
 proxy / https://xxxxxxxxx {
    header_upstream Host {host}
    header_upstream X-Real-IP {remote}
    header_upstream X-Forwarded-Proto {scheme}
 }
}

像这样配置之后访问页面出错:

421 Site i.joyace.xyz is not served on this interface
@sam8877
Copy link

sam8877 commented May 6, 2020

xxx  {
        root  /data/imgurl
        gzip
        fastcgi  /  /run/php/php7.3-fpm.sock php {
                ext  .php
                split  .php
                index  index.php
        }
        rewrite {
                to {path} {path}/ /index.php?/{uri}
        }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants