https://github.com/mimiz/php-apache-public
A Docker Repository for PHP projects
https://github.com/mimiz/php-apache-public
Last synced: 24 days ago
JSON representation
A Docker Repository for PHP projects
- Host: GitHub
- URL: https://github.com/mimiz/php-apache-public
- Owner: mimiz
- Created: 2015-03-11T10:18:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T13:22:48.000Z (about 10 years ago)
- Last Synced: 2025-06-10T21:48:25.194Z (about 1 month ago)
- Language: ApacheConf
- Size: 145 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rgoyard/php-apache-public
This docker repository was created from the [php:apache](https://registry.hub.docker.com/_/php/).
I prefer to have my public directory name **public** so i edited the ```apache2.conf``` file to make the apache document root to ```/var/www/public``` instead of (/var/www/html).
I also add the apache ```rewrite``` module to apache.
For example for an old application based on Zend Framework 1, you can use this docker image like that :
```
docker run -d -p 80:80 -v /home/code/myzf1app/:/var/www/ --name myzf1app rgoyard/php-apache-public```
So the whole application is mounted in ```/var/www/``` and as the application DocumentRoot is in the *public* directory. The application is fully accessible.