| Autor | Zpráva | ||
|---|---|---|---|
| Fisak Profil |
#1 · Zasláno: 11. 2. 2012, 13:55:11
Zdravím. Spustil sem server na localhostu bohužel se mi zobrazila chyba při nahrání mého cms:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, root@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. Ví někdo co to je ?? nebo co by to mohlo způsobovat? Předem díky za odpověď... |
||
| Tori Profil |
#2 · Zasláno: 11. 2. 2012, 14:01:26
Fisak:
Koukněte se do logů serveru. Pokud nepoužíváte virtual hosts, bude cesta k logům uvedená asi v /etc/apache2/default-server.conf, hledejte ErrorLog. (předpokládám Apache server). |
||
| Fisak Profil |
#3 · Zasláno: 11. 2. 2012, 14:02:36 · Upravil/a: Fisak
už sem zjistil že nejspíše bude problém v .httaccessu jenže bohužel nevím kde ... jinak v error logu nic neni
Options -Indexes
php_flag register_globals off
php_flag session.cookie_httponly on
ErrorDocument 404 /system/defense/error-msg.php
ErrorDocument 500 /system/defense/error-msg.php
ErrorDocument 400 /system/defense/error-msg.php
ErrorDocument 401 /system/defense/error-msg.php
ErrorDocument 403 /system/defense/error-msg.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.[[:alnum:]]+$
RewriteRule ^(.+[^/])$ /$1/ [R=301]
RewriteCond %{REQUEST_URI} !^/(images|uploads) [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)?/?([^/]+)?/?$ /?page=$1&action=$2&run=$3
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text\.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image\.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
<IfModule mod_setenvif.c>
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
# BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
# the above regex won't work. You can use the following
# workaround to get the desired effect:
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
</IfModule>
<IfModule mod_headers.c>
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
</IfModule>
</IfModule>
<FilesMatch "\.(eot|woff|ttf|svg)$">
Header set Expires "Thu, 15 Apr 2020 20:00:00 GMT"
Header set Cache-Control "public, max-age=2592000"
</FilesMatch>
<FilesMatch ".(js|css|txt)$">
Header set Cache-Control "public, max-age=604800"
</FilesMatch>
<FilesMatch ".(flv|swf|ico|gif|jpg|jpeg|png)$">
Header set Cache-Control "public, max-age=2592000"
</FilesMatch>
<FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
Header unset Cache-Control
</FilesMatch> Zjistil sem že WAMP má problém s mod_rewrite jelikož tam není nainstalovaný tak by mě zajímalo jak docílit toho aby RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.[[:alnum:]]+$
RewriteRule ^(.+[^/])$ /$1/ [R=301]
RewriteCond %{REQUEST_URI} !^/(images|uploads) [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^/]+)/([^/]+)?/?([^/]+)?/?$ /?page=$1&action=$2&run=$3<FilesMatch "\.(eot|woff|ttf|svg)$"> Header set Expires "Thu, 15 Apr 2020 20:00:00 GMT" Header set Cache-Control "public, max-age=2592000" </FilesMatch> <FilesMatch ".(js|css|txt)$"> Header set Cache-Control "public, max-age=604800" </FilesMatch> <FilesMatch ".(flv|swf|ico|gif|jpg|jpeg|png)$"> Header set Cache-Control "public, max-age=2592000" </FilesMatch> <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$"> Header unset Cache-Control </FilesMatch> |
||
| Davex Profil |
#4 · Zasláno: 11. 2. 2012, 14:34:05
Fisak:
„Zjistil sem že WAMP má problém s mod_rewrite jelikož tam není nainstalovaný“ Je nainstalovaný, ale není zapnutý. Zapni si ho v konfiguraci WAMPu. „jak docílit toho aby tam nebylo pokud mod_rewrite neni nainstalvoaný“ Pravidla uzavřeš do bloku: <IfModule mod_rewrite.c> </IfModule> „za druhý to chachování na konci nefunguje ani ve WAMPu ani ve Vrtrigu...“ Možná není zapnutý modul mod_headers. |
||
| Fisak Profil |
#5 · Zasláno: 11. 2. 2012, 14:39:36 · Upravil/a: Fisak
Davex:
díky moc Davex: ještě dotaz ten mod_headers si můžu dát taky do podmínky jako: <IfModule mod_headers.c> </IfModule> ??? |
||
| Davex Profil |
#6 · Zasláno: 11. 2. 2012, 14:42:59
Fisak:
„ještě dotaz ten mod_headers si můžu dát taky do podmínky“ Ano. Nastavení každého modulu se dá uzavřít do sekce <IfModule>.
|
||
| Fisak Profil |
#7 · Zasláno: 11. 2. 2012, 14:50:21
Davex:
dobře jetě jednou díky moc.. |
||
|
Časová prodleva: 14 let
|
|||
0