After everything is completed, it's time to host it on a server. This section is about note taking while hosting with Nginx.
For Nginx, you need to output your directory to:
/var/www/repos/apt/debianOtherwise, it will be a lot of complications.
Create a host (here, we use deb.example.com)
/etc/nginx/sites-available/deb.example.com.vhostEnsure your Apache configurations has the following settings:
server { listen 80; server_name deb.example.com; access_log /var/log/nginx/packages-error.log; error_log /var/log/nginx/packages-error.log; location / { root /var/www/repos/apt/debian; index index.html; autoindex on; } location ~ /(.*)/conf { deny all; } location ~ /(.*)/db { deny all; }}Finally, enable the vhost and test the server.
cd /etc/nginx/sites-enabledln -s ../sites-available/deb.example.com.vhost ./etc/init.d/nginx reloadThat's all about hosting reprepro with Nginx.