どっかに書いてあるんだろうけど、どこに書いてるか気付かなかったのでメモ書き
/etc/httpd/conf.d/pydio.conf の確認
標準では下記のようになっている
Alias /pydio /usr/share/pydio
Alias /pydio_public /var/lib/pydio/public
<Directory "/usr/share/pydio">
Options FollowSymLinks
AllowOverride Limit FileInfo
Order allow,deny
Allow from all
php_value error_reporting 2
</Directory>
<Directory "/var/lib/pydio/public">
AllowOverride Limit FileInfo
Order allow,deny
Allow from all
php_value error_reporting 2
</Directory>
で共有リンクの/pydio_public
が気にくわなかったので、/share
に変更した。
Alias /pydio /usr/share/pydio
Alias /share /var/lib/pydio/public
<Directory "/usr/share/pydio">
Options FollowSymLinks
AllowOverride Limit FileInfo
Order allow,deny
Allow from all
php_value error_reporting 2
</Directory>
<Directory "/var/lib/pydio/public">
AllowOverride Limit FileInfo
Order allow,deny
Allow from all
php_value error_reporting 2
</Directory>
/var/lib/pydio/public/.htaccess
RewriteBase
を上記の設定の/share
に変更させる
Order Deny,Allow
Allow from all
<Files ".ajxp_*">
deny from all
</Files>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /share
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)\.php$ share.php?hash=$1 [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)--([a-z]+)$ share.php?hash=$1&lang=$2 [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)$ share.php?hash=$1 [QSA]
</IfModule>
にしても何だこの空白スペースのインデントは…
Pydio の確認
管理者ユーザでログインの後、設定→「Application Core」→「Pydio Main Options」にある「DOWNLOAD FOLDER」を「/share」に変更して「保存」ボタンを押す。