Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^7: Missing module perl

by Corion (Pope)
on Aug 21, 2019 at 09:26 UTC ( #11104791=note: print w/replies, xml ) Need Help??

in reply to Re^6: Missing module perl
in thread Missing module perl

Can't connect to localhost:80 (Connection refused)

This means that there is no web server listening on localhost:80. Have you checked with your browser that you can connect to http://localhost:80? Is the web server process running?

My suggestion is to eliminate the web server from the problem, by using file:// URLs instead of http:// URLs. If you want to make your local mirror available to more than one machine, using http as protocol is better, but then you will first need to configure the HTTP server appropriately.

Configuring your HTTP server is not really a Perl problem.

Maybe you can use CPAN::Mini::Webserver as your CPAN web server, but I have never done that.

Replies are listed 'Best First'.
Re^8: Missing module perl
by ridwan (Initiate) on Aug 21, 2019 at 09:33 UTC

    if i access http://localhost:80 isn't connect, but if i set http://my-ip-addres-vbox is work.

    I set file:// in urllist in cpan development ?

      Yes, you use file:// where you would otherwise use http://.

      If you see your CPAN mirror using http://my-ip-addres-vbox in the browser, then the web server configuration you've shown does not match the actual configuration:

      <VirtualHost localhost:80>

      This means that the web server will only run in your virtual box and only listen to the localhost interface there.

      Do you want to make the CPAN mirror available within that virtual box, or to machines outside of that virtual box? If you want to make it available outside of that virtual box, file:// will not work. Then you will need to use http://, but the web server configuration you've shown does not look as if the web server (or rather, the CPAN mirror part of that webserver) would be reachable from outside that virtual box.

        so, what do I need to set in the web server configuration to be accessed virtual host?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11104791]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2020-08-11 04:36 GMT
Find Nodes?
    Voting Booth?
    Which rocket would you take to Mars?

    Results (58 votes). Check out past polls.