cannot view from sub folder

pandzoel
Member | 2
+
0
-

hi, am newbie with nette

i wanna ask nette at debian linux, my apps only can view at homepage folder, another folder always error 404

please help me to resolve it

thank you

David Matějka
Moderator | 6445
+
0
-

hello, is that 404 page served by apache server or by nette?
if by apache, check that:

  • mod_rewrite is enabled
  • AllowOverride directive for your virtual host is set to All
pandzoel
Member | 2
+
0
-

David Matějka wrote:

hello, is that 404 page served by apache server or by nette?
if by apache, check that:

  • mod_rewrite is enabled
  • AllowOverride directive for your virtual host is set to All

hello,

I checked with the following script

<pre>
<?php
print_r(apache_get_modules());
?>
</pre>

now rewrite

Array
(
    [0] => core
    [1] => mod_so
    [2] => mod_watchdog
    [3] => http_core
    [4] => mod_log_config
    [5] => mod_logio
    [6] => mod_version
    [7] => mod_unixd
    [8] => mod_access_compat
    [9] => mod_alias
    [10] => mod_auth_basic
    [11] => mod_authn_core
    [12] => mod_authn_file
    [13] => mod_authz_core
    [14] => mod_authz_host
    [15] => mod_authz_user
    [16] => mod_autoindex
    [17] => mod_deflate
    [18] => mod_dir
    [19] => mod_env
    [20] => mod_filter
    [21] => mod_mime
    [22] => prefork
    [23] => mod_negotiation
    [24] => mod_php7
    [25] => mod_reqtimeout
    **[26] => mod_rewrite**
    [27] => mod_setenvif
    [28] => mod_status
)\--

my etc/apache2/apache2.conf
<Directory />
        Options FollowSymLinks
#       AllowOverride None
AllowOverride all
#       Require all granted
Require all denied
</Directory>

<Directory /usr/share>
        #AllowOverride None
AllowOverride all
        Require all granted
</Directory>

<Directory /var/www/>
Options Indexes FollowSymLinks
        Options Indexes FollowSymLinks
        AllowOverride all
#AllowOverride None
        Require all granted
</Directory>

#<Directory /srv/>
#       Options Indexes FollowSymLinks
#       AllowOverride None
#       Require all granted
#</Directory>

its ok?
please help me
thank you