P
P
partisan422019-05-07 13:44:23
Apache HTTP Server
partisan42, 2019-05-07 13:44:23

How to defeat 403 from Apache?

Good day to all.
Please help me understand what I'm doing wrong?
Installed on pure CentOS, NextCloud.
I don’t know if it’s possible here, but I did everything according to the listing https://clck.ru/FuC3Q
As a result, when I access the server’s ip address, I get a 403 error.
Here is the content of /etc/httpd/conf.d/nextcloud.conf

<VirtualHost *:80>
  ServerName 10.10.10.228
  ServerAdmin [email protected]
  DocumentRoot /var/www/html/nextcloud
  <directory /var/www/html/nextcloud>
    Require all granted
    AllowOverride All
    Options FollowSymLinks MultiViews
    SetEnv HOME /var/www/html/nextcloud
    SetEnv HTTP_HOME /var/www/html/nextcloud
  </directory>
</VirtualHost>

Previously did chown apache:apache -R /var/www/html/nextcloud
Here is the output of firewall-cmd --list-all
public (active)
target: default
icmp-block-inversion: no
interfaces: eth0
sources:
services: ssh dhcpv6- client http https
ports:
protocols:
masquerade: no
forward-ports:
source-ports:
icmp-blocks:
rich rules:
Output rpm -q httpd
httpd-2.4.6-89.el7.centos.x86_64
Please tell me what I'm doing wrong So?
I understand that the question is most likely stupid, and I don’t ask you to decide everything for me, but I will be very grateful for the direction in which you need to dig? This will help me educate myself :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
brar, 2019-05-07
@partisan42

Show:
ls -la /var/www/html/nextcloud

R
Ruslan Fedoseev, 2019-05-07
@martin74ua

Require all
look for this in httpd.conf

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question