Docker: Hiding index.php in URL for Apache

Created on 12 Sep 2017  路  3Comments  路  Source: nextcloud/docker

Colud you please hide index.php in the URL in the Apache image by default.

enhancement

Most helpful comment

Just FYI: Updating it manually just needs 2 simple steps ( source ):

Add these line to your config.php:

...
'htaccess.RewriteBase' => '/',
...

And then run from your host:

docker-compose exec -u 33:33 web /var/www/html/occ maintenance:update:htaccess

To integrate this in the image is not that easy, because the occ command requires to be run after the installation is made. We don't have a possibilities yet to run scripts after the initial installation (which is triggered when you finish the installation page in your browser).

We made changes to skip the installation page (see #147), but running the installation is still triggered by opening nextcloud in the browser.

@tilosp any idea on a simple solution?

All 3 comments

Just FYI: Updating it manually just needs 2 simple steps ( source ):

Add these line to your config.php:

...
'htaccess.RewriteBase' => '/',
...

And then run from your host:

docker-compose exec -u 33:33 web /var/www/html/occ maintenance:update:htaccess

To integrate this in the image is not that easy, because the occ command requires to be run after the installation is made. We don't have a possibilities yet to run scripts after the initial installation (which is triggered when you finish the installation page in your browser).

We made changes to skip the installation page (see #147), but running the installation is still triggered by opening nextcloud in the browser.

@tilosp any idea on a simple solution?

I found a simple solution take a look at #152.

docker-compose exec --user 33:33 web /var/www/html/occ maintenance:update:htaccess

works for me instead of -u option.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pr4xx picture pr4xx  路  4Comments

gjedeer picture gjedeer  路  3Comments

DisasteR picture DisasteR  路  3Comments

pierreozoux picture pierreozoux  路  3Comments

DrMurx picture DrMurx  路  4Comments