2016-01-31 3 views
2

Я пытаюсь установить vBulletin5 на свой компьютер. Я ухожу Ларагон. Я получил 500 Internal Server Error. Когда я удаляю .htaccess, все работает нормально до завершения установки.
Вот .htaccessvBulletin 5.x.x 500 Внутренняя ошибка сервера

<IfModule mod_rewrite.c> 
    RewriteEngine On 

    #In some cases where you have other mod_rewrite rules, you may need to comment out the following line 
    #and change it to match your folder name. This resets the other mod_rewrite rules for just this directory 
    #If your site was www.example.com/forum, the setting would be /forum/ 
    #RewriteBase/

    # Send css calls directly to the correct file VBV-7807 
    RewriteRule ^css.php$ core/css.php [NC,L] 

    # Redirect old install path to core. 
    RewriteRule ^install/ core/install/ [NC,L] 

    # Main Redirect 
    RewriteCond %{REQUEST_URI} !\.(gif|jpg|jpeg|png|css)$ 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*)$ index.php?routestring=$1 [L,QSA] 

    # Because admincp is an actual directory. 
    RewriteRule ^(admincp/)$ index.php?routestring=$1 [L,QSA] 

</IfModule> 

<IfModule mod_deflate.c> 
    AddOutputFilterByType DEFLATE application/atom+xml \ 
          text/javascript \ 
          application/x-javascript \ 
          application/javascript \ 
          application/json \ 
          application/rss+xml \ 
          application/vnd.ms-fontobject \ 
          application/x-font-ttf \ 
          application/xhtml+xml \ 
          application/xml \ 
          font/opentype \ 
          image/svg+xml \ 
          image/x-icon \ 
          text/css \ 
          text/html \ 
          text/plain \ 
          text/x-component \ 
          text/xml 
</IfModule> 

<IfModule mod_expires.c> 
    ExpiresActive On 
    ExpiresByType application/x-javascript A1209600 
    ExpiresByType text/javascript A1209600 
    ExpiresByType application/javascript A1209600 
    ExpiresByType text/css A31536000 
    ExpiresByType image/x-icon A2592000 
    ExpiresByType image/icon A2592000 
    ExpiresByType application/x-ico A2592000 
    ExpiresByType application/ico A2592000 
    ExpiresByType image/gif A2592000 
    ExpiresByType image/jpeg A1209600 
    ExpiresByType image/jpg A1209600 
    ExpiresByType image/png A1209600 
    ExpiresByType application/x-shockwave-flash A1209600 
    ExpiresByType font/ttf A2592000 
    ExpiresByType font/otf A2592000 
    ExpiresByType font/x-woff A2592000 
    ExpiresByType image/svg+xml A2592000 
    ExpiresByType font/truetype A2592000 
    ExpiresByType font/opentype A2592000 
    ExpiresByType application/x-font-woff A2592000 
    ExpiresByType application/vnd.ms-fontobject A2592000 
</IfModule> 

<IfModule mod_headers.c> 
    Header set Connection keep-alive 
    <filesmatch "\.(ico|flv|gif|swf|eot|woff|otf|ttf|svg)$"> 
     Header set Cache-Control "max-age=2592000, public" 
    </filesmatch> 
    <filesmatch "\.(jpg|jpeg|png)$"> 
     Header set Cache-Control "max-age=1209600, public" 
    </filesmatch> 
    <filesmatch "\.(eot|woff|otf|ttf|svg)$"> 
     Header set Cache-Control "max-age=2592000, public" 
    </filesmatch> 
    # css and js should use private for proxy caching https://developers.google.com/speed/docs/best-practices/caching#LeverageProxyCaching 
    <filesmatch "\.(css)$"> 
     Header set Cache-Control "max-age=31536000, private" 
    </filesmatch> 
    <filesmatch "\.(js)$"> 
     Header set Cache-Control "max-age=1209600, private" 
    </filesmatch> 
</IfModule> 


Apache error.log

[Sun Jan 31 16:59:14.077148 2016] [core:alert] [pid 6492:tid 916] [client 127.0.0.1:63045] D:/lamp/www/forum/.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration, referer: http://forum.dev/core/install/install.php 
[Sun Jan 31 17:17:38.028320 2016] [core:alert] [pid 6492:tid 916] [client 127.0.0.1:63417] D:/lamp/www/forum/.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration 
[Sun Jan 31 17:17:38.191406 2016] [core:alert] [pid 6492:tid 916] [client 127.0.0.1:63418] D:/lamp/www/forum/.htaccess: Invalid command 'AddOutputFilterByType', perhaps misspelled or defined by a module not included in the server configuration, referer: http://forum.dev/core/install/install.php 


Может кто-нибудь помочь?

+0

См. Файлы журналов серверов, информация о том, что не так с конфигурацией, должно быть больше. И покажите свой файл .htaccess. –

+0

И что показывает журнал ошибок? –

+0

Где я могу найти журналы ошибок в Laragon? – PKa

ответ

2

просто удалить:

<IfModule mod_deflate.c> 
AddOutputFilterByType DEFLATE application/atom+xml \ 
         text/javascript \ 
         application/x-javascript \ 
         application/javascript \ 
         application/json \ 
         application/rss+xml \ 
         application/vnd.ms-fontobject \ 
         application/x-font-ttf \ 
         application/xhtml+xml \ 
         application/xml \ 
         font/opentype \ 
         image/svg+xml \ 
         image/x-icon \ 
         text/css \ 
         text/html \ 
         text/plain \ 
         text/x-component \ 
         text/xml 
</IfModule> 

Есть несовместимость с mod_deflate и mod_filter между версиями Apache 2,2 и 2,4

Вам нужны три модуля для mod_deflate работать в апача 2,4

LoadModule deflate_module modules/mod_deflate.so 
LoadModule headers_module modules/mod_headers.so 
LoadModule filter_module modules/mod_filter.so 

Так либо удалить этот блок, либо загрузить mod_filter

Смежные вопросы