You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Plantier, Spencer" <sp...@stratech.com> on 2005/03/29 03:20:49 UTC

[users@httpd] ./apachectl startssl

I am new to apache and opensll but I think I finally got everything
correct here is what I have. Any help would be appreciated. 

It looks like apache will start with opensll but I am getting this
error:
Syntax error on line 250 of /usr/local/apache2/conf/ssl.conf:
Expected </VirtualHost> but saw </IfDefine>

Here is what the end of my ssl.conf looks like. 


#   Per-Server Logging:
#   The home of a custom SSL log file. Use this when you want a
#   compact non-error SSL logfile on a virtual host basis.
CustomLog /usr/local/apache2/logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<VirtualHost _default_:443>
ServerName localhost
 SSLEngine on
 SSLCertificateFile /home/ssl/localhost.cert
SSLCertificateKeyFile /home/ssl/localhost.key.unsecure
</VirtualHost>

</IfDefine>

Thanks


Spencer Plantier
System Network Administrator
 
301 Gregson Dr
Cary, NC  27511
Office 919-379-8513
Cell    919-272-8833
spencer.plantier@stratech.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] ./apachectl startssl

Posted by herauthon <he...@home.nl>.
remove the </IfDefine> ?
or there should be some <IfDefine> earlier?

----- Original Message ----- 
From: "Plantier, Spencer" <sp...@stratech.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, March 29, 2005 3:20 AM
Subject: [users@httpd] ./apachectl startssl


I am new to apache and opensll but I think I finally got everything
correct here is what I have. Any help would be appreciated. 

It looks like apache will start with opensll but I am getting this
error:
Syntax error on line 250 of /usr/local/apache2/conf/ssl.conf:
Expected </VirtualHost> but saw </IfDefine>

Here is what the end of my ssl.conf looks like. 


#   Per-Server Logging:
#   The home of a custom SSL log file. Use this when you want a
#   compact non-error SSL logfile on a virtual host basis.
CustomLog /usr/local/apache2/logs/ssl_request_log \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
<VirtualHost _default_:443>
ServerName localhost
 SSLEngine on
 SSLCertificateFile /home/ssl/localhost.cert
SSLCertificateKeyFile /home/ssl/localhost.key.unsecure
</VirtualHost>

</IfDefine>

Thanks


Spencer Plantier
System Network Administrator
 
301 Gregson Dr
Cary, NC  27511
Office 919-379-8513
Cell    919-272-8833
spencer.plantier@stratech.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: ./apachectl startssl

Posted by Joost de Heer <sa...@xs4all.nl>.
Plantier, Spencer said:
> I am new to apache and opensll but I think I finally got everything
> correct here is what I have. Any help would be appreciated.
>
> It looks like apache will start with opensll but I am getting this
> error:
> Syntax error on line 250 of /usr/local/apache2/conf/ssl.conf:
> Expected </VirtualHost> but saw </IfDefine>
>
> Here is what the end of my ssl.conf looks like.
>
>
> #   Per-Server Logging:
> #   The home of a custom SSL log file. Use this when you want a
> #   compact non-error SSL logfile on a virtual host basis.
> CustomLog /usr/local/apache2/logs/ssl_request_log \
>           "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
> <VirtualHost _default_:443>
> ServerName localhost
>  SSLEngine on
>  SSLCertificateFile /home/ssl/localhost.cert
> SSLCertificateKeyFile /home/ssl/localhost.key.unsecure
> </VirtualHost>
>
> </IfDefine>

What's before these lines? Go up until you find either a <VirtualHost> or
an <IfDefine> (unmatched by a closing tag you saw on your way back of
course). My guess (based on the comment above the CustomLog line) is that
the line 'CustomLog' is already inside a VirtualHost container, and you
created a VH-container -within- another VH-container.

Joost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org