-- update --
Issue found: nginx aint listening to 127.0.0.1 for the default domain (/etc/nginx/plesk.conf.d/ip_default/****.nl.conf).
Manualy editing the vhost file with a listen added fixed it temporary.
Need help with solution how to fix this the right way.
See post #6
I've got webapplication that uses curl to access other modules of itself on de same plesk server, same domain. But the connection is refused.
curl -v --ipv4 -I 'https://mydomain.nl'
* About to connect() to mydomain.nl port 443 (#0)
* Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
while
curl -v --ipv4 -I 'https://www.mydomain.nl'
* About to connect() to www.mydomain.nl port 443 (#0)
* Trying 33.34.35.36 (my public ip)... connected
* Connected to www.mydomain.nl (my public ip) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* subject: bla bla bla
* start date: Apr 13 00:00:00 2016 GMT
* expire date: Apr 13 23:59:59 2017 GMT
* common name: mydomain.nl
* issuer: bla bla
> HEAD / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: www.mydomain.nl
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Server: nginx
Server: nginx
< Date: Wed, 04 Jan 2017 19:57:14 GMT
Date: Wed, 04 Jan 2017 19:57:14 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 178
Content-Length: 178
< Connection: keep-alive
Connection: keep-alive
< Location: https://mydomain.nl/
Location: https://mydomain.nl/
<
* Connection #0 to host www.mydomain.nl left intact
* Closing connection #0
and other domains on the server work. My "domain.nl" without "www" is the name of the server. My guess is that my domain is translated throught the hostfile to "localhost" and nginx is not listening to localhost.
(if im on the right track) Is there a way to let nginx also listen to the localhost
Issue found: nginx aint listening to 127.0.0.1 for the default domain (/etc/nginx/plesk.conf.d/ip_default/****.nl.conf).
Manualy editing the vhost file with a listen added fixed it temporary.
Need help with solution how to fix this the right way.
See post #6
I've got webapplication that uses curl to access other modules of itself on de same plesk server, same domain. But the connection is refused.
curl -v --ipv4 -I 'https://mydomain.nl'
* About to connect() to mydomain.nl port 443 (#0)
* Trying 127.0.0.1... Connection refused
* couldn't connect to host
* Closing connection #0
curl: (7) couldn't connect to host
while
curl -v --ipv4 -I 'https://www.mydomain.nl'
* About to connect() to www.mydomain.nl port 443 (#0)
* Trying 33.34.35.36 (my public ip)... connected
* Connected to www.mydomain.nl (my public ip) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA
* Server certificate:
* subject: bla bla bla
* start date: Apr 13 00:00:00 2016 GMT
* expire date: Apr 13 23:59:59 2017 GMT
* common name: mydomain.nl
* issuer: bla bla
> HEAD / HTTP/1.1
> User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.21 Basic ECC zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> Host: www.mydomain.nl
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
HTTP/1.1 301 Moved Permanently
< Server: nginx
Server: nginx
< Date: Wed, 04 Jan 2017 19:57:14 GMT
Date: Wed, 04 Jan 2017 19:57:14 GMT
< Content-Type: text/html
Content-Type: text/html
< Content-Length: 178
Content-Length: 178
< Connection: keep-alive
Connection: keep-alive
< Location: https://mydomain.nl/
Location: https://mydomain.nl/
<
* Connection #0 to host www.mydomain.nl left intact
* Closing connection #0
and other domains on the server work. My "domain.nl" without "www" is the name of the server. My guess is that my domain is translated throught the hostfile to "localhost" and nginx is not listening to localhost.
(if im on the right track) Is there a way to let nginx also listen to the localhost
Last edited: