httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Hartill <r...@imdb.com>
Subject Re: WWW Form Bug Report: "Multiple ScriptAliases prevents (fwd)
Date Thu, 05 Dec 1996 00:16:16 GMT

not sure if I forwarded this or not, so here it is (again)

----- Forwarded message from John Patrick Reddy -----

Message-Id: <1.5.4.32.19961204184344.00688b5c@lightning.net>
X-Sender: jreddy@lightning.net
X-Mailer: Windows Eudora Light Version 1.5.4 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 04 Dec 1996 13:43:44 -0500
To: Rob Hartill <robh@imdb.com>
From: John Patrick Reddy <jreddy@lightning.net>
Subject: Re: WWW Form Bug Report: "Multiple ScriptAliases prevents
  binding" on FreeBSD

At 01:08 AM 12/2/96 +0000, Rob Hartill wrote:
>jreddy@lightning.net wrote:
>>
>>Submitter: jreddy@lightning.net
>>Operating system: FreeBSD, version: 2.1.5
>>Version of Apache Used: 1.1.1
>>Extra Modules used: Default distribution
>>--
>>When using multiple VirtualHosts, the server will
>>not start up if there are more than 2 ScriptAlias
>>directives.  We get the error message:
>
>Apache 1.1.1 is on the way out. 1.2b1 will be released later tonight
>or tomorrow. I've never seen any other reports to suggest the ScriptAlias
>could break things. I suspect the problem is something else but you've
>only noticed it while changing scriptaliases.

Okay, I've tried Apache 1.1.1 and 1.2b1 on two seperate FreeBSD machines, 
and on a machine running Solaris 2.5.1.  The following configuration
files worked fine on the Solaris 2.5.1 under both versions of Apache, but 
did not work under either version of Apache under FreeBSD.  I would get the
error :
>----
>bind: Can't assign requested address
>httpd: could not bind to address 206.148.240.68 port 80
>----
    Please please please please tell me I'm not hallucinating.

============================================
httpd.conf
--------------------------------------------
ServerType standalone
Port 80
HostnameLookups on
User nobody
Group #-1
ServerAdmin webmaster@lightning.net
ServerRoot /usr/local/etc/httpd
ErrorLog logs/errors
TransferLog logs/access
PidFile logs/httpd.pid
ScoreBoardFile logs/apache_status
ServerName hurricane.lightning.net
Timeout 360
KeepAlive 5
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 15
StartServers 5
MaxClients 75
MaxRequestsPerChild 30
Listen 206.148.240.4:80
Listen 206.148.240.200:80
<VirtualHost www.sf4m.org>
ServerAdmin webmaster@lightning.net
DocumentRoot /usr/home/s/sf4m/web
ServerName www.sf4m.org
ErrorLog logs/sf4m.org_error
TransferLog logs/sf4m.org_access
ScriptAlias /cgi-bin /usr/home/s/sf4m/cgi-bin
</VirtualHost>
Listen 206.148.240.150:80
<VirtualHost test1.sf4m.org>
ServerAdmin webmaster@lightning.net
DocumentRoot /tmp/srv/doc/test1
ServerName test1.sf4m.org
ErrorLog logs/test1_error
TransferLog logs/test1_access
ScriptAlias /cgi-bin/ /tmp/srv/cgi/test1/
</VirtualHost>
Listen 206.148.240.151:80
<VirtualHost test2.sf4m.org>
ServerAdmin webmaster@lightning.net
DocumentRoot /tmp/srv/doc/test2
ServerName test2.sf4m.org
ErrorLog logs/test2_error
TransferLog logs/test2_access
ScriptAlias /cgi-bin/ /tmp/srv/cgi/test2/
</VirtualHost>
Listen 206.148.240.152:80
<VirtualHost test3.sf4m.org>
ServerAdmin webmaster@lightning.net
DocumentRoot /tmp/srv/doc/test3
ServerName test3.sf4m.org
ErrorLog logs/test3_error
TransferLog logs/test3_access
ScriptAlias /cgi-bin/ /tmp/srv/cgi/test3/
</VirtualHost>
============================================
access.conf
--------------------------------------------
<Directory /usr/local/etc/httpd/htdocs>
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride None
order allow,deny
allow from all
</Directory>
<Directory /usr/local/etc/httpd/cgi-bin>
AllowOverride None
Options None
</Directory>
<Location /stats>
SetHandler server-status
order deny,allow
deny from all
allow from .lightning.net
</Location>
<Directory /home/j/jreddy/public_html/cgi-bin>
AllowOverride None
Options None
</Directory>
<Directory /usr/home/s/sf4m/cgi-bin>
AllowOverride None
Options None
</Directory>
<Directory /tmp/srv/cgi/test1>
AllowOverride None
Options None
</Directory>
<Directory /tmp/srv/cgi/test2>
AllowOverride None
Options None
</Directory>
<Directory /tmp/srv/cgi/test3>
AllowOverride None
Options None
</Directory>
============================================
srm.conf
--------------------------------------------
DocumentRoot /usr/local/etc/httpd/htdocs
UserDir public_html
DirectoryIndex index.html index.shtml index.cgi home.html index.htm home.htm
FancyIndexing on
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*
AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore */.??* *~ *# */HEADER* */README* */RCS
AccessFileName .htaccess
DefaultType text/plain
AddEncoding x-compress Z
AddEncoding x-gzip gz
AddLanguage en .en
AddLanguage fr .fr
AddLanguage de .de
AddLanguage da .da
AddLanguage el .el
AddLanguage it .it
LanguagePriority en fr de
Alias /icons/ /usr/local/etc/httpd/icons/
ScriptAlias /cgi-bin/ /usr/local/etc/httpd/cgi-bin/
ScriptAlias /~jreddy/cgi-bin /home/j/jreddy/cgi-bin/
AddHandler cgi-script .cgi
AddType text/html .shtml
AddHandler server-parsed .shtml
#AddHandler send-as-is asis
AddHandler imap-file map
#AddHandler type-map var
===================================================================
John Patrick Reddy    (aka Reddy, Skip, Rand Al'Thor, Capt. Scruff)
E-Mail: jreddy@lightning.net       http://www.lightning.net/~jreddy
Snail Mail:                PO Box 4317;  Stony Brook, NY 11790-0906
===================================================================




----- End of forwarded message from John Patrick Reddy -----


Mime
View raw message