» »

403 Forbidden pri dostopanju lokalno

403 Forbidden pri dostopanju lokalno

Excavator ::

Če dostopam apache lokalno dobim 403 forbidden(You don't have permission to access / on this server.)
Če dostopam z zunanjim ip-jem, port forwardam port 80 dela normalno.
Vse hostam na Debian based OS-u, na Apache v2.4.25

Config imam direktno v apache2.conf, htaccess-a še nimam.

# Sets the default security model of the Apache2 HTTPD server. It does
# not allow access to the root filesystem outside of /usr/share and /var/www.
# The former is used by web applications packaged in Debian,
# the latter may be used for local directories served by the web server. If
# your system is serving content from a sub-directory in /srv you must allow
# access here, or in any related virtual host.
<Directory />
	Options FollowSymLinks
	AllowOverride All
	Require all denied
	Allow from *.*.*.*
</Directory>

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

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

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


Naj pustim apache conf tak kot je in uporabim .htaccess v /www?


Vredno ogleda ...

TemaSporočilaOglediZadnje sporočilo
TemaSporočilaOglediZadnje sporočilo
»

Apache in Node.JS

Oddelek: Izdelava spletišč
91956 (1642) dunda
»

Apache Alias pomoč

Oddelek: Omrežja in internet
91224 (1135) BlueRunner
»

Apache - localhost JA, IP naslov NE

Oddelek: Omrežja in internet
186609 (6468) ManDriver
»

kako usposbim ssl

Oddelek: Izdelava spletišč
161941 (1670) pan
»

html ali java, izpis IPja

Oddelek: Programiranje
101263 (1179) Trubadur

Več podobnih tem