18 10月 2009 @ 4:32 PM 

新しくドメインUを立てたのはいいけどApacheはすでにほかのドメインUで動いているので、もう一つ動かすのもばからしい。
ということで、フロントエンドは既存のApacheくんに任せるとして、裏でファイルサーバとつなげましょう。

NFS共有マウントが一番手っ取り早いだろうということで、ファイルサーバでNFS共有設定を行う。

nfs-kernel-serverをインストールして、/etc/exportsを以下の通り記述。

/fileserver     192.168.1.0/255.255.255.0(rw,sync,root_squash,no_subtree_check)

fileserverディレクトリのオーナーおよびグループはwww-dataユーザにしておく。
さわるのapacheくんだから。

で、apacheくんが動いている方でnfsマウント。。。できない。
あ、はい。
nfs-client入ってませんでした。

ということでここまででNFSの設定終わったんで、次にWebDAV。
VirtualDomain切ってDav onにしてベーシック認証かけるだけ。
設定は以下のような感じ。

# for file server
<IfModule mod_ssl.c>
<VirtualHost 192.168.1.x:443>
ServerName xxx.waterblue.net:443
SSLEngine on

DocumentRoot /mnt/fileserver

<Location />
DAV on
SSLRequireSSL
AuthUserFile /etc/apache2/password/davpass
AuthGroupFile /dev/null
AuthType Basic
AuthName “waterblue file server”
Require valid-user
Options FollowSymLinks
</Location>
</VirtualHost>
</IfModule>

ドキュメントルートはNFS共有マウントポイント。
htpasswdでユーザ追加してやれば利用可能ユーザが増えるという仕組み。


Posted By: ゆ。
Last Edit: 18 10月 2009 @ 04:35 PM

EmailPermalink
Tags
Tags: , ,
Categories: Linux, PC


 

Responses to this post » (None)

 
Post a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


 Last 50 Posts
 Back
Change Theme...
  • Users » 100
  • Posts/Pages » 314
  • Comments » 177
Change Theme...
  • VoidVoid « Default
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LightLight