1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Pydioで共有リンクにアクセスしてもNotFoundと表示されて、ファイルが見れない対処

Posted at

どっかに書いてあるんだろうけど、どこに書いてるか気付かなかったのでメモ書き

/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」に変更して「保存」ボタンを押す。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?