Recent Changes - Search:

Главная страница

Загрузки

Домашний WiFi роутер

Проекты

Статьи

Брошенные проекты

GitHub

SourceForge

edit SideBar

H5ai

Индексатор каталогов на http сервере. Используется как персональный облачный сервис.

Установка

  • установить пакеты php5;
apt-get install libapache2-mod-php5 php5-common
  • проследить, чтобы в директории /etc/apache2/mods-enabled были ссылки на php5.load и php5.conf;
  • скачать с сайта http://larsjung.de/h5ai/ установочный архив и распаковать его содержимое в htdocs/_h5ai/;
  • в htdocs создаем ссылку да директорию с файлами (например, /storage);
root@ebox:/storage/www/www.stdio.ru-ssl/htdocs# ls -la | grep storage
lrwxrwxrwx  1 root   root         8 2014-07-29 21:40 storage -> /storage
  • добавляем в конфигурацию apache2 для нашего сайта

    <FilesMatch "\.(cgi|shtml|phtml|php)$">
        SSLOptions +StdEnvVars
    </FilesMatch>
    BrowserMatch "MSIE [2-6]" \
        nokeepalive ssl-unclean-shutdown \
        downgrade-1.0 force-response-1.0
    # MSIE 7 and newer should be able to use keepalive
    BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

    <Directory /storage/www/www.stdio.ru-ssl/htdocs/storage>
        AuthName "Authentication Required"
        AuthType Basic
        AuthUserFile /storage/www/www.stdio.ru-ssl/htdocs/.htpasswd
        Require user guest

        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        allow from all

        DirectoryIndex index.html index.php /_h5ai/server/php/index.php
    </Directory>
Edit - History - Print - Recent Changes - Search
Page last modified on February 14, 2015, at 09:32 PM