Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mimiz/php-apache-public
A Docker Repository for PHP projects
https://github.com/mimiz/php-apache-public
Last synced: 1 day 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 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-17T13:22:48.000Z (over 9 years ago)
- Last Synced: 2024-04-17T05:34:28.263Z (7 months ago)
- Language: ApacheConf
- Size: 145 KB
- Stars: 0
- Watchers: 2
- 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.