Groups
Groups
Sign in
Groups
Groups
Redmine Users (japanese)
Conversations
About
Send feedback
Help
Basic認証について
2,504 views
Skip to first unread message
Youhei.F
unread,
Aug 17, 2011, 10:23:12 PM
8/17/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Redmine Users (japanese)
RedmineにBasic認証を掛けたいのですが、下記の内容と同様の不具合が発生します。
Redmineに対するベーシック認証について(250枚) - Yahoo!知恵袋
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1167407036
上記のサイトでは結局自己解決なさったそうで、解決方法が不明です。
また、
・アクセスした際に、F5などを行う前の段階で
完全なページが表示され、リンク等がたどれる
・5-6回認証を行わないと通らない
、という現象も発生しています。
何か情報をお持ちの方がいらっしゃいましたら、教えて頂ければと思います。
Ganta
unread,
Aug 18, 2011, 9:23:11 AM
8/18/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Redmine Users (japanese)
gantaです
自分も以前同じ事をしたのですが、その時のメモです。
一因として参考になれば。
BASIC認証が正しく効かない件について。
■正常動作しないパタン
Apache設定
<VirtualHost *:80>
DocumentRoot /home/uss/redmine/example/public
ServerName
redmine.example.jp
<Directory "/home/uss/redmine/example/public">
AllowOverride all
Options -MultiViews
AuthType Basic
AuthName "example"
AuthUserFile /home/uss/redmine/example/config/passwd
Require valid-user
</Directory>
</VirtualHost>
■原因
動的コンテンツのURLに対して、<Directory>で指定が効かないため。
Directoryはサーバ上のファイルパスに対してアクセス制限を掛ける。
動的コンテンツの場合、サーバ上のファイルパスへのアクセスが発生しないため、認証を通らない。
■対策
動的コンテンツのURLに対しては、<Location>で指定。
Apache(passenger)+Railsのように、動的コンテンツに対してBASIC/Digest認証を掛ける場合はLocationを使
う。
サンプルの場合、以下のように。
<VirtualHost *:80>
DocumentRoot /home/uss/redmine/example/public
ServerName
redmine.example.jp
<Directory "/home/uss/redmine/example/public">
AllowOverride all
Options -MultiViews
Order allow,deny
Allow from all
</Directory>
<Location />
AuthType Basic
AuthName "example"
AuthUserFile /home/uss/redmine/example/config/passwd
Require valid-user
</Location>
</VirtualHost>
■参考
http://d.hatena.ne.jp/paulownia/20081106/1225978286
http://blog.so-wat-cha-say.in/2010/06/rails-passengerbasic.html
http://forum.slicehost.com/comments.php?DiscussionID=2727
On 8月18日, 午前11:23, "Youhei.F" <
youhei.fu...@gmail.com
> wrote:
> RedmineにBasic認証を掛けたいのですが、下記の内容と同様の不具合が発生します。
>
> Redmineに対するベーシック認証について(250枚) - Yahoo!知恵袋
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1167407036
Youhei.F
unread,
Aug 19, 2011, 12:05:49 AM
8/19/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Redmine Users (japanese)
ganta様:
ご返信ありがとうございます。
無事にbasic認証を設定することが出来ました。
シンボリックリンクなどで動作させているときは。Locationなのですね。
apacheに関する知識不足でした。。
ありがとうございました。
> ■参考
http://d.hatena.ne.jp/paulownia/20081106/1225978286http://blog.so-wat-cha-say.in/2010/06/rails-passengerbasic.htmlhttp://forum.slicehost.com/comments.php?DiscussionID=2727
Reply all
Reply to author
Forward
0 new messages