Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

254
Visualizações
Htaccess issue with RewriteOptions InheritBefore

I have got two htaccess:

api/public/.htaccess

RewriteRule . index.php

api/public/cron/web/.htaccess

RewriteEngine On
RewriteOptions InheritBefore

I set my vhost for cron:

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName cron.api.local
    ServerAlias www.cron.api.local
    DocumentRoot /var/www/api/public/cron/web
    ErrorLog ${APACHE_LOG_DIR}/api_cron_error.log
    CustomLog ${APACHE_LOG_DIR}/api_cron_access.log combined
    <Directory "/var/www/api/public/cron/web">
        Options Indexes FollowSymLinks MultiViews
        Require all granted
        AllowOverride All
        Allow from All
    </Directory>
</VirtualHost>

Url http://cron.api.local/up returns 404 status but when i replace RewriteOptions InheritBefore with RewriteRule . index.php then it works. What is wrong?

I use apache 2.4.18 and ubuntu 16.04.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

To fix this issue follow this:

sudo nano /etc/apache2/apache2.conf

Find:

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

Replace With:

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

Exit and save and restart apache with command

sudo systemctl restart apache2

Reverence: Apache mod_rewrite is enable on server but not working?

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda