[arch-general] Apache Virtual Host Connection Refused Error

Steve mailman at tuxcon.com
Tue Mar 31 03:51:34 UTC 2020

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 at 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 What could I have missed?

> /etc/httpd/conf/extra/httpd-vhosts.conf

> ========================================

> <VirtualHost *:80>

>     ServerAdmin webmaster at 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
> localhost
> ::1 localhost

> Thanks!
> Matt

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 217 bytes
Desc: OpenPGP digital signature
URL: <https://lists.archlinux.org/pipermail/arch-general/attachments/20200331/a8b4f24e/attachment.sig>

More information about the arch-general mailing list