GithubHelp home page GithubHelp logo

Comments (5)

Jehong-Ahn avatar Jehong-Ahn commented on July 29, 2024 1

@vanzhilov There are two ways.

  1. Move your app to site.loc/public
  2. 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.

nanoninja avatar nanoninja commented on July 29, 2024

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.

thisbesonic avatar thisbesonic commented on July 29, 2024

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.

Jehong-Ahn avatar Jehong-Ahn commented on July 29, 2024

@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.

vnzhlv-zh avatar vnzhlv-zh commented on July 29, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.