doumiao0498 2015-08-31 12:16
浏览 118
已采纳

RewriteEngine On - 内部服务器错误

i have issue with Linux server.

Configuration: Linux server 3.2.0-4-686-pae #1 SMP Debian 3.2.65-1+deb7u2 i686

Apache/2.2.22 (Debian)

PHP/5.4.39-0+deb7u2

ModRewrite is turned on (a2enmod)

Me htaccess looks like:

<IfModule mod_rewrite.c>
Options -MultiViews +SymLinksIfOwnerMatch

#RewriteEngine On
RewriteBase /var/www/git

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L,NC]
</IfModule>
<Files config.ini>
order allow,deny
deny from all
</Files>

When i uncomment #RewriteEngine On i get Internal Server Error

Me sites-available in Apache looks like:

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/git
ServerName git.server.com
Alias /git /var/www/git

RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 5

<Directory /var/www/git>
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    allow from all
</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

Do you have any idea to solve the issue? Thank you

  • 写回答

1条回答 默认 最新

  • doujianzhi3358 2015-08-31 13:42
    关注

    Solved with replacing /var/www/git to /

    Anyway thanks for suggestions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 抖音咸鱼付款链接转码支付宝
  • ¥15 ubuntu22.04上安装ursim-3.15.8.106339遇到的问题
  • ¥15 求螺旋焊缝的图像处理
  • ¥15 blast算法(相关搜索:数据库)
  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥15 网络通信安全解决方案
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了