I had to rebuild my server from scratch, don't ask.

CentOS 7, running Apache.

I'm having difficulties setting up Virtual Hosts, using the same methods I
was using.

Here is the code snip that I place in the httpd.conf file:

<VirtualHost *:80>
    ServerName www.cmrecords.net
    ServerAlias cmrecords.net
    DocumentRoot /var/www/html/osucmeter/public_html
    ErrorLog /var/www/html/osucmeter/log
</VirtualHost>

You may ask why I'm using

DocumentRoot /var/www/html/osucmeter/public_html

instead of

DocumentRoot /var/www/osucmeter/public_html

It is because the first time around I didn't want to mess with the document
root as defined in the httpd.conf file. It did work fine.

In any case, now I'm getting an error I just can't solve when restarting
httpd:

# systemctl restart httpd
Job for httpd.service failed because the control process exited with error
code. See "systemctl status httpd.service" and "journalctl -xe" for details.

And from systemctl status httpd.service

httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor
preset: disabled)
Active: failed (Result: exit-code) since Sun 2023-02-19 21:03:46 PST; 45s
ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 14062 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited,
status=0/SUCCESS)
Process: 14067 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
(code=exited, status=1/FAILURE)
Main PID: 14067 (code=exited, status=1/FAILURE)
Feb 19 21:03:46 botteronetnet systemd[1]: Starting The Apache HTTP Server...
Feb 19 21:03:46 botteronetnet systemd[1]: httpd.service: main process
exited, code=exited, status=1/FAILURE
Feb 19 21:03:46 botteronetnet systemd[1]: Failed to start The Apache HTTP
Server.
Feb 19 21:03:46 botteronetnet systemd[1]: Unit httpd.service entered failed
state.
Feb 19 21:03:46 botteronetnet systemd[1]: httpd.service failed.

I am perplexed.


Reply via email to