Merge pull request #1 from chrisb86/master

Updated README
This commit is contained in:
Michael Clemens 2018-06-03 08:46:32 +02:00 committed by GitHub
commit 56acbf97dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,8 +18,9 @@ The following is required or suggested:
## Installation
### Configure your HTTPD
### Configure your web server
#### Apache/httpd
Add the following new virtual host to your _/etc/httpd.conf_:
```
@ -30,6 +31,31 @@ The following is required or suggested:
}
```
#### nginx
Add the following to your nginx.conf. The "access" log format isn't avaliable by default so you have to define it.
```
http {
...
log_format access '$host $remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" "$gzip_ratio"';
...
server {
listen 80;
server_name update.example.com;
root /htdocs/dyndns;
access_log /var/www/logs/dyndns.log access;
...
}
}
```
Create an empty _update.html_:
```
@ -37,7 +63,7 @@ Create an empty _update.html_:
# touch /var/www/htdocs/dyndns/update.html
```
After reloading HTTPD, try to access http://update.example.com/update.html
After reloading webserver, try to access http://update.example.com/update.html
The request should show up in _/var/www/logs/dyndns.log_
### Create a zone file for dyn.example.com