?
Solved

Apache2 httpd.conf problem

Posted on 2004-10-22
5
Medium Priority
?
1,294 Views
Last Modified: 2012-08-14
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/httpd.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?
0
Comment
Question by:confusedmoron
  • 2
  • 2
5 Comments
 
LVL 5

Expert Comment

by:mrielf
ID: 12387666
>The port number "http://mysite.com" is outside the appropriate range (i.e., 1..65535).

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.


0
 

Author Comment

by:confusedmoron
ID: 12387957
I commented that line out and it starts fine...  It's trying to read a port number from ServerName?
0
 
LVL 15

Accepted Solution

by:
periwinkle earned 1000 total points
ID: 12392456
ServerName shouldn't include the http:// part, and you can specify the port there;  try either:

ServerName mysite.com

(without the http://), or:

ServerName mysite.com:80
0
 

Author Comment

by:confusedmoron
ID: 12396411
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?
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12399622
I don't think that it ever should have worked...
0

Featured Post

2018 Annual Membership Survey

Here at Experts Exchange, we strive to give members the best experience. Help us improve the site by taking this survey today! (Bonus: Be entered to win a great tech prize for participating!)

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Planning to migrate your EDB file(s) to a new or an existing Outlook PST file? This video will guide you how to convert EDB file(s) to PST. Besides this, it also describes, how one can easily search any item(s) from multiple folders or mailboxes…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
Suggested Courses
Course of the Month4 days, 10 hours left to enroll

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question