hassio-addons
hassio-addons copied to clipboard
[Feature Request]: Enable `mod_write` for apache2
The request
I've setup a Wordpress website on the apache2 add-on but to be able to use the page names in the url, mod_write
needs to be enables (see https://wordpress.stackexchange.com/questions/167144/wordpress-permalinks-not-working-in-apache2-ubuntu-14-04)
So I want to use https://webiste.com/page_name/
instead of https://website.com/?p=24
Is it possible to enable this?
For which Add-On
Apache2
Is your feature request related to a problem?
No response
Additional information
No response
This is already supported, see here: https://github.com/FaserF/hassio-addons/tree/master/apache2#authentification-for-your-website
And with a custom Apache2 config file: https://github.com/FaserF/hassio-addons/tree/master/apache2#option-default_conf--default_ssl_conf
Those two files need to be created by yourself :)
I'm a bit confused, isn't that authentication section referring to authentication for visitors of the website?
My Wordpress website works, but if I enable the permalink setting to use page names, I get errors when I try to visit the respective page, because the rewrite from Wordpress doesn't work.
Note that I don't have a lot of knowledge about all of this, so I might be missing something here :)
Since I dont use wordpress right now, I am not sure what exactly is required. This was just what I thought from the link you provided. They mention that .htaccess is needed (which is explained in the first link from me) and in the answer a user says, that "AllowOverride" is set to All in the Apache2 Config file (which is explained in the second link). I hope that helps. Maybe give it a try with changing the apache2 config file.
okay, thanks, that makes it a bit more clear :)
Okay, I enabled get_config
for the default_conf
parameter. Which downloaded a httpd.conf
in the /share
folder
According to the docs I have to change path/to/your/new/apache2.conf
, but I don't know where to find that.
You can edit the https conf and rename it. Then you can store it for example at /share/apache2.conf and put that path to the default_conf option.
ah okay, thanks!
Thanks for your answers so far, seems I need to dig a bit more in how to setup this file before I can get it working.
There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!