Hosting Reprepro With Apache
After everything is completed, it's time to host it on a server. This section is about note taking while hosting with Apache.
Publication Location
Publication Location
For Apache, you need to output your directory to:
/var/www/repos/apt/debian
Otherwise, it will be a lot of complications.
Apache Configurations
Apache Configurations
Ensure your Apache configurations has the following settings:
# /etc/apache2/conf.d/repos
<Directory /var/www/repos/ >
# We want the user to be able to browse the directory manually
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
# This syntax supports several repositories, e.g. one for Debian, one for Ubuntu.
# Replace * with debian, if you intend to support one distribution only.
<Directory "/var/www/repos/apt/*/db/">
Order deny,allow
Deny from all
</Directory>
<Directory "/var/www/repos/apt/*/conf/">
Order deny,allow
Deny from all
</Directory>
<Directory "/var/www/repos/apt/*/incoming/">
Order allow,deny
Deny from all
</Directory>
Reload and Test
Reload and Test
Finally, reload and test the server.
$ apache2ctl configtest
Syntax OK
$ /etc/init.d/apache2 reload
Reloading web server config: apache2.
That's all about hosting reprepro
with Apache.