Apache Web Server Cannot Stop

Asked 2 years ago, Updated 2 years ago, 57 views

at httpd.conf
#Virtual hosts
Include etc/extra/httpd-vhost.conf

Include etc/extra/httpd-vhost.conf line in stops/starts successfully, but
If you comment out, you will still be in the running state even if you stop.

Enter a description of the image here

If you try to stop using the command,

$apachectl-k stop
AH00112: Warning: DocumentRoot [/usr/docs/dummy-host.example.com] does not exist
AH00526: Syntax error on line 29 of /private/etc/apache2/extra/httpd-vhosts.conf:
Invalid command 'CustomLog', perhaps misspelled or defined by a module not included in the server configuration

and the error log appear, open /private/etc/apache2/extra/httpd-vhosts.conf and look at the appropriate places

CustomLog"/private/var/log/apache2/dummy-host.example.com-access_log"common

It is shown thatI don't remember touching this part and I don't understand what the error is.

Run Environment
Server version: Apache/2.4.33 (Unix)

I would appreciate it if someone could give me some advice.
I will provide you with any other information you need.
Thank you for your cooperation.

apache

2022-09-29 22:46

1 Answers

of https.conf,

#Virtual hosts
    Include etc/extra/httpd-vhosts.conf

where

#Virtual hosts
    Include/private/etc/apache2/extra/httpd-vhosts.conf

Then you can stop/start normally.
Thank you.


2022-09-29 22:46

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.