Comments (5)
@vanzhilov There are two ways.
- Move your app to
site.loc/public
- Or modify nginx configuration as
root /var/www/html
https://github.com/nanoninja/docker-nginx-php-mysql/blob/master/etc/nginx/default.conf#L11
from docker-nginx-php-mysql.
Hi @slottybon,
Thank you for appreciating the project.
In order for this to work I think I have to make my own image with Nginx because there are proprietary problems (www-data) in the file sharing between the host machine and the container at the writing level.
It is possible to fix the problem manually but it is not the best solution.
from docker-nginx-php-mysql.
Alright.
I don't see myself fixing this, so for the time being I will stay with Vagrant.
I will star your repo and wait for the issue to be fixed by you or docker folks though.
from docker-nginx-php-mysql.
@slottybon, did you mean web/
?
The root of the nginx project is web/public
.
https://github.com/nanoninja/docker-nginx-php-mysql/blob/master/etc/nginx/default.conf#L11
from docker-nginx-php-mysql.
@toonitw is it not possible to change it?
When I'm trying something like that: "/var/www/site.loc:/var/www/html"
I get this error: "/var/www/html/public/index.php" is not found (2: No such file or directory),
from docker-nginx-php-mysql.
Related Issues (20)
- Deploy Strategies HOT 1
- Use Apache instead of Nginx
- PHP wrong version error HOT 1
- Remove sudo from install guide? HOT 1
- composer error : ext-zip * -> the requested PHP extension zip is missing from your system. HOT 1
- Cannot work CentOS, but Ubuntu work fine HOT 3
- Readme logging into mysql container
- PMA doesnt connect to mysql HOT 1
- Raspberry pi 4
- PHP Shell_Exec cannot work in browser HOT 1
- Install custom extension for php HOT 2
- virtual domain HOT 2
- 推荐
- session expires
- Where is there PHP executable in this docker?
- Install behind Traefik
- Log directory
- xdebug with visual-code
- Nginx 502 Bad Gateway
- No autoload.php HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-nginx-php-mysql.