httpd-vhost.conf contains #127.0.0.1

Duboux

Verified User
Joined
Apr 20, 2007
Messages
264
Does any of you have "#127.0.0.1" within your <VirtualHost> containers ?

Code:
<VirtualHost [B][COLOR="#FF0000"]#127.0.0.1[/COLOR][/B] 888.888.888.888:80>
    ServerAdmin webmaster@localhost
    AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
    DocumentRoot /var/www/html
    ServerName localhost
    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    CustomLog /var/log/httpd/homedir.log homedir
</VirtualHost>

<VirtualHost [B][COLOR="#FF0000"]#127.0.0.1[/COLOR][/B] 888.888.888.888:443>
    ServerAdmin webmaster@localhost
    AliasMatch ^/~([^/]+)(/.*)* "/home/$1/public_html$2"
    DocumentRoot /var/www/html
    ServerName localhost
    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    CustomLog /var/log/httpd/homedir.log homedir

    SSLEngine on
    SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt
    SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key
</VirtualHost>
(888.888.888.888 being my "server-ip")

I haven't placed this #127.0.0.1 in there.
And when starting/restarting Apache, it gives me this output:
[core:error] [pid 17285] (EAI 2)Name or service not known: AH00547: Could not resolve host name #127.0.0.1 -- ignoring!
 
My guess is you screwed up your template file. Check /usr/local/directadmin/data/templates/custom
 
I only have a custom dns_ns.conf file in there.
|NS1|=|DOMAIN|.
|NS2|=|DOMAIN|.
ns3.<server-domain>.|DOMAIN|.

Could I remove the #127.0.0.1 part ?
 
Back
Top