Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty permalinks broken because of missing "AllowOverride All" #158

Closed
mlogic opened this issue Jul 8, 2016 · 3 comments
Closed

Pretty permalinks broken because of missing "AllowOverride All" #158

mlogic opened this issue Jul 8, 2016 · 3 comments

Comments

@mlogic
Copy link

mlogic commented Jul 8, 2016

The 7/6/2016 update to the WordPress docker image broke the pretty permalinks [1], which is set by using /var/www/html/.htaccess, which again relies on "AllowOverride All". AllowOverride was enabled in all pre-7/6/2016 images (by the customized /etc/apache2/apache2.conf) but isn't set by the new conf-available/docker-php.conf. Please add "AllowOverride All" to conf-available/docker-php.conf.

[1] https://codex.wordpress.org/Using_Permalinks#Using_.22Pretty.22_permalinks

@tianon
Copy link
Member

tianon commented Jul 8, 2016

This is actually an issue in the php image (see docker-library/php#254) -- will track it over there, thanks! 👍

@themao
Copy link

themao commented Jun 23, 2020

Is it broken again? I'm using the latest image and default apache config does not have the AllowOverride All directive, so the permalinks don't work

@yosifkit
Copy link
Member

@themao, it seems fine to me:

$ docker run -it --rm wordpress bash
root@c491c2911728:/var/www/html# cd $APACHE_CONFDIR
root@c491c2911728:/etc/apache2# cat conf-enabled/docker-php.conf 
<FilesMatch \.php$>
	SetHandler application/x-httpd-php
</FilesMatch>

DirectoryIndex disabled
DirectoryIndex index.php index.html

<Directory /var/www/>
	Options -Indexes
	AllowOverride All
</Directory>
root@c491c2911728:/etc/apache2# 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants