Apache not loading correct config it seems
Posted: 2018/02/21 15:16:19
Hello,
I am using CentOs 7 and have it running for quite some time now. Months ago I noticed a problem that when rebooting the server my configuration for Apache was incorrect. Is was not loading all the Vhost and was only showing the default welcome page or the 'index of /' webpage. I found out that after a (couple of) reboot it somehow somewhy started working again. But now I have restarted the server again and I cannot get it to work anymore. I think it is not loading the correct configuration. I used this website to set up my server: https://www.digitalocean.com/community/ ... n-centos-7
Now I have in my /etc/httpd/conf/conf.d the 'correct' configuration. That is where all the virtualhosts are loaded. But now it seems somehow that httpd when started is loading the configuration from /usr/local/apache/conf/conf.d.
I tried creating a symbolic link for the /usr one to the /etc one but then I got all kind of other errors. I have set a complete backup back. I have uninstalled httpd (manually removed both directories), reinstalled it and copied the config back. But somehow it just does not work. It seems not to load my config from the sites-enabled directories. Even though, when I do "apachectl configtest" I do get some warnings from my virtualhosts it seems.
I have no clue how I can get my sites to show up correctly again. Does anyone have any pointers of what I could do to do further troubleshooting? Thanks in advance!
I am using CentOs 7 and have it running for quite some time now. Months ago I noticed a problem that when rebooting the server my configuration for Apache was incorrect. Is was not loading all the Vhost and was only showing the default welcome page or the 'index of /' webpage. I found out that after a (couple of) reboot it somehow somewhy started working again. But now I have restarted the server again and I cannot get it to work anymore. I think it is not loading the correct configuration. I used this website to set up my server: https://www.digitalocean.com/community/ ... n-centos-7
Now I have in my /etc/httpd/conf/conf.d the 'correct' configuration. That is where all the virtualhosts are loaded. But now it seems somehow that httpd when started is loading the configuration from /usr/local/apache/conf/conf.d.
I tried creating a symbolic link for the /usr one to the /etc one but then I got all kind of other errors. I have set a complete backup back. I have uninstalled httpd (manually removed both directories), reinstalled it and copied the config back. But somehow it just does not work. It seems not to load my config from the sites-enabled directories. Even though, when I do "apachectl configtest" I do get some warnings from my virtualhosts it seems.
I have no clue how I can get my sites to show up correctly again. Does anyone have any pointers of what I could do to do further troubleshooting? Thanks in advance!