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 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3
  • ¥15 牛顿斯科特系数表表示
  • ¥15 arduino 步进电机
  • ¥20 程序进入HardFault_Handler
  • ¥15 oracle集群安装出bug
  • ¥15 关于#python#的问题:自动化测试