I'm setting up a web server on an old OpenBSD machine, and am getting an error each time I try to start Apache. The server refused to start after I added my virtual host with HTTPS.
Error
could not resolve host "10.0.1.120:50720" port "https" --- no address associated with name
usr/sbin/apachectl start: httpd could not be started
Virtual Host Configuration
My virtual host configuration is below (/var/www/conf/vhosts/[file].conf
)
Listen 10.0.1.120:50720 https
<VirtualHost *:80>
ServerName [url]
DocumentRoot /var/www/[url]/public_html
</VirtualHost>
<VirtualHost 10.0.1.120:50720>
ServerName [url]
DocumentRoot /var/www/[url]/public_html
ErrorLog /var/www/[url]/error_log
TransferLog /var/www/[url]/access_log
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM
SSLCertificateFile /var/www/[url]/ssl.crt
SSLCertificateKeyFile /var/www/[url]/ssl.key
SSLCertificateChainFile /var/www/[url]/[ca.pem]
SSLCACertificateFile /var/www/[url]/ca.pem
SSLCACertificateFile /var/www/[url]/ca.pem
<Directory "/var/www/[url]/public_html">
AllowOverride All
</Directory>
</VirtualHost>
Network Details
I'm running behind a firewall with a dynamic IP address.
I have an A record pointing to my dynamic IP address.
In the firewall, port 80 and 50720 (along with others) are pointed at my local IP address (10.0.1.50720) statically assigned via MAC address in DHCP
Other Attempts
I've used wildcard IP addresses (Listen *:50720 https
), and get the same error
Has anyone encountered this before? I didn't find much on Google with this error message (apache "could not resolve host" "no address with name"
, etc.)
I'm happy to give more details if it would help.
Clarifications
[url]
is[subdomain].[subdomain].[domain].us
. I have an A record pointing to my dynamic public IP address.- I have not edited my
/etc/hosts
file, I have not had to do that on any server before when setting up virtual hosts (including ones with SSL)