Home  >  Q&A  >  body text

ssl certificate - mod_rewrite fails after apache installs mod_ssl

I used the mod_rewrite module for redirection before. Now after installing the mod_ssl module, mod_rewirte redirection becomes invalid? What is the reason? I tried changing the loading order of the two modules of loadmodule in the apache configuration file but it didn't work either

phpcn_u1582phpcn_u15822713 days ago821

reply all(1)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 17:00:44

    You didn’t add a Directory block in the VirtualHost block of ssl. The inside is inconsistent with your external directory options. For example, the outside is AllowOverride All but the ssl configuration is AllowOverride None. If your DocumentRoot is consistent with the outside world, try removing the Directory block in ssl and try again.

    reply
    0
  • Cancelreply