confusedmoron
asked on
Apache2 httpd.conf problem
My dishwasher just blew up and the power in the whole house switched off. My webserver down stairs was running apache2 fine before. When I try to start apache2 now on the machine I get the error
Syntax error on line 292 of /usr/local/apache2/conf/ht tpd.conf:
The port number "http://mysite.com" is outside the appropriate range (i.e., 1..65535).
Even though on line 292 in httpd.conf
ServerName http://mysite.com
And above that is
Listen 80
So why is it doing this?
Syntax error on line 292 of /usr/local/apache2/conf/ht
The port number "http://mysite.com" is outside the appropriate range (i.e., 1..65535).
Even though on line 292 in httpd.conf
ServerName http://mysite.com
And above that is
Listen 80
So why is it doing this?
ASKER
I commented that line out and it starts fine... It's trying to read a port number from ServerName?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
That worked. Thanks! What confused me was that it was working fine before, with the http:// part. So why would it just start complain about it now?
I don't think that it ever should have worked...
The "http://mysite.com" is not regular port number i think :)
>Even though on line 292 in httpd.conf
> ServerName http://mysite.com
>And above that is
> Listen 80
Maybe something wrong hapend to your config file, edit something in it and save. If it doesn~t work try put a blank line betwen above lines.