Problem switching from apache to nginx and back

aristotletalks

New member
Joined
Jul 3, 2020
Messages
4
I'm trying to install varnish on cent os 7 / directadmin.

My host provider always helps me out very well, but i don't want to burden him with this.

So i switched to nginx for reverse proxy but changed my mind and switched back to apache through custom build. Before my https resolved correct for the existing domains, now they don't, apache isn't starting anymore.

Apache log:
[Thu Jul 02 21:12:04.726632 2020] [core:error] [pid 8048:tid 140572194408576] (EAI 2)Name or service not known: AH00547: Could not resolve host name MYSERVERIP:|PORT_8080| -- ignoring!
[Thu Jul 02 21:12:04.777923 2020] [ssl:warn] [pid 8048:tid 140572194408576] AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

Virtual host file in custom folder (before the virtual host line worked correctly, now not anymore):

<VirtualHost 127.0.0.1:8080 |IP|:8080 |MULTI_IP|>

|CUSTOM|
|?CGI=ScriptAlias /cgi-bin/ `DOCROOT`/cgi-bin/|
ServerName www.|HOST_DOMAIN|
ServerAlias www.|HOST_DOMAIN| |HOST_DOMAIN| |SERVER_ALIASES|
ServerAdmin |ADMIN|
DocumentRoot |DOCROOT|
|CGI|

I changed it in these files:
vi virtual_host2.conf
vi virtual_host2_sub.conf
vi virtual_host.conf


Hosts file:

cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
MYSERVERIP server.myserverdomainname.nl


I want to learn more so it's time to join this forum as it always helps me forward!
 
Back
Top