mirror of
https://codeberg.org/mclemens/nsd-dyndns.git
synced 2024-12-28 20:56:39 -05:00
commit
56acbf97dd
30
README.md
30
README.md
@ -18,8 +18,9 @@ The following is required or suggested:
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
### Configure your HTTPD
|
### Configure your web server
|
||||||
|
|
||||||
|
#### Apache/httpd
|
||||||
Add the following new virtual host to your _/etc/httpd.conf_:
|
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_:
|
Create an empty _update.html_:
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -37,7 +63,7 @@ Create an empty _update.html_:
|
|||||||
# touch /var/www/htdocs/dyndns/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_
|
The request should show up in _/var/www/logs/dyndns.log_
|
||||||
|
|
||||||
### Create a zone file for dyn.example.com
|
### Create a zone file for dyn.example.com
|
||||||
|
Loading…
Reference in New Issue
Block a user