generated from github/welcome-to-github
-
-
Notifications
You must be signed in to change notification settings - Fork 17
12. Miscellaneous and tips
Ludo edited this page Jan 5, 2025
·
9 revisions
For security reasons, browsing a repository through the web server directory listing is disabled by default as it allows anybody to browse the content of the repositories without authentication.
To browse a repository through Repomanager, see: Browse repository content
If you really want to enable web server directory listing:
- Enter the container:
docker exec -it repomanager /bin/bash
- Edit Repomanager vhost configuration file:
vim /etc/nginx/sites-enabled/repomanager.conf
- Go to the very bottom file and uncomment the
autoindex
directives in thelocation /repo
block:
location /repo {
alias $REPOS_DIR;
autoindex on;
autoindex_exact_size off;
autoindex_localtime on;
autoindex_format html;
}
- Save the file and reload nginx:
service nginx reload
- Exit the container:
exit
- You can now browse the repositories through your web browser:
https://<FQDN>/repo/