You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Garth Meisel <Ga...@webostics.com> on 2003/10/19 18:56:15 UTC

[users@httpd] Virtual Name Hosting trouble

Hello all, first post.  
Running Apache2 on SuSE 8.1 Pro with all modules installed.
One site, runs fine, two or more sites on one IP address, all FDQN's, and the 
garth.conf (httpd_include_files variable) is all proper and fine.  

Howevever, NO sites at all will come up because the first site listed in the 
garth.conf will set off "Syntax error in line blah blah blah .gif or .jpg or 
even the html code when it's all perfect.  That's as in a near blank html 
page with or without even an image.  
During start Apache2 will point out syntax errors in the .header files and 
then the .common files and so on and so on.  

Am I missing a module or do I need to specially configure a module?
Or, do I have modules installed that I do not need and shouldn't have?
I'm doing basic hosting, no ssl, no real extras, no cgi etc.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Leif W <wa...@usa.net>.
> ----- Original Message ----- 
> From: "Garth Meisel" <Ga...@webostics.com>
> To: <us...@httpd.apache.org>
> Sent: Sunday, October 19, 2003 8:21 PM
> Subject: Re: [users@httpd] Virtual Name Hosting trouble
>
> So much for Apache.  Never was the only web server out there and most
> certainly was NEVER the most secure.  Thanks anyway though.  I can't deal
> with windoze users.

s/Apache/IIS/g;

You're not giving up are you?  You've got a whole list here willing to help.
:-)  No, Apache never was the only one, and any server out of the box is
never the most secure, but I don't know of any that can be made as secure as
Apache, as easily as Apache, as flexible and powerful, etc..  The most
secure web server is the one you disconnect from the web, kill the program,
and remove the source and binaries from the computer.  :-)  And windows
users?  Correct me if I'm wrong, but I believe that most Apache users are
from predominantly Unix based backgrounds, or some hybrid knowledge of both
windows and unix, but most are power users at the least, and not mere
"windoze lusers".

Anyways, from what you have posted about your problem, it would appear that
you are using the Include directive improperly, or by accident, to include
html files.  So, open up your httpd.conf in your favorite text editor (since
you dissed windows users, I'd guess it's vi or maybe emacs), and do some
text searches for the string "Include" (without the double-quotes), and see
if there's some line like "Include /srv/www/htdig/common/*".

Leif



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Benjamin Krueger <be...@seattlefenix.net>.
* Garth Meisel (Garth@webostics.com) [031019 17:17]:
> So much for Apache.  Never was the only web server out there and most 
> certainly was NEVER the most secure.  Thanks anyway though.  I can't deal 
> with windoze users.

Would you like your server to work, or would you like to continue griping
on the list and throwing up your hands like an exasperated 4 year old after
waiting only 2 hours for the list to respond? You've gotten some valuable
suggestions. Maybe you should read them.

-- 
Benjamin Krueger

Confidence is the mother of success. Cockyness is a mother of a time bomb.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Garth Meisel <Ga...@webostics.com>.
So much for Apache.  Never was the only web server out there and most 
certainly was NEVER the most secure.  Thanks anyway though.  I can't deal 
with windoze users.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Joshua Slive <jo...@slive.ca>.
On Sun, 19 Oct 2003, Garth Meisel wrote:

> >  Can you report to us EXACTLY what the error message says and EXACTLY under
> >  what circumstance you see it.  (ie, "I type xyz at the command prompt and
> >  then the following message appears on the console.")
> <polite snip>
>
> '/etc/init.d/apache2 start returned 1 (Unspecified error.)
> Starting httpd2 (worker) Syntax error on line 12 of
> /srv/www/htdig/common/nomatch.html:
> Expected
> but saw
> The command line was: /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf
> ..failed
>
> And no matter what, it will continue to point out errors whether they are
> there or NOT.  Beast me.

The question is, why is nomatch.html getting processed as a config file
during startup.  My guess is that /etc/apache2/httpd.conf is "Include"ing
it.  That wouldn't be good.  Include is to be used only for apache config
files.

So look through httpd.conf for any reference to nomatch.html and any
Include directives.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Jonas Eckerman <jo...@frukt.org>.
On Sun, 19 Oct 2003 16:08:42 -0600, Garth Meisel wrote:

> '/etc/init.d/apache2 start returned 1 (Unspecified error.)
> Starting httpd2 (worker) Syntax error on line 12 of
> /srv/www/htdig/common/nomatch.html:

The problem is that Apache is trying to load nomatch as if it is a 
config file. That's not right at all.

Could you post your httpd.conf here, or at least any include 
statements from it?

> And no matter what, it will continue to point out errors whether
> they are there or NOT.

If you're trying to load html files as config files, there will be 
errors.

/Jonas
-- 
Jonas Eckerman, jonas_lists@frukt.org
http://www.fsdb.org/



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Garth Meisel <Ga...@webostics.com>.
>  Can you report to us EXACTLY what the error message says and EXACTLY under
>  what circumstance you see it.  (ie, "I type xyz at the command prompt and
>  then the following message appears on the console.")
<polite snip>

'/etc/init.d/apache2 start returned 1 (Unspecified error.)
Starting httpd2 (worker) Syntax error on line 12 of 
/srv/www/htdig/common/nomatch.html:
Expected 
but saw 
The command line was: /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf 
..failed

And no matter what, it will continue to point out errors whether they are 
there or NOT.  Beast me.  

Thanks so far and TIA

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Virtual Name Hosting trouble

Posted by Joshua Slive <jo...@slive.ca>.
On Sun, 19 Oct 2003, Garth Meisel wrote:
> Howevever, NO sites at all will come up because the first site listed in the
> garth.conf will set off "Syntax error in line blah blah blah .gif or .jpg or
> even the html code when it's all perfect.  That's as in a near blank html
> page with or without even an image.
> During start Apache2 will point out syntax errors in the .header files and
> then the .common files and so on and so on.

Can you report to us EXACTLY what the error message says and EXACTLY under
what circumstance you see it.  (ie, "I type xyz at the command prompt and
then the following message appears on the console.")

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org