Boa tarde, amigos
Estou montando um servidor mirror local, para atender meus desktop linux na rede, o problema e que não estou conseguindo fazer o alias criado no virtualhost exiba o diretório ubuntu na pagina principal (/var/www), onde estou errando?
OS: Debian 9.8
Atenciosamente,
Este resultado que estou obtendo quando acesso http://10.1.9228
Aqui consigo acessar o conteúdo que esta no mirror com endereço http://10.1.9.228/ubuntu
# vi /etc/apache2/sites-enabled/apt-mirror.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www
# Alias Ubuntu
Alias /ubuntu /repo/skel/archive.ubuntu.com/ubuntu
<Directory "/repo/skel/archive.ubuntu.com/ubuntu">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
# vi /etc/apache2/apache2.conf
DefaultRuntimeDir ${APACHE_RUN_DIR}
PidFile ${APACHE_PID_FILE}
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 5
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
HostnameLookups Off
ErrorLog ${APACHE_LOG_DIR}/error.log
LogLevel warn
IncludeOptional mods-enabled/*.load
IncludeOptional mods-enabled/*.conf
Include ports.conf
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
AccessFileName .htaccess
<FilesMatch "^\.ht">
Require all denied
</FilesMatch>
LogFormat "%v:%p %h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" vhost_combined
LogFormat "%h %l %u %t "%r" %>s %O "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %O" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
IncludeOptional conf-enabled/*.conf
IncludeOptional sites-enabled/*.conf