Closed laifuer closed 8 years ago
需要已经绑定域名到 /var/www/example.com 目录,即通过 http://example.com http://whatever.example.com 可以访问到 /var/www/example.com 目录,用于域名的验证
已经绑定了啊 我用的lnmp
/home/wwwroot/域名
是有什么地方需要设置权限吗
试下手动新建个文件夹 .wellxxx,里边放个test.txt,在浏览器看看能访问吗?
laifuer notifications@github.com于2016年7月3日星期日 12:05写道:
已经绑定了啊 我用的lnmp
/home/wwwroot/域名
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/xdtianyu/scripts/issues/24#issuecomment-230134217, or mute the thread https://github.com/notifications/unsubscribe/ACe8s0g-BxiOScrM5IDcmIr5dZhXVH56ks5qRzUVgaJpZM4JDzDC .
用root还是ftp?
都行吧
laifuer notifications@github.com于2016年7月3日星期日 12:12写道:
用root还是ftp?
— You are receiving this because you commented.
Reply to this email directly, view it on GitHub https://github.com/xdtianyu/scripts/issues/24#issuecomment-230134407, or mute the thread https://github.com/notifications/unsubscribe/ACe8szLRHXoibFj-Dye0Y54cNuXmQPpKks5qRzaogaJpZM4JDzDC .
403
搞定 lnmp目录权限问题,谢谢
请问具体怎么搞定的?
@boweic 大概 chmod -R 755 /var/www
或者 chown -R www-data:www-data /var/www
这样。如果遇到这样基础的问题,先不要着急,仔细在 Google 或 baidu 查找下出错的原因,一点一点解决。
多谢!解决了! Domian-dir 和默认的 var/www 不一样,改成自己的就好了!
Generate account key... Generating RSA private key, 4096 bit long modulus ......................................++ .................................................++ e is 65537 (0x10001) Generate domain key... Generating RSA private key, 2048 bit long modulus .........................+++ ........................................................+++ e is 65537 (0x10001) Generate CSR...mrluo.csr Parsing account key... Parsing CSR... Registering account... Registered! Verifying mrluo.pw... Traceback (most recent call last): File "/tmp/acme_tiny.py", line 198, in
main(sys.argv[1:])
File "/tmp/acme_tiny.py", line 194, in main
signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca)
File "/tmp/acme_tiny.py", line 123, in get_crt
wellknown_path, wellknown_url))
ValueError: Wrote file to /home/wwwroot/mrluo.pw/.well-known/acme-challenge/4NioLXi0m0egqi20mTZl3ELheqychV1ZX_kTDC36zX4, but couldn't download http://mrluo.pw/.well-known/acme-challenge/4NioLXi0m0egqi20mTZl3ELheqychV1ZX_kTDC36zX4 @