Dockerfile icon indicating copy to clipboard operation
Dockerfile copied to clipboard

mod_rewrite not working

Open arowland-informatics opened this issue 5 years ago • 3 comments
trafficstars

I am using the webdevops/php-apache-dev image and mod_rewrite does not work on this image. I have tried this with two different CMS's that require mod_rewrite (Concrete5 and WordPress) rewrite was not working on either. The module is enabled and .htacces are allowed. Rewrites just do not work.

arowland-informatics avatar May 08 '20 19:05 arowland-informatics

@arowland-informatics Which version tag are you using?

htuscher avatar May 10 '20 16:05 htuscher

Hi Hans,

Thank you for reaching back out to me. It looks like the tag is ubuntu-18.04.

Please let me know if you need any other info.

Thank you, [cid:[email protected]]

Aaron Rowland | Web Developer [email protected]mailto:[email protected] 215 2nd Avenue SE, Suite 300 Cedar Rapids, Iowa 52401 319.363.3795 Ext. 111 | 319.363.0403 Fax

[FBOOK]https://www.facebook.com/InformaticsInc/ [LNKDN] https://www.linkedin.com/company/informaticsinc [TWTR] https://twitter.com/informaticsinc

This message and any accompanying documents are intended for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of this email by you is prohibited. We may monitor email to and from our network.

From: Hans Höchtl [email protected] Sent: Sunday, May 10, 2020 11:33 AM To: webdevops/Dockerfile [email protected] Cc: Aaron Rowland [email protected]; Mention [email protected] Subject: Re: [webdevops/Dockerfile] mod_rewrite not working (#352)

@arowland-informaticshttps://github.com/arowland-informatics Which version tag are you using?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/webdevops/Dockerfile/issues/352#issuecomment-626354101, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOUU47PA3H3M46PF6EX2YJTRQ3JMJANCNFSM4M4NJZBQ.

arowland-informatics avatar May 11 '20 19:05 arowland-informatics

I did a test with a simple .htaccess file:

<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteBase /
	RewriteCond %{REQUEST_FILENAME} -f [OR]
	RewriteCond %{REQUEST_FILENAME} -l [OR]
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule .* - [L]
	RewriteRule (.*) index.php
</IfModule>

and exactly the specified image webdevops/php-apache-dev:ubuntu-18.04 and it worked.

htuscher avatar May 12 '20 07:05 htuscher