client denied by server configuration: /home/user/strona/
Brak dost
do /home/user 0755
nadałem 775 i dalej to samo.
000-default.conf
nadałem 775 i dalej to samo.
000-default.conf
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that
# the server uses to identify itself. This is used when creating
# redirection URLs. In the context of virtual hosts, the ServerName
# specifies what hostname must appear in the request's Host: header to
# match this virtual host. For the default virtual host (this file) this
# value is not decisive as it is used as a last resort host regardless.
# However, you must set it for any further virtual host explicitly.
#ServerName www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
# error, crit, alert, emerg.
# It is also possible to configure the loglevel for particular
# modules, e.g.
#LogLevel info ssl:warn
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
# For most configuration files from conf-available/, which are
# enabled or disabled at a global level, it is possible to
# include a line for only one particular virtual host. For example the
# following line enables the CGI configuration for this host only
# after it has been globally disabled with "a2disconf".
#Include conf-available/serve-cgi-bin.conf
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Zmieniasz konfigurację w /etc/apache2/sites-available/default a podajesz konfigurację apache2.conf.
Obstawiam, że ten fragment z pliku apache2.conf"jest przyczyną" braku strony.
Coś mi się wydaje, że zmieniasz na oślep, bez zrozumienia.
Obstawiam, że ten fragment z pliku apache2.conf
Kod: Zaznacz cały
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
Coś mi się wydaje, że zmieniasz na oślep, bez zrozumienia.
Może
Kod: Zaznacz cały
chmod -R 775 /home/user/strona
Kod: Zaznacz cały
<Directory />
Options FollowSymLinks
AllowOverride All
# Require all denied
</Directory>
Treść /etc/apache2/sites-availablel000-default.conf
potem restart serwera:
Kod: Zaznacz cały
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /home/user/strona/html
<Directory /home/user/strona/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Kod: Zaznacz cały
# /etc/init.d/apache2 restart
/etc/apache2/apache2.conf
/etc/apache2/sites-available/000-default.conf<Directory /> Options FollowSymLinks
AllowOverride all
Require all denied
</Directory>
przeglądarka<VirtualHost *:80> ServerAdmin webmaster@localhost
DocumentRoot /home/user/strona/html
<Directory /home/user/strona/html>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include conf-available/serve-cgi-bin.conf
</VirtualHost>
Oczywiście był restartForbidden
You don't have permission to access / on this server.
[HR][/HR]Apache/2.4.7 (Ubuntu) Server at 188.165.23.146 Port 80