docker-php icon indicating copy to clipboard operation
docker-php copied to clipboard

How to enable apache rewrite ?

Open mysignisleo opened this issue 5 years ago • 1 comments

I have the .htaccess under the app folder . But it's not working. And i want to enter the container , but not working too. docker exec -it container bash

mysignisleo avatar Aug 14 '19 07:08 mysignisleo

@jerryjee you can create your own Dockerfile and then copy your .htaccess using command ADD or COPY

Here is https://github.com/samundra/tus-php/blob/feature/update-docker-setup/docker/server/Dockerfile#L6 which I am borrowing from one of project I am working on.

You have to figure out where you have to copy .htaccess file. Usually, it's placed on Apache Document Root.

samundra avatar Aug 15 '19 08:08 samundra