You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Aram Mirzadeh <aw...@cv.net> on 2000/02/14 17:38:03 UTC
Strange behavior in Solaris
Does anyone have 1.3.11/12b's .htaccess working in Solaris 2.7?
The same exact configuration works under linux, but moving it over to
a solaris machine the system completely ignores .htaccess files, and
shows the content.
# cat /home/awm/apache/htdocs/.htaccess
AuthUserFile /tmp/.htpasswd
AuthGroupFile /dev/null
AuthName ByPassword
AuthType Basic
<Limit GET>
require user awm
</Limit>
# httpd -l
Compiled-in modules:
http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_autoindex.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_access.c
mod_auth.c
mod_setenvif.c
suexec: disabled; invalid wrapper /home/awm/apache/bin/suexec
Here is a truss output:
# truss -wall -rall -p 13678
fcntl(18, F_SETLKW, 0x000C5A0C) (sleeping...)
fcntl(18, F_SETLKW, 0x000C5A0C) = 0
accept(16, 0xFFBEF968, 0xFFBEF98C, 1) = 3
fcntl(18, F_SETLKW, 0x000C5A30) = 0
sigaction(SIGUSR1, 0xFFBEF820, 0xFFBEF8A0) = 0
getsockname(3, 0xFFBEF978, 0xFFBEF98C, 1) = 0
setsockopt(3, 6, 1, 0xFFBEF8DC, 4, 1) = 0
read(3, 0x000D6AE8, 4096) = 346
G E T / a p a c h e _ p b . g i f H T T P / 1 . 1\r\n A c c
e p t : * / *\r\n R e f e r e r : h t t p : / / b i d s . n
o c . c v . n e t : 8 0 8 0 /\r\n A c c e p t - L a n g u a g e
: e n - u s\r\n A c c e p t - E n c o d i n g : g z i p ,
d e f l a t e\r\n I f - M o d i f i e d - S i n c e : S u n ,
1 0 O c t 1 9 9 9 1 3 : 1 4 : 1 8 G M T\r\n I f - N o
n e - M a t c h : " 2 e 6 2 f - 9 1 6 - 3 8 0 0 9 1 2 a "\r\n
U s e r - A g e n t : M o z i l l a / 4 . 0 ( c o m p a t i
b l e ; M S I E 5 . 0 ; W i n d o w s N T ; D i g E x
t )\r\n H o s t : b i d s . n o c . c v . n e t : 8 0 8 0\r\n
C o n n e c t i o n : K e e p - A l i v e\r\n\r\n
sigaction(SIGUSR1, 0xFFBED718, 0xFFBED798) = 0
time() = 950545709
stat("/home/awm/apache/htdocs/apache_pb.gif", 0x000E3918) = 0
open("/home/awm/apache/htdocs/apache_pb.gif", O_RDONLY) = 5
poll(0xFFBEF730, 1, 0) = 0
write(3, 0x000E1808, 147) = 147
H T T P / 1 . 1 3 0 4 N o t M o d i f i e d\r\n D a t e :
M o n , 1 4 F e b 2 0 0 0 1 6 : 2 8 : 2 9 G M T\r\n
S e r v e r : A p a c h e / 1 . 3 . 1 2 - d e v ( U n i x )
\r\n C o n n e c t i o n : c l o s e\r\n E T a g : " 2 e 6 2
f - 9 1 6 - 3 8 0 0 9 1 2 a "\r\n\r\n
time() = 950545709
write(17, 0x000E4630, 84) = 84
1 6 7 . 2 0 6 . 1 1 3 . 3 9 - - [ 1 4 / F e b / 2 0 0 0 :
1 1 : 2 8 : 2 9 - 0 5 0 0 ] " G E T / a p a c h e _ p b .
g i f H T T P / 1 . 1 " 3 0 4 -\n
shutdown(3, 1, 1) = 0
poll(0xFFBEF5A8, 1, 2000) = 1
read(3, 0xFFBEF6E0, 512) = 0
close(3) = 0
sigaction(SIGUSR1, 0xFFBEF820, 0xFFBEF8A0) = 0
llseek(5, 0, SEEK_CUR) = 0
close(5) = 0
fcntl(18, F_SETLKW, 0x000C5A0C) (sleeping...)
Here is the conf file:
ServerType standalone
ServerRoot "/home/awm/apache"
PidFile /home/awm/apache/logs/httpd.pid
ScoreBoardFile /home/awm/apache/logs/httpd.scoreboard
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 1
MaxSpareServers 2
StartServers 3
MaxClients 50
MaxRequestsPerChild 0
Listen 8080
#Listen 12.34.56.78:80
Port 8080
User nobody
Group nobody
ServerAdmin awm@cv.net
ServerName bids.noc.cv.net
DocumentRoot "/home/awm/apache/htdocs"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/home/awm/apache/htdocs">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
UseCanonicalName On
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
<IfModule mod_mime.c>
TypesConfig /home/awm/apache/conf/mime.types
</IfModule>
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /home/awm/apache/conf/magic
</IfModule>
HostnameLookups Off
ErrorLog /home/awm/apache/logs/error_log
# Possible values include: debug, info, notice, warn, error, crit,
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combine
d
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /home/awm/apache/logs/access_log common
ServerSignature On
<IfModule mod_alias.c>
Alias /icons/ "/home/awm/apache/icons/"
<Directory "/home/awm/apache/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /cgi-bin/ "/home/awm/apache/cgi-bin/"
<Directory "/home/awm/apache/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</IfModule>
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing
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 CVS *,v *,t
</IfModule>
<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage ltz .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja pl pt pt-br ltz ca
es sv
</IfModule>
AddType application/x-tar .tgz
# To use CGI scripts:
#
#AddHandler cgi-script .cgi
#AddHandler send-as-is asis
#AddHandler imap-file map
#AddHandler type-map var
</IfModule>
<IfModule mod_setenvif.c>
BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0
force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0
</IfModule>
Re: Strange behavior in Solaris
Posted by Matthias Eckermann <mg...@suse.de>.
HI,
On Mon, Feb 14, 2000 at 11:38:03AM -0500 Aram Mirzadeh (awm@cv.net) wrote:
>
> Does anyone have 1.3.11/12b's .htaccess working in Solaris 2.7?
>
> The same exact configuration works under linux, but moving it over to
> a solaris machine the system completely ignores .htaccess files, and
> shows the content.
>
> # cat /home/awm/apache/htdocs/.htaccess
> suexec: disabled; invalid wrapper /home/awm/apache/bin/suexec
I guess, "/home" is NFS-mounted on the Solaris machine,
isn't it?
This will lead to unvalid user/group translations, ...
so short
MgE
--
Matthias Eckermann <mg...@suse.de>
SuSE Muenchen - Stahlgruberring 28 - D-81829 Muenchen | errare
phone +49-89-42769-0 fax +49-89-42017701 mobile +49-179-2949448 | humanum
http://www.suse.de/ http://www.suse.com/ | est
Re: Strange behavior in Solaris
Posted by Roger McCalman <ro...@runcircle.co.uk>.
I don't see an AllowOveride that enables reading of .htaccess files.
replace AllowOveride None with AllowOveride AuthConfig
Cheers, Roger
On Mon, Feb 14, 2000 at 11:38:03AM -0500, Aram Mirzadeh wrote:
>
> Does anyone have 1.3.11/12b's .htaccess working in Solaris 2.7?
>
> The same exact configuration works under linux, but moving it over to
> a solaris machine the system completely ignores .htaccess files, and
> shows the content.
>
> <Directory "/home/awm/apache/htdocs">
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>