Mailinglist Archive: opensuse (4053 mails)

< Previous Next >
Some Apache config questions
  • From: Ronald Wiplinger <ronald@xxxxxxxxx>
  • Date: Thu, 02 Aug 2001 22:17:05 +0800
  • Message-id: <>
I got some Apache config questions. My httpd.conf ends like that:


# get the server name from the Host: header
UseCanonicalName Off

# this log fomat can be split per-virtual-host based on the first field
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
CustomLog /var/log/virtual_access_log vcommon

# include the server name in the filenames used to satisfy requests
VirtualDocumentRoot /usr/local/httpd/virtual/%0/htdocs
VirtualScriptAlias /usr/local/httpd/virtual/%0/cgi-bin


# redirect the server name to onother place
VirtualDocumentRoot /usr/local/httpd/virtual/
RedirectPermanent /usr/local/httpd/virtual/
# ServerAdmin webmaster@xxxxxxxxxxxxxxxxxxxx
# DocumentRoot /www/docs/
# ServerName
# ErrorLog logs/
# CustomLog logs/ common


1. The part of the virtual domains works great, except that the cgi-directory is NOT used !!! ???
2. The redirect part I don't get to work at all. I want that a virtual domain will be redirected to another sites user directory
3. I want to use webalizer, but it is not "ready" to go with the structure of the virtual domains. Does anybody have a right config file for webalizer?

4. For some unknown reason my neomail stops to work. The error log file looks so:

[Thu Aug 2 21:31:01 2001] [notice] Apache/1.3.12 (Unix) (SuSE/Linux) ApacheJServ/1.1 mod_fastcgi/2.2.2 DAV/0.9.14 mod_perl/1.21 PHP/3.0.16 mod_ssl/2.6.2 OpenSSL/0.9.5 configured -- resuming normal operations
[Thu Aug 2 21:31:01 2001] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
Can't do setuid
[Thu Aug 2 21:31:25 2001] [error] [client] Premature end of script headers: /usr/local/httpd/cgi-bin/
[Thu Aug 2 21:31:42 2001] [error] [client] File does not exist: /usr/local/httpd/virtual/
[Thu Aug 2 21:33:50 2001] [error] [client] File does not exist: /usr/local/httpd/virtual/
[Thu Aug 2 21:33:51 2001] [error] [client] File does not exist: /usr/local/httpd/virtual/
Can't do setuid
[Thu Aug 2 21:38:54 2001] [error] [client] Premature end of script headers: /usr/local/httpd/cgi-bin/
[Thu Aug 2 21:44:21 2001] [error] [client] Client sent malformed Host header

What could be the reason that now the log file says Can't do setuid ???
With that the script cannot start and " Premature end of script headers: /usr/local/httpd/cgi-bin/" is the answer.
(I have updated some components via rpm, but I cannot rmember if a component could cause that. BTW Apache refused to upgrade via rpm with NO ERROR)

BTW, what are the other entries from a user, for _vti_inf.html files (no doubt M$, but why?)

< Previous Next >
This Thread
  • No further messages