in reply to Minicpan mirror on lan, not working with cpanplus client

Ok! I have it working!!! The key suggestion came from hippo. This might help someone else, so even though its not strictly Perl, I'll detail the steps I took to get my minicpan online.

I first edited the Apache config-file: `sudo vim /etc/apache2/apache2.conf' to introduce a new Alias:


# Alias definition
Alias /minicpan "/var/mirrors/minicpan"

Then a new Directory entry goes next into apache2.conf:


# Directory permissions
<Directory "/var/mirrors/minicpan">
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

Warning: I don't actually understand all the lines in the Directory permissions block. I'm guilty of cargo-cult coding here; I just copied what Google AI answered with. Sorry ;-)

Finally, one needs to remember to restart apache so that it will read the edited apache2.conf; my server is running on Debian and a good way for Debian users to get a restart is `sudo systemctl restart apache2'

So once again PerlMonks came through for me, and I really appreciate it.

  Soren

Jul 01, 2025 at 17:05 UTC
  • Comment on Re: Minicpan mirror on lan, not working with cpanplus client

Replies are listed 'Best First'.
Re^2: Minicpan mirror on lan, not working with cpanplus client
by hippo (Archbishop) on Jul 01, 2025 at 17:37 UTC
    Warning: I don't actually understand all the lines in the Directory permissions block. I'm guilty of cargo-cult coding here; I just copied what Google AI answered with. Sorry ;-)

    Don't blindly follow suggestions from an LLM AI. That's even worse than blindly following code in some random blog you've never read before. In this case the Options line is probably unnecessary and really should not have FollowSymLinks. AllowOverride None is good, but should really be at the top level, not just in this dir. Require all granted allows public access to all methods - fine for a fully internal server but bear it in mind if you are opening it up to clients on the wider web.

    a good way for Debian users to get a restart is `sudo systemctl restart apache2'

    You don't need a restart just to pick up a change in config like this. If you are stuck with using systemd then sudo systemctl reload apache2 will do. If you are free from systemd (or just don't want to give it the satisfaction of using its own commands) then a simple sudo apachectl graceful is the way.

    Glad you have it working now. Enjoy your minicpan!


    🦛

      Thank you for the good information hippo. I am glad I have it working. It's really quite cool having many perl packages available through connection on my local LAN.

      Jul 05, 2025 at 15:41 UTC