Giter Club home page Giter Club logo

Comments (7)

LeonZhang77 avatar LeonZhang77 commented on September 28, 2024 1

Good suggestion, i will think about this.

from app-service-quickstart-docker-images.

nphmuller avatar nphmuller commented on September 28, 2024

It’s probably a bit more complex than I initially suggested. The /home/site/nginx-conf.d/ solution would probably suffice for global configuration customizations. But if I also want to customize the site configuration (like in my example of white listing the wp-admin path) the original site configuration needs an include (example: https://serverfault.com/a/707963). This include would need to point a folder containing site customizations. Perhaps something like /home/site/nginx-site-conf.d/

Anyway, just giving you some food for thought @LeonZhang77 :)

from app-service-quickstart-docker-images.

LeonZhang77 avatar LeonZhang77 commented on September 28, 2024

just pushed image: appsvcorg/wordpress-alpine-php:0.7, could you please have a try?
Readme: https://github.com/Azure/app-service-quickstart-docker-images/tree/master/wordpress-alpine-php/0.7

How to update config files of nginx

  1. Go to "/etc/nginx", update config files as your wish.
  2. Reload by below cmd:
/usr/sbin/nginx -s reload

from app-service-quickstart-docker-images.

jstawski avatar jstawski commented on September 28, 2024

Would this survive a Docker Restart? I'm trying to modify the nginx.conf file to allow CORS of certain files and after restarting the web app in Azure, the equivalent of Docker Restart my conf file is set back to the original form

from app-service-quickstart-docker-images.

LeonZhang77 avatar LeonZhang77 commented on September 28, 2024

yes, this is by design. everything will be restored after restart except /home.

good point, i will think what i can do.

from app-service-quickstart-docker-images.

LeonZhang77 avatar LeonZhang77 commented on September 28, 2024

@jstawski , appsvcorg/wordpress-alpine-php:0.7 is built and pushed again, please have a try. nginx conf files should not be overwrite by restart.

from app-service-quickstart-docker-images.

jstawski avatar jstawski commented on September 28, 2024

it worked!

from app-service-quickstart-docker-images.

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.