Apache2 - erro 404 não encontrado

0

Estou tentando configurar um host virtual (Ubuntu 14.04)

1 - Eu criei um novo arquivo /etc/apache2/sites-available/mysite.conf

<VirtualHost *:80>
 ServerName mysite
 DocumentRoot "/var/www/html/mysite"
 SetEnv APPLICATION_ENV "development"
 <Directory "/var/www/html/mysite">
     DirectoryIndex index.php
     AllowOverride All
     Order allow,deny
     Allow from all
 </Directory>

2 - Eu adicionei esta linha em / etc / hosts

127.0.0.1      mysite

3 - Eu criei um arquivo .htacces

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]

4 - Eu ativei o módulo de reescrita

Alguma ajuda?

    
por Zakaria 13.05.2018 / 16:01

0 respostas