2 домена и '500 internal server error'

bartleby

Создатель
Регистрация
10 Янв 2012
Сообщения
34
Реакции
0
доброго время суток,
стою перед проблемой с "500 Internal Server Error"!

на виртуальном стоит "webmin" на debian+apche2+nginx.
-сделал первого юзера, работает нормально.
-сделал второго. появились проблемы...

на втором домене стоит ДЛЕ сайт и как только залью ".htaccess" то вылазит "500 Internal Server Error".
+ залитые фаилы/папки заменить немогу, надо старые сначала стереть!

"/etc/apache2/site-available/mysite.conf" у обоих одинаковые.
"AllowOverride All"

подскажите чтоза хрень?
 
уберите в htaccess директивы типа php_flag, php_value, оставьте только реврайты
 
дык у меня в 'дле' такого нету.
 
ну покажи свой хтаксес тогда. И mod_rewrite установлен?
 
да стандартный htaccess, я его и не менял.
Код:
DirectoryIndex index.php
 
RewriteEngine On
 
# Redirects
RewriteRule ^page/(.*)$ index.php?cstart=$1 [L]
 
# Post
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),([0-9]+),(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&cstart=$5&news_name=$6 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page,([0-9]+),(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/print:page,([0-9]+),(.*).html(/?)+$ engine/print.php?subaction=showfull&year=$1&month=$2&day=$3&news_page=$4&news_name=$5 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*).html(/?)+$ index.php?subaction=showfull&year=$1&month=$2&day=$3&news_name=$4 [L]
 
RewriteRule ^([^.]+)/page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$4&news_page=$2&cstart=$3&seourl=$5&seocat=$1 [L]
RewriteRule ^([^.]+)/page,([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$3&news_page=$2&seourl=$4&seocat=$1 [L]
RewriteRule ^([^.]+)/print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$ engine/print.php?news_page=$2&newsid=$3&seourl=$4&seocat=$1 [L]
RewriteRule ^([^.]+)/([0-9]+)-(.*).html(/?)+$ index.php?newsid=$2&seourl=$3&seocat=$1 [L]
 
RewriteRule ^page,([0-9]+),([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$3&news_page=$1&cstart=$2&seourl=$4 [L]
RewriteRule ^page,([0-9]+),([0-9]+)-(.*).html(/?)+$ index.php?newsid=$2&news_page=$1&seourl=$3 [L]
RewriteRule ^print:page,([0-9]+),([0-9]+)-(.*).html(/?)+$ engine/print.php?news_page=$1&newsid=$2&seourl=$3 [L]
RewriteRule ^([0-9]+)-(.*).html(/?)+$ index.php?newsid=$1&seourl=$2 [L]
 
# For day
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})(/?)+$ index.php?year=$1&month=$2&day=$3 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/page/([0-9]+)(/?)+$ index.php?year=$1&month=$2&day=$3&cstart=$4 [L]
# For all months
RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ index.php?year=$1&month=$2 [L]
RewriteRule ^([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$ index.php?year=$1&month=$2&cstart=$3 [L]
# Output for the entire year
RewriteRule ^([0-9]{4})(/?)+$ index.php?year=$1 [L]
RewriteRule ^([0-9]{4})/page/([0-9]+)(/?)+$ index.php?year=$1&cstart=$2 [L]
# Output for tags
RewriteRule ^tags/([^/]*)(/?)+$ index.php?do=tags&tag=$1 [L]
RewriteRule ^tags/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=tags&tag=$1&cstart=$2 [L]
# поиск по доп полям
RewriteRule ^xfsearch/([^/]*)(/?)+$ index.php?do=xfsearch&xf=$1 [L]
RewriteRule ^xfsearch/([^/]*)/page/([0-9]+)(/?)+$ index.php?do=xfsearch&xf=$1&cstart=$2 [L]
# Output for users
RewriteRule ^user/([^/]*)/rss.xml$ engine/rss.php?subaction=allnews&user=$1 [L]
RewriteRule ^user/([^/]*)(/?)+$ index.php?subaction=userinfo&user=$1 [L]
RewriteRule ^user/([^/]*)/page/([0-9]+)(/?)+$ index.php?subaction=userinfo&user=$1&cstart=$2 [L]
RewriteRule ^user/([^/]*)/news(/?)+$ index.php?subaction=allnews&user=$1 [L]
RewriteRule ^user/([^/]*)/news/page/([0-9]+)(/?)+$ index.php?subaction=allnews&user=$1&cstart=$2 [L]
RewriteRule ^user/([^/]*)/news/rss.xml(/?)+$ engine/rss.php?subaction=allnews&user=$1 [L]
# Output for last news
RewriteRule ^lastnews/(/?)+$ index.php?do=lastnews [L]
RewriteRule ^lastnews/page/([0-9]+)(/?)+$ index.php?do=lastnews&cstart=$1 [L]
# Output for catalog
RewriteRule ^catalog/([^/]*)/rss.xml$ engine/rss.php?catalog=$1 [L]
RewriteRule ^catalog/([^/]*)(/?)+$ index.php?catalog=$1 [L]
RewriteRule ^catalog/([^/]*)/page/([0-9]+)(/?)+$ index.php?catalog=$1&cstart=$2 [L]
# Output for new posts
RewriteRule ^newposts(/?)+$ index.php?subaction=newposts [L]
RewriteRule ^newposts/page/([0-9]+)(/?)+$ index.php?subaction=newposts&cstart=$1 [L]
# Output for favorites news
RewriteRule ^favorites(/?)+$ index.php?do=favorites [L]
RewriteRule ^favorites/page/([0-9]+)(/?)+$ index.php?do=favorites&cstart=$1 [L]
 
RewriteRule ^rules.html$ index.php?do=rules [L]
RewriteRule ^statistics.html$ index.php?do=stats [L]
RewriteRule ^addnews.html$ index.php?do=addnews [L]
RewriteRule ^rss.xml$ engine/rss.php [L]
RewriteRule ^sitemap.xml$ uploads/sitemap.xml [L]
 
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^.]+)/page/([0-9]+)(/?)+$ index.php?do=cat&category=$1&cstart=$2 [L]
RewriteRule ^([^.]+)/?$ index.php?do=cat&category=$1 [L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)/rss.xml$ engine/rss.php?do=cat&category=$1 [L]
RewriteRule ^page,([0-9]+),([^/]+).html$ index.php?do=static&page=$2&news_page=$1 [L]
RewriteRule ^print:([^/]+).html$ engine/print.php?do=static&page=$1 [L]
 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+).html$ index.php?do=static&page=$1 [L]

мод помоему забыл я. гляну!

edit
кстати мод стоит.
ну а если-бы не стоял, почему первый домен работает????
 
да, стандартный хтаксес. логи ошибок в студию.
 
ну вот последние 20 строк

Код:
[Wed Feb 29 18:16:50 2012] [error] [client 151.60.104.] File does not exist: /home/mustov/public_html/02.jpg, referer: http://my.tdl
[Wed Feb 29 18:16:50 2012] [error] [client 151.60.104.] File does not exist: /home/mustov/public_html/03.jpg, referer: http://my.tdl
[Wed Feb 29 18:16:50 2012] [warn] [client 66.249.72.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62
[Wed Feb 29 18:16:50 2012] [error] [client 93.232.217.] File does not exist: /home/mustov/public_html/templates/mustov/images/rss_taib.png, referer: http://www.my.tdl
[Wed Feb 29 18:16:50 2012] [error] [client 151.60.104.] File does not exist: /home/mustov/public_html/templates/mustov/images/logo.gif, referer: http://my.tdl
[Wed Feb 29 18:16:50 2012] [error] [client 151.60.104.] File does not exist: /home/mustov/public_html/templates/mustov/images/rss_taib.png, referer:http://my.tdl
[Wed Feb 29 18:16:50 2012] [warn] [client 31.148.247.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62
[Wed Feb 29 18:16:51 2012] [error] [client 151.60.104.] File does not exist: /home/mustov/public_html/01.jpg, referer: http://my.tdll
[Wed Feb 29 18:16:51 2012] [error] [client 60.53.2.] File does not exist: /home/mustov/public_html/templates/mustov/images/rss_taib.png, referer: http://my.tdl
[Wed Feb 29 18:16:51 2012] [warn] [client 66.249.72.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62
[Wed Feb 29 18:16:51 2012] [warn] [client 89.0.150.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62, referer: http://my.tld
[Wed Feb 29 18:16:51 2012] [warn] [client 31.148.247.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62
[Wed Feb 29 18:16:51 2012] [error] [client 89.0.150.] File does not exist: /home/mustov/public_html/templates/mustov/images/logo.gif, referer: http://my.tdl
[Wed Feb 29 18:16:52 2012] [warn] [client 85.10.235.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62, referer: http://www.my.tdl
[Wed Feb 29 18:16:52 2012] [warn] [client 85.10.235.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 72, referer: http://www.my.tdl
[Wed Feb 29 18:16:52 2012] [error] [client 109.226.147.] File does not exist: /home/mustov/public_html/02.jpg, referer: http://www.my.tdl
[Wed Feb 29 18:16:52 2012] [error] [client 109.226.147.] File does not exist: /home/mustov/public_html/01.jpg, referer: http://www.my.tdl
[Wed Feb 29 18:16:52 2012] [error] [client 109.226.147.] File does not exist: /home/mustov/public_html/03.jpg, referer: http://www.my.tdl
[Wed Feb 29 18:16:52 2012] [warn] [client 66.249.72.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62
[Wed Feb 29 18:16:53 2012] [warn] [client 31.148.247.] mod_fcgid: stderr: PHP Deprecated:  Function eregi() is deprecated in /home/mustov/public_html/engine/modules/partner.php on line 62
 
mod_fcgid поставьте попробуйте. или поставьте сервак, чтобы php обрабатывался apache а не cgi
 
да включено это "fcgid Enabled"
 
Назад
Сверху