Code Monkey home page Code Monkey logo

Comments (4)

dimadeush avatar dimadeush commented on May 27, 2024 1

You need to edit hosts file on your PC + if you have port 80 as non-free - you can edit .env file in the root folder of you app like next (example):
WEB_PORT_HTTP=8080
WEB_PORT_SSL=8043

So, you app will be available like localhost:8080 (after rebuild).

from docker-nginx-php-laravel.

ArtMin96 avatar ArtMin96 commented on May 27, 2024

Thanks 👍

from docker-nginx-php-laravel.

ArtMin96 avatar ArtMin96 commented on May 27, 2024

@dimadeush If I write the domain name in nginx.conf, other users have to change the domain name in their nginx.conf every time. What is the best way to solve this problem? Thanks

from docker-nginx-php-laravel.

dimadeush avatar dimadeush commented on May 27, 2024

Hello Arthur
I don't know why do you need to change nginx.conf and why do you think that other users have to change it too. Maybe you are solving some your unique issue but I don't know anything about that. If I need to use some domain name and not localhost or 127.0.0.1 - I'm doing it via hosts file for my OS (https://www.hostinger.com/tutorials/wp-content/uploads/sites/2/2016/06/add-ip-address-on-hosts-file.webp).

from docker-nginx-php-laravel.

Related Issues (19)

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.