From: "Alexey V. Vissarionov" <gremlin@altlinux.org>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] Обновление GHC в репозитарии Сизифа
Date: Sun, 27 May 2018 00:58:12 +0300
Message-ID: <20180526215812.GF12599@altlinux.org> (raw)
In-Reply-To: <CAB_XSX39+gATYd2nPOaqyx68n01=Ts74bt7PamOGsRKdm7dcMw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1932 bytes --]
On 2018-05-26 20:41:13 +0300, Eugine Kosenko wrote:
> Увы, опыт в настройке vsftpd у меня никакой... :-(.
Если по какой-то причине нужен именно FTP - вот готовый /etc/vsftpd.conf
listen=YES
listen_address=0.0.0.0
background=YES
anonymous_enable=YES
anon_upload_enable=YES
anon_mkdir_write_enable=NO
anon_other_write_enable=NO
anon_world_readable_only=YES
anon_umask=027
max_per_ip=2
local_enable=NO
ftp_username=ftp
write_enable=NO
local_umask=027
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
pasv_min_port=49152
pasv_max_port=65535
chown_uploads=YES
chown_username=SOMEUSER
nopriv_user=vsftpd
ascii_upload_enable=NO
ascii_download_enable=NO
chroot_local_user=YES
hide_ids=YES
use_localtime=YES
Но намного проще и правильнее настроить nginx - примерно так:
# /etc/nginx/nginx.conf
worker_processes 2;
error_log /var/log/nginx/error.log;
events
{
worker_connections 1024;
}
http
{
proxy_temp_path /tmp/nginx/proxy;
include /etc/nginx/mime.types;
default_type application/octet-stream;
access_log /var/log/nginx/access.log;
sendfile on;
server_tokens off;
keepalive_timeout 15;
gzip on;
proxy_cache_path /tmp/nginx/cache levels=1:2 keys_zone=my_cache:1024m;
proxy_cache_key "$host$request_uri";
proxy_cache_methods GET;
proxy_cache_valid 200 30m;
proxy_cache my_cache;
server
{
listen 80 default_server;
listen [::]:80 ipv6only=on;
server_name "";
root /home/SOMEUSER/www;
location /
{
autoindex on;
}
}
}
В обоих случаях следует поменять SOMEUSER на имя своего пользователя.
--
Alexey V. Vissarionov
gremlin ПРИ altlinux ТЧК org; +vii-cmiii-ccxxix-lxxix-xlii
GPG: 0D92F19E1C0DC36E27F61A29CD17E2B43D879005 @ hkp://keys.gnupg.net
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]
next prev parent reply other threads:[~2018-05-26 21:58 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-18 8:58 ` Ivan Zakharyaschev
2018-05-21 7:58 ` Kirill Maslinsky
2018-05-26 17:50 ` Yuri Sedunov
2018-05-26 18:53 ` [devel] [sisyphus] " Anton Farygin
2018-05-26 21:58 ` Alexey V. Vissarionov [this message]
2018-11-24 10:26 ` Vladimir D. Seleznev
2018-11-24 10:37 ` Grigory Ustinov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180526215812.GF12599@altlinux.org \
--to=gremlin@altlinux.org \
--cc=devel@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git