0

When I try to relaunch the Apache HTTP Daemon on OS X 10.10.4 'Yosemite' using either apachectl graceful or apachectl restart via Terminal, the software spouts the following error messages:

AH00548: NameVirtualHost has no effect and will be removed in the next release /Volumes/Development/Sites/httpd-vhosts.conf:10
AH00526: Syntax error on line 1 of /Volumes/Development/Sites/ssl/ssl-shared-cert.inc:
Invalid command 'SSLEngine', perhaps misspelled or defined by a module not included in the server configuration

I suppose that resolving the first problem will simply involve removing all mentions of NameVirtualHost from HTTPD's configuration files since that directive has been deprecated and no longer does anything, but is this assumption correct?

As for the other issue, I have no idea whatsoever about how to fix it, especially since I'm absolutely sure I've enabled mod_ssl in my HTTPD configuration files, so how do I work through it?

For reference, here is a list of the configuration files which I think may be relevant to this problem.

1 Answer 1

1

Try putting the SSLEngine inside a

<VirtualHost _default_:443>
</VirtualHost>

block

16
  • To which of the files I reference should I add these lines? Or do I already have something like this in one of the configuration files I referenced indirectly? Apr 9, 2015 at 22:24
  • this would be the ssl-shared-cert.inc file. Apache also ships with a conf file for this called extra/httpd-ssl.conf.
    – Paul
    Apr 12, 2015 at 15:36
  • OK, I'll give it a whirl! Apr 12, 2015 at 17:09
  • Wait a minute: ssl-shared-cert.inc is included into a VirtualHost block inside of httpd-vhosts.conf! So why doesn't it already work? Apr 12, 2015 at 19:51
  • you're correct, but I don't know if the apache config parser is intelligent enough to see this nesting combined with the include. It might be worth to try to move the included content directly to the file instead of including it.
    – Paul
    Apr 14, 2015 at 21:14

You must log in to answer this question.

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