: Apachectl -S doesn't show my virtual hosts On my little virtual development machine (CentOS Linux release 7.3.1611 in a VirtualBox), I have Apache 2.4 installed. It is running OK, but it doesn't
On my little virtual development machine (CentOS Linux release 7.3.1611 in a VirtualBox), I have Apache 2.4 installed. It is running OK, but it doesn't load my VirtualHosts.
# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Apr 12 2017 21:03:28
# apachectl configtest
Syntax OK
# systemctl status httpd
o httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Do 2017-11-16 09:37:06 CET; 8h ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 825 (httpd)
Status: "Total requests: 0; Current requests/sec: 0; Current traffic: 0 B/sec"
CGroup: /system.slice/httpd.service
+- 825 /usr/sbin/httpd -DFOREGROUND
+- ...
`-1894 /usr/sbin/httpd -DFOREGROUND
Nov 16 09:36:59 my-vbox.local systemd[1]: Starting The Apache HTTP Server...
Nov 16 09:37:06 my-vbox.local systemd[1]: Started The Apache HTTP Server.
In a sites-enabled/ directory, I have a little VirtualHost, like this:
<VirtualHost *:80>
ServerName some.host.name
DocumentRoot /some/existing/directory
</VirtualHost>
If I inject some syntax error here (e.g. changeing the closing </VirtualHost> and try to reload, I get a syntax error as expected; but with correct syntax, and after restarting, apachectl -S simply tells me - nothing. Zero lines of output. On my productive CentOS server, apachectl -S gives me a long list of virtual hosts, including the macros used.
What can I do to see my virtual hosts again?
In my "real" setup I have macros which create VirtualHosts for Zope sites which work quite nicely on the productive server; here they don't, and I can't even see them ...
More posts by @Kaufman445
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.