Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 5962

Failed to connect to mydomain on port 443 with curl [closed]

$
0
0

Dear I'm trying to connect on my server via curl on my server UBUNTU , apache/2.4.41 with this commande:

curl -v https://mytest-drc-test.org/redirect.php

I have this error message

Trying 10.5.10.113:443...* connect to 10.5.10.113 port 443 failed: Connection refused* Failed to connect to mytest-drc-test.org port 443 after 0 ms: Connection refused* Closing connection 0

this the config of my file ports.conf

 Listen 80<IfModule ssl_module         Listen 443</IfModule <IfModule mod_gnutls.c         Listen 443</IfModule

my virtual host conf Version ssl sar-ssl.conf

<VirtualHost *:443           ServerName mytest-drc-test.org          ServerAdmin webmaster@localhost          DocumentRoot /var/www/html<Directory /var/www/html/       Options Indexes FollowSymLinks MultiViews      AllowOverride None      Order allow,deny      allow from all </Directory           ErrorLog ${APACHE_LOG_DIR}/error.log          CustomLog ${APACHE_LOG_DIR}/access.log combined  SSLCertificateFile /etc/letsencrypt/live/.../fullchain.pem  SSLCertificateKeyFile /etc/letsencrypt/live/sar-bot.app/privkey.pem  Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost </IfModule

my virtual version without ssl

<VirtualHost *:80           ServerName mytest-drc-test.org          ServerAdmin webmaster@localhost          DocumentRoot /var/www/html<Directory /var/www/html/     Options Indexes FollowSymLinks  MultiViews    AllowOverride None    Order allow,deny    allow from all</Directory           ErrorLog ${APACHE_LOG_DIR}/error.log          CustomLog ${APACHE_LOG_DIR}/access.log combined  RewriteEngine on RewriteCond %{SERVER_NAME} =mytest-drc-test.org  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI}  [END,NE,R=permanent]  RewriteCond %{SERVER_NAME} =mytest-drc-test.org RewriteRule ^  https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]</VirtualHost

my etc/hosts

 127.0.0.1 localhost 10.5.10.113 mytest-drc-test.org ::1 ip6-localhost ip6-loopback  fe00::0 ip6-localnet  ff00::0 ip6-mcastprefix  ff02::1 ip6-allnodes  ff02::2 ip6-allrouters  ff02::3 ip6-allhosts

Viewing all articles
Browse latest Browse all 5962

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>