Virtual Hosts not working

September 12, 2019 66 views
PHP LAMP Stack MySQL Apache Databases Ubuntu 18.04

After Setting Up my Virtual Hosts when i run [sudo apache2ctl configtest] i get this message below please how can i fix it ?

AH00558: apache2: Could not reliably determine the server’s fully qualified domain name, using 172.20.0.221. Set the ‘ServerName’ directive globally to suppress this message
Syntax OK
1 Answer
bobbyiliev MOD September 12, 2019
Accepted Answer

Hello,

The message that you are getting is only a warning and would not prevent your Apache and Vhost from working. As long as you get the Syntax OK at the end then the Apache restart should work as normal.

If your Virtual Host is still not working, feel free to share the content here and I could try to advise you further.

Regards,
Bobby

Have another answer? Share your knowledge.