2016-03-27 21 views
1

私は、ユーザーディレクトリをLighttpdでArch Linux上で動作させようとしています。しかし、public_htmlディレクトリを作成し、index.htmlファイルを作成し、アクセス権を設定し、ユーザーディレクトリモジュールを使用するようにLighttpdを設定し、lighttpdを再起動した後、特定のユーザに対して404を与えます。これは、物事は、ユーザーaardbeiのためにどのように見えるかですLighttpd:特定のユーザーディレクトリ404

$ cat /etc/lighttpd/lighttpd.conf 
# This is a minimal example config 
# See /usr/share/doc/lighttpd 
# and  http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions 

server.port    = 80 
server.username   = "http" 
server.groupname  = "http" 
server.document-root = "/srv/http" 
server.errorlog   = "/var/log/lighttpd/error.log" 
dir-listing.activate = "enable" 
index-file.names  = ("index.html") 
mimetype.assign   = (
           ".html" => "text/html", 
           ".txt" => "text/plain", 
           ".css" => "text/css", 
           ".js" => "application/x-javascript", 
           ".jpg" => "image/jpeg", 
           ".jpeg" => "image/jpeg", 
           ".gif" => "image/gif", 
           ".png" => "image/png", 
           "" => "application/octet-stream" 
         ) 

include "conf.d/userdir.conf" 
include "conf.d/cgi.conf" 

$ cat /etc/lighttpd/conf.d/userdir.conf 
server.modules += ("mod_userdir") 
userdir.path = "public_html" 

:ここ

は私の設定ファイルがある

$ cat /home/aardbei/public_html/index.html 
doot doot 

$ ls -ld /home/aardbei/public_html 
drwxrwxrwx 2 aardbei aardbei 4096 Mar 27 13:10 /home/aardbei/public_html 

$ ls -ld /home/aardbei/public_html/index.html 
-rwxrwxrwx 1 aardbei aardbei 37 Mar 27 13:11 /home/aardbei/public_html/index.html 

しかし、たとえsudo systemctl restart lighttpdでサーバーを再起動した後、私はまだURI /~aardbei/index.htmlで404を取得し、

しかし、これはユーザーのマッドラインのようなものです:

$ cat /home/madeline/public_html/index.html 
blah blah blah 

$ ls -ld /home/madeline/public_html/ 
drwxrwxrwx 19 madeline madeline 4096 Mar 27 13:33 /home/madeline/public_html/ 

$ ls -ld /home/madeline/public_html/index.html 
-rw-r--r-- 1 madeline madeline 15 Mar 27 13:33 /home/madeline/public_html/index.html 

したがって、重要な部分は同じです。それは

何もここでは関係に見えない「何とか何とか何とか」を示しているが、ここでは2人のユーザーのためのグループです::まだURI /~madeline/index.htmlに行くと、それが何をすべきかんで何が起こっているのか

$ groups madeline 
wheel video audio wireshark madeline 
$ groups aardbei 
wheel aardbei 

は?なぜ、Lighttpdでユーザーのディレクトリが使用できないのですか? ApacheのアーチのLinuxのwiki上の指示に従い

答えて

関連する問題