0

please assist my apache2 test is failing below is the error that i get

Syntax error on line 219 of /etc/apache2/apache2.conf: 
Syntax error on line 1 of /etc/apache2/sites-enabled/000-default.conf: 
/etc/apache2/sites-enabled/000-default.conf:1: <Virtual> was not closed.

Thank you in advance

1 Answer 1

0

Here's your issue:

/etc/apache2/sites-enabled/000-default.conf:1: <Virtual> was not closed.

edit your 000-default.conf file to correct the virtual host block, close it properly.

8
  • If you're unsure what to do exactly - it may also help if you copy your config here, so someone can get it corrected properly for you. But that shouldn't be really a difficult fix for you anyway.
    – Jacek
    Jan 14, 2016 at 11:04
  • Hi, the file is empty
    – Tefo Theo
    Jan 14, 2016 at 11:18
  • That's a bit bizarre, I'd say. You can disable this config if you don't use it (a2dissite 000-default). But all the rest depends actually on what exactly you're after with your apache installation - it may be worth to have a quick reading on VirtualHost configuration in apache.
    – Jacek
    Jan 14, 2016 at 11:33
  • <VirtualHost *:80> ServerName rt:80 redirect /rt.localhost #ServerAdmin webmaster@localhost #DocumentRoot /var/www do find the code
    – Tefo Theo
    Jan 14, 2016 at 11:42
  • I see - you have to close the section with </VirtualHost>, as far as I see.
    – Jacek
    Jan 14, 2016 at 11:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .