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.

  1. $lynx -dump http://ipvhost.example.com/index.html
  2.  
  3. Looking up ipvhost.example.com
  4. Unable to locate remote host ipvhost.example.com.
  5. Alert!: Unable to connect to remote host.
  6.  
  7. lynx: Can't access startfile http://ipvhost.example.com/index.html

My ipvhost.conf file is:

  1. DocumentRoot /ipvhost/
  2. ServerName ipvhost.example.com
  3. <Directory /ipvhost/>
  4. Options Indexes FollowSymLinks
  5. AllowOverride None
  6. Require all granted
  7. </Directory>

can someone kindly help solve this issue?

Comments

  • 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 :

    1. <VirtualHost 192.168.1.11:80>
    2. DocumentRoot /ipvhost/
    3. ServerName ipvhost.example.com
    4. <Directory /ipvhost/>
    5. Options Indexes FollowSymLinks
    6. AllowOverride None
    7. Require all granted
    8. </Directory>
    9. </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.

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training