erro 403 por nenhuma razão ubuntu server

0

Estou executando uma pilha LAMP com o Apache / 2.4.18 (Ubuntu). Estou hospedando um site muito básico. Eu não tenho um .htaccsess configurado e estou usando o Vhost para tudo. O site estava funcionando muito bem, então de repente eu recebo um

  403 You don't have permission to access / on this server.

Eu estava brincando com os arquivos de configuração habilitados para sites ao tentar adicionar um subdomínio. (Eu não tive sucesso) Eu não toquei no Vhost para o domínio principal. Na verdade, nunca toquei esse Vhost. Agora, embora eu receba um erro 403. PORQUE?? Aqui está o arquivo de configuração que eu estava falando

 <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.
# www.christophersites.com

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html


 ServerName christophersites.com    

 # 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
   RewriteEngine on
  RewriteCond %{SERVER_NAME} =www.christophersites.com
  RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
 </VirtualHost>

EDIT: como por solicitação Georges aqui é a saída de ls -al / var / www / html

    total 76428
  drwxr-xr-x 15 root          root            4096 May 28 15:15 . 
 drwxr-xr-x  5 root          root            4096 May 29 20:29 ..
-rw-r--r--  1 root          root             497 May  8 12:53 404Error
-rw-r--r--  1 root          root            1211 Mar 11 07:27 About_me.css
-rw-r--r--  1 root          root            4788 Apr 14 12:09 android-
 chrome-192x192.png
-rw-r--r--  1 root          root           17070 Apr 14 12:09 android-
 chrome-512x512.png
 -rw-r--r--  1 root          root            5806 Apr 14 12:09 apple-touch-
 icon.png
-rw-r--r--  1 root          root             246 Apr 14 12:09 
browserconfig.xml
-rw-r--r--  1 root          root           69074 Mar 11 07:27 Capture.PNG
drwxr-xr-x  2 ChrisMcKenzie root            4096 Apr 20 15:21 ChrisMcKenzie
drwxr-xr-x  4 christopher   christopher     4096 Apr 21 15:03 christopher
-rw-r--r--  1 root          root           18707 Mar 11 07:27 Code.png
-rw-r--r--  1 root          root            1032 May  8 15:57 cool.php
-rw-r--r--  1 root          root          116207 Mar 11 07:27 
CreatingAWebpageSorta.jpg
drwxr-xr-x  4 root          root            4096 Apr 14 12:00 css
drwxr-xr-x  2 root          root            4096 Apr 21 16:55 Daniel'sGang
 -rw-r--r--  1 root          root            4677 May 16 17:47 index.html
    
por KidCoder 30.05.2017 / 22:46

0 respostas