403 namiesto 404
Mam virtual host pre zlozky v /var/www/ a potreboval by som aby mi hocktory pristup do slozky /var/www/ hodil 404 a nie,co sa mi zatial podarilo 403 cez -Indexes,vsimol som si,ze mam pre to vytvoreny aj virtualny host, ako ,ale na to ? root@server:/etc/apache2/sites-enabled# cat 000-default
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options -Indexes FollowSymLinks MultiViews
AllowOverride
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
Pre pridávanie komentárov sa musíte prihlásiť.
skusim:
http://www.1212www.forgym.eu/forgym.eu/www/forum/treningy/treningy-vsobecne --> ide
http://www.1212www.forgym.eu --> nejde
http://www.1212www.forgym.eu/forgym.eu/www/ --> ide... ako sa zbavim tejto zaujem sytuacie?
ako sa zbavim tejto,pre mna zahadnej sytuacie? kde vlastne hladat problem?