Portal Home > Knowledgebase > Articles Database > directive missing closing '>'
directive missing closing '>'
Posted by Gotte, 06-08-2012, 07:08 AM |
Hi
I am trying to enable a site in apache2 but when i try to restart apache i get the following error:
Syntax error on line 230 of /etc/apache2/apache2.conf: Syntax error on line 20 of /etc/apache2/sites-enabled/zynkron.com: directive missing closing '>'
Now the said line in sites-enabled/zynkron.com reads:
because my start tag is so if I remove the * I will get an error about mixing * and non* ports not being supported, so that's not an option.
Can anyone help me please?
Anders
|
Posted by mike86, 06-08-2012, 07:42 AM |
The end tag is , not
so:
#your stuff
Last edited by mike86; 06-08-2012 at 07:46 AM.
|
Posted by Gotte, 06-08-2012, 08:09 AM |
As i wrote at the end of my post, if i dont have the * in my endtag i get another error saying it should be there...
|
Posted by mike86, 06-08-2012, 08:10 AM |
Please post the whole tag you are creating.
Take a look here:
http://httpd.apache.org/docs/2.0/mod...amevirtualhost
What you want is:
NameVirtualHost *:80
ServerName zynkron.com
# ...extra stuff
Last edited by mike86; 06-08-2012 at 08:16 AM.
|
Posted by Gotte, 06-09-2012, 06:49 AM |
I do not use the nameVirtualHost line. I followed this guide debian-administration.org/articles/412
The entire sites-available file looks like this:
ServerAdmin webmaster@zynkron.com
ServerName zynkron.com
ServerAlias zynkron.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/zynkron.com/htdocs/
# CGI Directory
ScriptAlias /cgi-bin/ /var/www/zynkron.com/cgi-bin/
Options +ExecCGI
# Logfiles
ErrorLog /var/www/zynkron.com/logs/error.log
CustomLog /var/www/zynkron.com/logs/access.log combined
Thanks for helping
|
Add to Favourites Print this Article
Also Read