Skocz do zawartości
BleckRider

Problem z plikiem .htaccess

Polecane posty

Witam !

 

W katalogu www. mam plik .htaccess drugi taki sam plik mam w katalogu www/admincp

oba pliki zauważyłem ze nie działają nie spełniają swoich zadań

Podejrzewam że przyczyna jest z strony serwera , czy ktoś spotkał coś podobnego

 

ustawiłem Directory w pliku sites-available/default po zmianie strona na której mam serwer off

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

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

Bardzo proszę o pomoc

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

W logach zapewne będzie o co mu chodzi.

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Kod: Zaznacz cały
[Fri Jan 06 15:13:10 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/rating, referer: http://www.kronos-sat.pl/showthread.php?t=18015
[Fri Jan 06 15:13:10 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/rating, referer: http://www.kronos-sat.pl/showthread.php?t=18015
[Fri Jan 06 15:13:10 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/rating, referer: http://www.kronos-sat.pl/showthread.php?t=18015
[Fri Jan 06 15:13:10 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/rating, referer: http://www.kronos-sat.pl/showthread.php?t=18015
[Fri Jan 06 15:13:10 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/rating, referer: http://www.kronos-sat.pl/showthread.php?t=18015
[Fri Jan 06 15:13:15 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:13:15 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:13:16 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:13:29 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:13:29 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:13:29 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:14:12 2012] [notice] caught SIGTERM, shutting down
[Fri Jan 06 15:14:13 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.4 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 06 15:14:15 2012] [error] [client 178.37.171.83] File does not exist: /var/www/admincp/admincp
[Fri Jan 06 15:14:17 2012] [error] [client 178.37.171.83] File does not exist: /var/www/admincp/images, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:14:17 2012] [error] [client 178.37.171.83] File does not exist: /var/www/admincp/images, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:14:18 2012] [error] [client 178.37.171.83] File does not exist: /var/www/admincp/images, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:14:57 2012] [notice] caught SIGTERM, shutting down
[Fri Jan 06 15:14:58 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.4 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 06 15:15:02 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:15:02 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:15:02 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:15:59 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:16:02 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:16:02 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:16:38 2012] [error] [client 217.237.88.51] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:16:39 2012] [error] [client 217.237.88.51] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:16:40 2012] [error] [client 217.237.88.51] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:00 2012] [notice] caught SIGTERM, shutting down
[Fri Jan 06 15:17:01 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.4 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 06 15:17:01 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:07 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:17:09 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:09 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:10 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:15 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:18 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:18 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:17:19 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:18:05 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:18:13 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:18:13 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:18:15 2012] [error] [client 217.237.88.51] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:18:31 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:18:36 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:37 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:18:37 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:18:37 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:18:37 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:38 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:18:38 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:39 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:40 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:41 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:42 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:18:43 2012] [error] [client 178.37.171.83] client denied by server configuration: /var/www/.htaccess
[Fri Jan 06 15:19:05 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:19:10 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:19:10 2012] [error] [client 109.199.3.155] client denied by server configuration: /var/www/.htaccess, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:19:17 2012] [notice] caught SIGTERM, shutting down
[Fri Jan 06 15:19:18 2012] [notice] Apache/2.2.17 (Ubuntu) PHP/5.3.5-1ubuntu7.4 with Suhosin-Patch configured -- resuming normal operations
[Fri Jan 06 15:19:22 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:19:22 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:19:22 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/
[Fri Jan 06 15:19:36 2012] [error] [client 50.19.152.219] File does not exist: /var/www/software-207
[Fri Jan 06 15:19:40 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:19:40 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:19:40 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:19:49 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/member.php?u=1171
[Fri Jan 06 15:19:49 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/member.php?u=1171
[Fri Jan 06 15:19:49 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/member.php?u=1171
[Fri Jan 06 15:20:06 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/forumdisplay.php?f=47
[Fri Jan 06 15:20:07 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/forumdisplay.php?f=47
[Fri Jan 06 15:20:07 2012] [error] [client 109.199.3.155] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/forumdisplay.php?f=47
[Fri Jan 06 15:20:11 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:20:11 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:20:11 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:20:17 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/online.php
[Fri Jan 06 15:20:17 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/online.php
[Fri Jan 06 15:20:17 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/online.php
[Fri Jan 06 15:20:30 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:20:30 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/bg_tile.gif, referer: http://www.kronos-sat.pl/index.php
[Fri Jan 06 15:20:30 2012] [error] [client 178.37.171.83] File does not exist: /var/www/images/bluefox/misc/nav_start.gif, referer: http://www.kronos-sat.pl/index.php

 

Za bardzo nic z tego nie rozumiem

 

ustawiłem Directory w pliku sites-available/default po zmianie strona na której mam serwer off

 

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

 

Internal Server Error

 

The server encountered an internal error or misconfiguration and was unable to complete your request.

 

Please contact the server administrator, webmaster@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

 

More information about this error may be available in the server error log.

 

Dodam jescze plik z .htaccess

 

# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.xxxxxxxx\.pl
#RewriteRule (.*) http://www.xxxxxxxxxxxxxxxxxxx.pl/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

Edytowano przez BleckRider (zobacz historię edycji)

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Temat zamykam

 

Rozwiązanie znalazłem w google.Było prostrze niż mogło się wydawać.

A oto one.

1) sudo a2enmod rewrite

2) sudo gedit /etc/apache2/sites-enabled/000-default

3) Zamień AllowOverride None to AllowOverride All

4) Restart Apache: sudo /etc/init.d/apache2 force-reload

Edytowano przez BleckRider (zobacz historię edycji)

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Bądź aktywny! Zaloguj się lub utwórz konto

Tylko zarejestrowani użytkownicy mogą komentować zawartość tej strony

Utwórz konto

Zarejestruj nowe konto, to proste!

Zarejestruj nowe konto

Zaloguj się

Posiadasz własne konto? Użyj go!

Zaloguj się


×