PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, September 1, 2022

[FIXED] How to remove Nginx server blocks in effect

 September 01, 2022     digital-ocean, docker, nginx, nginx-reverse-proxy     No comments   

Issue

I had a Nginx in a container (on a Ubuntu host) and several server blocks defined. I was tweaking them and wanted to remove them all. But stopping the container and removing the container did not help. The rules I was testing with are still in effect.

Are Nginx configurations being applied to the host as well? How can I remove all the configurations and start from scratch?

Note: I had the conf.d folder mapped to a volume on the host. the configuration file is still available in it.


Solution

As Ivan Shatsky pointed out in the comments, it must have been the browser cache. However, I got rid of the persistent conf file in the volume as well and the nginx effects were gone.



Answered By - PeeBee
Answer Checked By - Mary Flores (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing