Welcome to the Linux Foundation Forum!

Lab 7.3: Unable to connect to remote host.

I am in lab 7.3 and getting this error.

$lynx -dump http://ipvhost.example.com/index.html

Looking up ipvhost.example.com
Unable to locate remote host ipvhost.example.com.
Alert!: Unable to connect to remote host.

lynx: Can't access startfile http://ipvhost.example.com/index.html

My ipvhost.conf file is:

DocumentRoot /ipvhost/
ServerName ipvhost.example.com
<Directory /ipvhost/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>

can someone kindly help solve this issue?

Comments

  • k0dard
    k0dard Posts: 115

    Hello nerlekarneeraj,

    Have you added a temporary ip address for your main ethernet adapter ?

    I think your ipvhost.conf should look like this :

        <VirtualHost 192.168.1.11:80>
        DocumentRoot /ipvhost/
        ServerName ipvhost.example.com
        <Directory /ipvhost/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
        </Directory>
        </VirtualHost>
    

    Where 192.168.1.11 is the ip address you added in step 1 of the lab...

  • @k0dard Thank you for your response. It worked.

Categories

Upcoming Training