@lightseeker

Почему файл ни читается сервером?

Конфигурация такая

<VirtualHost *:80>
        Servername staging.testdraftoil.nl
        ServerAlias *.staging.testdraftoil.nl staging.testdraftoil.nl

        ServerAdmin info@staging.testdraftoil.nl
        DocumentRoot /domains/staging.testdraftoil.nl/public_html
        ErrorLog /domains/staging.testdraftoil.nl/logs/error_log
        CustomLog /domains/staging.testdraftoil.nl/logs/access_log combined
        RLimitCPU 50
        RlimitMem 268435456
        SetEnvIf SSL_OFFLOADED 1 HTTPS=on
        SetEnvIf SSL-OFFLOADED 1 HTTPS=on

ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyPreserveHost On
RequestHeader set X-Real-IP "%{REMOTE_ADDR}s"

        Alias "/new-hxs-site.php" "/opt/hostingxs/branding/skeleton/index.php"
        DirectoryIndex index.htm index.html index.php new-hxs-site.php
        # PHP via fast cgi
        SuexecUserGroup testdraftoil-dev site16302
        <Directory /domains/staging.testdraftoil.nl/public_html>
                Options +ExecCGI
                AddHandler fcgid-script .php
                FcgidWrapper /var/www/wrapper/staging.testdraftoil.nl/fcgi .php
        </Directory>
        <Directory /opt/hostingxs/branding/skeleton>
                Options +ExecCGI
                AddHandler fcgid-script .php
                FcgidWrapper /var/www/wrapper/staging.testdraftoil.nl/fcgi .php
        </Directory>
        ScriptAlias /cgi-bin/ /domains/staging.testdraftoil.nl/cgi-bin/
        AddHandler cgi-wrapper .cgi
        AddHandler cgi-wrapper .pl
        AddType text/html .shtml
        AddHandler server-parsed .shtml

                        <IfModule security2_module>
                                SecAuditLogStorageDir /var/log/modsec/
                        </IfModule>
</VirtualHost>


Тут 2 вопроса

1. Почему когда я запрашиваю файл staging.testdraftoil.nl/myfile.txt ( который лежит в public_html ) у меня ошибка 404.
2. Почему /myfile.txt обрабатывается апачем, а например файл /myfile.test уже передается в порту 3000

Заранее благодарен :)
  • Вопрос задан
  • 33 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы