[arch-general] Apache Virtual Host Connection Refused Error
Hello list, I have a vexing problem with an Apache Virtual Host setup. In a nutshell, I have verified that apache is listening on port 80 and I have double checked my virtual host setup. Indeed, I can reach by IP address and the connection is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty much stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the correct IP address. The IP address is 149.28.50.65. What could I have missed? # /etc/httpd/conf/extra/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin webmaster@goblackcat.com.com DocumentRoot "/home/user/public_html" ServerName "goblackcat.com" ServerAlias "www.goblackcat.com" ErrorLog "/var/log/httpd/goblackcat.com-error_log" CustomLog "/var/log/httpd/goblackcat.com-access_log" common <Directory "/home/user/public_html"> Require all granted </Directory> </VirtualHost> #/etc/hosts 127.0.0.1 localhost ::1 localhost Thanks! Matt
Hi Matt, what is the result of: dig goblackcat.com at that server, where your apache is running. What about your httpd.conf? Is the etc/httpd/conf/extra/httpd-vhosts.conf there included? Greetings Klaus. -- Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet. Von: Matt Schwartz via arch-general <arch-general@archlinux.org> An: arch-general@archlinux.org Kopie: Matt Schwartz <matt.schwartz01@gmail.com> Empfangen: 31.03.2020 05:40:31 Betreff: [arch-general] Apache Virtual Host Connection Refused Error
Hello list,
I have a vexing problem with an Apache Virtual Host setup. In a nutshell, I have verified that apache is listening on port 80 and I have double checked my virtual host setup. Indeed, I can reach by IP address and the connection is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty much stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the correct IP address. The IP address is 149.28.50.65. What could I have missed?
# /etc/httpd/conf/extra/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin webmaster@goblackcat.com.com DocumentRoot "/home/user/public_html" ServerName "goblackcat.com" ServerAlias "www.goblackcat.com" ErrorLog "/var/log/httpd/goblackcat.com-error_log" CustomLog "/var/log/httpd/goblackcat.com-access_log" common
<Directory "/home/user/public_html"> Require all granted </Directory> </VirtualHost>
#/etc/hosts 127.0.0.1 localhost ::1 localhost
Thanks! Matt
-- --------------------------------------- e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net ---------------------------------------
Hello and thanks for responding. The dig shows the correct IP address. I decided to do a curl from my desktop machine to the server and it works. However, it doesn't work when using Firefox or Chromium. I think the problem might be these browsers are trying to make an SSL connection. I emptied the cache and cookies but still no luck. The problem does not appear to be my config or DNS. On Mon, Mar 30, 2020, 11:48 PM Klaus Tachtler via arch-general < arch-general@archlinux.org> wrote:
Hi Matt,
what is the result of: dig goblackcat.com at that server, where your apache is running.
What about your httpd.conf? Is the etc/httpd/conf/extra/httpd-vhosts.conf there included?
Greetings Klaus.
-- Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet.
Von: Matt Schwartz via arch-general <arch-general@archlinux.org> An: arch-general@archlinux.org Kopie: Matt Schwartz <matt.schwartz01@gmail.com> Empfangen: 31.03.2020 05:40:31 Betreff: [arch-general] Apache Virtual Host Connection Refused Error
Hello list,
I have a vexing problem with an Apache Virtual Host setup. In a nutshell, I have verified that apache is listening on port 80 and I have double checked my virtual host setup. Indeed, I can reach by IP address and the connection is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty much stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the correct IP address. The IP address is 149.28.50.65. What could I have missed?
# /etc/httpd/conf/extra/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin webmaster@goblackcat.com.com DocumentRoot "/home/user/public_html" ServerName "goblackcat.com" ServerAlias "www.goblackcat.com" ErrorLog "/var/log/httpd/goblackcat.com-error_log" CustomLog "/var/log/httpd/goblackcat.com-access_log" common
<Directory "/home/user/public_html"> Require all granted </Directory> </VirtualHost>
#/etc/hosts 127.0.0.1 localhost ::1 localhost
Thanks! Matt
--
--------------------------------------- e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net ---------------------------------------
Hi Matt, at the browser, are there secure dns over http enabled? Greetings Klaus. -- Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet. Von: Matt Schwartz via arch-general <arch-general@archlinux.org> An: General Discussion about Arch Linux <arch-general@archlinux.org> Kopie: Matt Schwartz <matt.schwartz01@gmail.com> Empfangen: 31.03.2020 06:01:44 Betreff: Re: [arch-general] Apache Virtual Host Connection Refused Error
Hello and thanks for responding. The dig shows the correct IP address. I decided to do a curl from my desktop machine to the server and it works. However, it doesn't work when using Firefox or Chromium. I think the problem might be these browsers are trying to make an SSL connection. I emptied the cache and cookies but still no luck. The problem does not appear to be my config or DNS.
On Mon, Mar 30, 2020, 11:48 PM Klaus Tachtler via arch-general < arch-general@archlinux.org> wrote:
Hi Matt,
what is the result of: dig goblackcat.com at that server, where your apache is running.
What about your httpd.conf? Is the etc/httpd/conf/extra/httpd-vhosts.conf there included?
Greetings Klaus.
-- Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet.
Von: Matt Schwartz via arch-general <arch-general@archlinux.org> An: arch-general@archlinux.org Kopie: Matt Schwartz <matt.schwartz01@gmail.com> Empfangen: 31.03.2020 05:40:31 Betreff: [arch-general] Apache Virtual Host Connection Refused Error
Hello list,
I have a vexing problem with an Apache Virtual Host setup. In a
nutshell, I
have verified that apache is listening on port 80 and I have double
checked
my virtual host setup. Indeed, I can reach by IP address and the
connection
is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty
much
stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the
correct
IP address. The IP address is 149.28.50.65. What could I have missed?
# /etc/httpd/conf/extra/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin webmaster@goblackcat.com.com DocumentRoot "/home/user/public_html" ServerName "goblackcat.com" ServerAlias "www.goblackcat.com" ErrorLog "/var/log/httpd/goblackcat.com-error_log" CustomLog "/var/log/httpd/goblackcat.com-access_log" common
<Directory "/home/user/public_html"> Require all granted </Directory> </VirtualHost>
#/etc/hosts 127.0.0.1 localhost ::1 localhost
Thanks! Matt
--
--------------------------------------- e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net ---------------------------------------
-- --------------------------------------- e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net ---------------------------------------
I have not explicitly set DNS over TLS. And I'm just using the stock Manjaro resolver. My desktop machine is Manjaro. My cloud server is Arch. Tomorrow, I'm going to just go ahead and use Let's Encrypt and enable SSL. Try to eliminate that one variable. On Tue, Mar 31, 2020, 12:05 AM Klaus Tachtler via arch-general < arch-general@archlinux.org> wrote:
Hi Matt,
at the browser, are there secure dns over http enabled?
Greetings Klaus.
-- Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet.
Von: Matt Schwartz via arch-general <arch-general@archlinux.org> An: General Discussion about Arch Linux <arch-general@archlinux.org> Kopie: Matt Schwartz <matt.schwartz01@gmail.com> Empfangen: 31.03.2020 06:01:44 Betreff: Re: [arch-general] Apache Virtual Host Connection Refused Error
Hello and thanks for responding. The dig shows the correct IP address. I decided to do a curl from my desktop machine to the server and it works. However, it doesn't work when using Firefox or Chromium. I think the problem might be these browsers are trying to make an SSL connection. I emptied the cache and cookies but still no luck. The problem does not appear to be my config or DNS.
On Mon, Mar 30, 2020, 11:48 PM Klaus Tachtler via arch-general < arch-general@archlinux.org> wrote:
Hi Matt,
what is the result of: dig goblackcat.com at that server, where your apache is running.
What about your httpd.conf? Is the etc/httpd/conf/extra/httpd-vhosts.conf there included?
Greetings Klaus.
-- Diese Nachricht wurde von meinem Android-Gerät mit FairMail gesendet.
Von: Matt Schwartz via arch-general <arch-general@archlinux.org> An: arch-general@archlinux.org Kopie: Matt Schwartz <matt.schwartz01@gmail.com> Empfangen: 31.03.2020 05:40:31 Betreff: [arch-general] Apache Virtual Host Connection Refused Error
Hello list,
I have a vexing problem with an Apache Virtual Host setup. In a
nutshell, I
have verified that apache is listening on port 80 and I have double
checked
my virtual host setup. Indeed, I can reach by IP address and the
connection
is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty
much
stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the
correct
IP address. The IP address is 149.28.50.65. What could I have missed?
# /etc/httpd/conf/extra/httpd-vhosts.conf <VirtualHost *:80> ServerAdmin webmaster@goblackcat.com.com DocumentRoot "/home/user/public_html" ServerName "goblackcat.com" ServerAlias "www.goblackcat.com" ErrorLog "/var/log/httpd/goblackcat.com-error_log" CustomLog "/var/log/httpd/goblackcat.com-access_log" common
<Directory "/home/user/public_html"> Require all granted </Directory> </VirtualHost>
#/etc/hosts 127.0.0.1 localhost ::1 localhost
Thanks! Matt
--
--------------------------------------- e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net ---------------------------------------
--
--------------------------------------- e-Mail : klaus@tachtler.net Homepage: https://www.tachtler.net DokuWiki: https://dokuwiki.tachtler.net ---------------------------------------
Also not sure if ServerName and ServerAlias should be in quotes - I've never seen them or used them in quotes; have you tried without? ‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐ On Tuesday, March 31, 2020 2:09 PM, Matt Schwartz via arch-general <arch-general@archlinux.org> wrote:
Hello list,
I have a vexing problem with an Apache Virtual Host setup. In a nutshell, I have verified that apache is listening on port 80 and I have double checked my virtual host setup. Indeed, I can reach by IP address and the connection is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty much stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the correct IP address. The IP address is 149.28.50.65. What could I have missed?
/etc/httpd/conf/extra/httpd-vhosts.conf
========================================
<VirtualHost *:80>
ServerAdmin webmaster@goblackcat.com.com DocumentRoot "/home/user/public_html" ServerName "goblackcat.com" ServerAlias "www.goblackcat.com" ErrorLog "/var/log/httpd/goblackcat.com-error_log" CustomLog "/var/log/httpd/goblackcat.com-access_log" common
<Directory "/home/user/public_html">
Require all granted </Directory>
</VirtualHost>
#/etc/hosts 127.0.0.1 localhost ::1 localhost
Thanks! Matt
Excerpts from Matt Schwartz via arch-general's message of March 30, 2020 8:39 pm:
Hello list,
I have a vexing problem with an Apache Virtual Host setup. In a nutshell, I have verified that apache is listening on port 80 and I have double checked my virtual host setup. Indeed, I can reach by IP address and the connection is logged under the virtual host. However, when I try to use the domain name, I get a connection refused error. The httpd.conf file is pretty much stock with the exception of uncommenting the userdir stuff and the vhosts line at the bottom. I pretty much followed the article on the wiki. I am leaning towards a DNS issue but my domain properly resolves to the correct IP address. The IP address is 149.28.50.65. What could I have missed?
The domain goblackcat.com and all subdomains are on the HSTS preload list. You _cannot_ serve unsecured HTTP content from those domains; all current modern browsers will refuse to read it. Removing a domain from the HSTS preload is difficult and time-consuming, but can be done at https://hstspreload.org/. I would recommend just setting up Let's Encrypt.
participants (4)
-
Klaus Tachtler
-
Matt Schwartz
-
Pat Burroughs (Celti)
-
Steve