Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

363
Views
Debian 9 Apache : Missing address for VirtualHost

i keep getting this error after running the command

# sudo apache2ctl configtest

    [Wed Mar 18 15:19:09.134018 2020] [core:error] [pid 10656:tid 140336746033216] (EAI 2)Name or service not known: AH00547: Could not resolve host name www.toutic.com: -- ignoring!
    AH00526: Syntax error on line 1 of /etc/apache2/sites-enabled/toutic.com.conf:
    Missing address for VirtualHost
    Action 'configtest' failed.
    The Apache error log may have more information.

here is the /etc/apache2/sites-enabled/toutic.com.conf file :

<VirtualHost *: 80>
    ServerAdmin admin@toutic.com
    ServerName toutic.com
    ServerAlias www.toutic.com
    DocumentRoot /var/www/toutic.com/public_html
    ErrorLog ${APACHE_LOG_DIR
}/error.log
    CustomLog ${APACHE_LOG_DIR
}/access.log combined
</VirtualHost>

here are the steps i followed : https://www.digitalocean.com/community/tutorials/how-to-install-the-apache-web-server-on-debian-9

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Remove everything and try like this:

<VirtualHost *:80>
        ServerName toutic.com
        ServerAlias www.toutic.com
        DocumentRoot /var/www/toutic.com/public_html

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!