nefungující odkazy na localhostu
- qteck
- Člen | 164
Ahoj,
rozhodl jsem se vylepšit jeden projektík. Stáhl jsem si ho asi po půl roce z hostingu do pc. Vytvořil jsem si projekt v netbeansu, nahodil db, stránka zahlásila chybné heslo, tak jsem to trochu poupravil. Nakonec jsem se dočkal a úvodka vypadá jak má. Problém nastal, když jsem proklikl první odkaz.
Pro ilustraci: http://www.kerouac.cz/
index funguje. Kliknu kupříkladu na první článek – na localhostu:
http://localhost/…/24-v-ulicce
a vyhodí mi to, že stránka nebyla nalezena.
k porovnání ještě fukční odkaz na hostingu:
http://www.kerouac.cz/…/24-v-ulicce
Ještě mě napadlo, že by to mohlo být způsobeno neaktivním modulem rewrite. Nebyl fajfknut, tak jsem to odklikl, ale stejně to nic nedělá.
Díky za pomoc.
- qteck
- Člen | 164
#
# Deny access to the entirety of your server's filesystem. You must
# explicitly permit access to web content directories in other
# <Directory> blocks below.
#
<Directory />
AllowOverride none
Require all granted
</Directory>
#
# Note that from this point forward you must specifically allow
# particular features to be enabled – so if something's not working as
# you might expect, make sure that you have specifically enabled it
# below.
#
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#
DocumentRoot „c:/wamp/www“
<Directory „c:/wamp/www“>
#
# Possible values for the Options directive are „None“, „All“,
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that „MultiViews“ must be named explicitly — „Options
All“
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/…od/core.html#…
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be „All“, „None“, or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
# Require all granted
# onlineoffline tag – don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Allow from ::1
Allow from localhost
</Directory>
to se zdá být v pořádku.
- qteck
- Člen | 164
Web server Apache/2.4.4 (Win64) PHP/5.4.12
PHP version 5.4.12
Memory limit 128M
.htaccess file protection Enabled
.htaccess mod_rewrite Enabled
Function ini_set() Enabled
Function error_reporting() Enabled
Function flock() Enabled
Register_globals Disabled
Variables_order Enabled
Session auto-start Enabled
PCRE with UTF-8 support Enabled
Reflection phpDoc Enabled
ICONV extension Enabled and works properly
PHP tokenizer Enabled
PDO extension Available drivers: mysql sqlite
Multibyte String extension Enabled
Multibyte String function overloading Disabled
Memcache extension Disabled
Memcache extension is absent. You will not be able to use
Nette\Caching\Storages\MemcachedStorage.
GD extension Enabled
Bundled GD extension Enabled
Fileinfo extension or mime_content_type() Disabled
Fileinfo extension or function mime_content_type() are absent. You will not be
able to determine mime type of uploaded files.
HTTP_HOST or SERVER_NAME Present
REQUEST_URI or ORIG_PATH_INFO Present
SCRIPT_NAME or DOCUMENT_ROOT & SCRIPT_FILENAME Present
REMOTE_ADDR or php_uname(„n“) Present
poslední log:
Nette\InvalidArgumentException
Template is not valid UTF-8 stream. search►
Source file ►
Call stack ▼
…/www/libs/Nette/Latte/Engine.php:54 source ► Nette\Latte\Parser-> parse (arguments ►)
inner-code Nette\Latte\Engine-> __invoke (arguments ►)
…/www/libs/Nette/common/Callback.php:78 source ► call_user_func_array (arguments ►)
…/www/libs/Nette/Templating/Template.php:153 source ► Nette\Callback-> __invoke (arguments ►)
…/www/libs/Nette/Templating/FileTemplate.php:104 source ► Nette\Templating\Template-> compile ()
…/www/libs/Nette/Application/Responses/TextResponse.php:59 source ► Nette\Templating\FileTemplate-> render ()
…/www/libs/Nette/Application/Application.php:142 source ► Nette\Application\Responses\TextResponse-> send (arguments ►)
…/www/app/bootstrap.php:40 source ► Nette\Application\Application-> run ()
30: // Create Dependency Injection container from config.neon file
31: $configurator->addConfig(__DIR__ . ‚/config/config.neon‘);
32: $container = $configurator->createContainer();
33:
34: // Setup router
35: $container->router[] = new Route(‚index.php‘, ‚Homepage:default‘,
Route::ONE_WAY);
36: $container->router[] = new
Route(‚<presenter>/<action>[/<id>]‘,
‚Homepage:default‘);
37:
38:
39: // Configure and run the application!
40: $container->application->run();
41: