Results 1 to 5 of 5
-
06-08-2012, 07:08 AM #1New Member
- Join Date
- Jun 2012
- Posts
- 3
<VirtualHost> directive missing closing '>'
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: </VirtualHost> directive missing closing '>'
Now the said line in sites-enabled/zynkron.com reads:
</VirtualHost *>
because my start tag is <VirtualHost *> 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
-
06-08-2012, 07:42 AM #2Web Hosting Master
- Join Date
- Mar 2011
- Location
- Edinburgh, UK
- Posts
- 567
The end tag is </VirtualHost> , not </VirtualHost *>
so:
<VirtualHost *:80>
#your stuff
</VirtualHost>Last edited by mike86; 06-08-2012 at 07:46 AM.
-
06-08-2012, 08:09 AM #3New Member
- Join Date
- Jun 2012
- Posts
- 3
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...
-
06-08-2012, 08:10 AM #4Web Hosting Master
- Join Date
- Mar 2011
- Location
- Edinburgh, UK
- Posts
- 567
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
<VirtualHost *:80>
ServerName zynkron.com
# ...extra stuff
</VirtualHost>Last edited by mike86; 06-08-2012 at 08:16 AM.
-
06-09-2012, 06:49 AM #5New Member
- Join Date
- Jun 2012
- Posts
- 3
.
I do not use the nameVirtualHost line. I followed this guide debian-administration.org/articles/412
The entire sites-available file looks like this:
<VirtualHost *>
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/
<Location /cgi-bin>
Options +ExecCGI
</Location>
# Logfiles
ErrorLog /var/www/zynkron.com/logs/error.log
CustomLog /var/www/zynkron.com/logs/access.log combined
</VirtualHost>
Thanks for helping
Similar Threads
-
VirtualHost directive
By ~Lee~ in forum Hosting Security and TechnologyReplies: 1Last Post: 01-14-2007, 09:22 AM -
cpanel addon domains missing / reseller accounts missing from list
By UnrealSilence in forum Hosting Security and TechnologyReplies: 17Last Post: 01-27-2006, 09:43 PM -
Extracting all <virtualhost ip></virtualhost> records from httpd.conf..
By jayzee in forum Programming DiscussionReplies: 5Last Post: 08-21-2005, 07:16 AM -
Girl Missing 6 Weeks Found, Brother Still Missing
By The Dude in forum Web Hosting LoungeReplies: 8Last Post: 07-05-2005, 04:50 PM -
<VirtualHost> directive missing closing '>'
By Fremont Servers in forum Hosting Security and TechnologyReplies: 3Last Post: 09-04-2004, 12:47 PM