Установить веб-сервер Apache:
# apt-get install apache2
Привести файл
/etc/httpd2/conf/include/Directory_html_default.conf к следующему виду:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
Require all granted
Запустить сервер и добавить его в автозагрузку:
# systemctl enable --now httpd2
Перейти в каталог веб-сервера
/var/www/html:
# cd /var/www/html
Создать символическую ссылку на репозиторий:
# ln -s /srv/public/mirror mirror
Установить веб-сервер nginx:
# apt-get install nginx
Создать файл конфигурации
/etc/nginx/sites-available.d/repo.conf:
server {
listen 80;
server_name localhost .local <IP_сервера>;
access_log /var/log/nginx/repo-access.log;
error_log /var/log/nginx/repo-error.log;
location /mirror {
root /srv/public;
autoindex on;
}
}
Создать символическую ссылку:
# ln -s /etc/nginx/sites-available.d/repo.conf /etc/nginx/sites-enabled.d/repo.conf
Запустить сервер и добавить его в автозагрузку:
# systemctl enable --now nginx