diff --git a/_posts/2014-03-06-site-changes.html b/_posts/2014-03-06-site-changes.html index a3b32e6..aa99f14 100644 --- a/_posts/2014-03-06-site-changes.html +++ b/_posts/2014-03-06-site-changes.html @@ -9,7 +9,7 @@ description: I decided to change my site. You may find short list of changes bel ---
arcanis.name
domain. Now I have a normal address, as well as all white people have it. Small description of how to do it. Firstly, you should rent domain and activate DNS editing (it is called DNS-master for Ru-center). I pay about $30 in year. Then you should create CNAME file in your repository; this file has line with your domain name. And finally you should create two DNS records for your domain:
+ arcanis.name
domain. Now I have a normal address, as well as all normal people have it. Small description of how to do it. Firstly, you should rent domain and activate DNS editing (it is called DNS-master for Ru-center). I pay about $30 in year. Then you should create CNAME file in your repository; this file has line with your domain name. And finally you should create two DNS records for your domain:
{% highlight bash %}
@ A 192.30.252.153
@ A 192.30.252.154
@@ -29,12 +29,13 @@ domain.name. 912 IN A 192.30.252.154
anon_world_readable_only=YES
are used for prevent access to the music directory.
Also here is my /etc/vsftpd.conf
configuration file:
{% highlight bash %}
anonymous_enable=YES
@@ -49,16 +50,17 @@ anon_world_readable_only=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
-nopriv_user=share
+nopriv_user=music
ascii_upload_enable=YES
ftpd_banner=Welcome to arcanis
+chroot_local_user=YES
+local_root=/mnt/ftp/music
listen=YES
{% endhighlight %}
Now let's add redirection from repo.arcanis.name
to the needed IP address. To do this, add the following entry in DNS:
{% highlight bash %}
-repo.arcanis.name. A 89.249.170.38
+repo A 89.249.170.38
{% endhighlight %}
-(Do not forget add point at the end of domain.)
anon_world_readable_only=YES
.
Также привожу свой файл настроек /etc/vsftpd.conf
:
{% highlight bash %}
anonymous_enable=YES
@@ -49,16 +50,17 @@ anon_world_readable_only=YES
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
-nopriv_user=share
+nopriv_user=music
ascii_upload_enable=YES
ftpd_banner=Welcome to arcanis
+chroot_local_user=YES
+local_root=/mnt/ftp/music
listen=YES
{% endhighlight %}
Теперь добавим переадресацию с repo.arcanis.name
на нужный IP адрес. Для этого внесем следующие записи в DNS:
{% highlight bash %}
-repo.arcanis.name. A 89.249.170.38
+repo A 89.249.170.38
{% endhighlight %}
-(Обратите внимание на точку в конце.)