I got some Apache config questions. My httpd.conf ends like that:
<---------------->
NameVirtualHost 61.219.255.186
# 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
</VirtualHost>
# redirect the server name to onother place
<VirtualHost ronald.elmit.com>
VirtualDocumentRoot /usr/local/httpd/virtual/ronald.elmit.com/htdocs
RedirectPermanent /usr/local/httpd/virtual/ronald.elmit.com/htdocs/
http://www.elmit.com/~ronald/
# ServerAdmin webmaster@host.some_domain.com
# DocumentRoot /www/docs/host.some_domain.com
# ServerName host.some_domain.com
# ErrorLog logs/host.some_domain.com-error_log
# CustomLog logs/host.some_domain.com-access_log common
</VirtualHost>
<---------------->
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 192.168.250.125] Premature end
of script headers: /usr/local/httpd/cgi-bin/neomail.pl
[Thu Aug 2 21:31:42 2001] [error] [client 192.168.250.125] File does not
exist: /usr/local/httpd/virtual/ronald.elmit.com/htdocs/
[Thu Aug 2 21:33:50 2001] [error] [client 210.85.9.247] File does not
exist: /usr/local/httpd/virtual/www.elmit.com/htdocs/_vti_inf.html
[Thu Aug 2 21:33:51 2001] [error] [client 210.85.9.247] File does not
exist:
/usr/local/httpd/virtual/www.elmit.com/htdocs/_vti_bin/shtml.exe/_vti_rpc
Can't do setuid
[Thu Aug 2 21:38:54 2001] [error] [client 192.168.250.125] Premature end
of script headers: /usr/local/httpd/cgi-bin/neomail.pl
[Thu Aug 2 21:44:21 2001] [error] [client 200.11.200.196] 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/neomail.pl" 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)
Ronald
BTW, what are the other entries from a user, for _vti_inf.html files (no
doubt M$, but why?)