1
我有Linux服務器的問題。RewriteEngine On - 內部服務器錯誤
配置: Linux服務器3.2.0-4-686-PAE#1 SMP的Debian 3.2.65-1 + deb7u2 i686的
阿帕奇/ 2.2.22(Debian的)
PHP/5.4。 39-0 + deb7u2
ModRewrite被接通(a2enmod)
我htaccess的樣子:
<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>
當我取消#RewriteEngine在我得到內部服務器錯誤
我的網站,可以在Apache中的樣子:
<VirtualHost *:80>
ServerAdmin [email protected]
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>
你有任何想法來解決這個問題? 謝謝
你檢查了你的服務器錯誤日誌嗎? –
當然我有那裏例如:[星期一8月31日13:28:00] [錯誤] [客戶端192.168.0.23]文件不存在:/ var/www/git/refresh,referer:http:// git。 server.com/和許多這樣的。沒有更多有用的信息。 – Maximi
該文件不存在,這是真的,但在這種情況下是有htaccess。我認爲... – Maximi