• 欢迎访问db1024网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏db1024吧

Parkomat:Linux下自建WebDav+DNS+Web服务器教程

网络资源 Liam 1年前 (2019-05-01) 545次浏览 7个评论 扫描二维码
文章目录[隐藏]

简介

Parkomat.io,是一个Linux下创建DNS+Web+WebDav的脚本。当您有很多域名并且通过典型的托管面板进行管理变得太复杂时,Parkomat很有用。下面是创建WebDav服务器过程,DNSweb为同样配置文件。

特征

  • DNS服务器带有全部功能
  • 具有SSL支持的Web服务器(可以在一个IP上运行许多证书)
  • WebDav可轻松上传文件到网页

Github地址:https://github.com/parkomat/parkomat

安装

本安装在Centos 7下测试成功。
1、安装Go 1.8.3
下载并安装Go

wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz --no-check-certificate tar zxvf go1.8.3.linux-amd64.tar.gz mv go /usr/local/ 

添加环境变量

vi /etc/profile 

添加如下内容:

export PATH=$PATH:/usr/local/go/bin export GOROOT=/usr/local/go 

使配置生效:

source /etc/profile 

查看Go是否安装成功

go version 

2、安装parkomat

go get github.com/parkomat/parkomat 

配置文件config.toml/your/parkomat/directory,其中your为放置文件的根目录)(127.0.0.1改为自己的服务器IP)

# if you set it to true, Parkomat will serve any domain pointing at it catch_all = true  [[domains]] name = "example.domain"  [[domains]] name = "parkomat.io"     # supports per domain zone settings     [domains.zone]     A = "192.168.0.1"     MX = """ 1 better.mail.server """     TXT = """ hello world """  # each domain will use following zone settings [zone] # for both .domain and www.domain A = "127.0.0.1" MX = ''' 1 test1.mail.server 10 test2.mail.server '''  [web] ip = "127.0.0.1" port = 80 path = "./www"  # make sure that path exists # for example issue mkdir -p /var/log/parkomat access_log = "/var/log/parkomat/access.log"  [webdav] enabled = true username = "hello" password = "world" # your share will be under http://example.domain/dav/ mount = "/dav/"  [dns] ip = "127.0.0.1" port = 53  # details of dns servers for NS record [[dns.servers]] name = "ns1.parkomat.co" ip = "127.0.0.1"  [[dns.servers]] name = "ns2.parkomat.co" ip = "127.0.0.1" 

./web目录

. ├── default │   └── public_html │       └── index.html ├── parkomat.io |   ├── parkomat.io.crt |   ├── parkomat.io.key |   └── public_html |       └── index.html └── config.toml

要添加新域名,只需创建具有该域名的新目录。如果你想使用SSL,只需复制domain.crtdomain.key文件复制到该域目录(注意不要将它们上传到public_html目录)。您需要重新启动parkomat

更多详情请看Github项目地址


db1024 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:Parkomat:Linux下自建WebDav+DNS+Web服务器教程
喜欢 (3)
关于作者:
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(7)个小伙伴在吐槽
  1. In fact no matter if someone doesn't understand after that its up to other people that they will assist, so here it happens.
    black mass2020-08-31 13:04 回复 Mac OS X | Safari浏览器 601.1.27
  2. I used to be able to find good information from your articles.
    black mass2020-08-28 16:06 回复 Mac OS X | Chrome 67.0.3396.62
  3. Wonderful blog! I found it while searching on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Thank you
    cheap flights2020-08-27 04:42 回复 Mac OS X | Chrome 66.0.3359.139
  4. naturally like your website but you have to test the spelling on quite a few of your posts. Many of them are rife with spelling issues and I in finding it very troublesome to tell the truth however I'll certainly come back again. cheap flights 32hvAj4
    cheap flights2020-08-25 04:52 回复 Linux | Firefox浏览器 60.0
  5. Everything is very open with a clear explanation of the issues. It was truly informative. Your site is extremely helpful. Thanks for sharing!
    cheap flights2020-08-24 10:13 回复 Mac OS X | Chrome 56.0.2986.42
  6. Way cool! Some extremely valid points! I appreciate you penning this post plus the rest of the website is really good.
    web hosting companies2020-08-12 03:53 回复 Linux | Chrome 52.0.2777.35
  7. Yesterday, while I was at work, my cousin stole my iPad and tested to see if it can survive a forty foot drop, just so she can be a youtube sensation. My iPad is now destroyed and she has 83 views. I know this is totally off topic but I had to share it with someone!
    best web hosting sites2020-08-12 03:43 回复 Linux | Firefox浏览器 4E2F