Nginx Block URL Access Sub

Hướng dẫn sử dụng Nginx Block URL Access

Nginx Block URL Access là gì?

Nginx Block URL Access là việc sử dụng phần mềm Nginx để khóa các đường dẫn không được phép truy cập. Điều này rất quan trọng trong một số trường hợp. Đặc biệt, trong server Odoo được sử dụng để khóa các trang quản lý database để người dùng không thể truy cập đến các trang database management của Odoo.

Bài viết trước mình đã hướng dẫn cách điều hướng domain cho Odoo server bằng Nginx các bạn có thể tham khảo tại đây. Nếu bạn muốn tham khảo cách cài đặt Odoo, các bạn có thể tham khảo thêm tại cách cài đặt Odoo trên server

Hướng dẫn Nginx Block URL.

Trong hướng dẫn này mình sẽ giới thiệu các bạn cách Block URL với Odoo server

1. Cài đặt Nginx.

Các bạn có thể tham khảo tại đây.

2. Điều chỉnh file Nginx.

Thêm vào file nginx đoạn sau.

server {
listen 80;
server_name name_domain;
add_header Strict-Transport-Security max-age=2592000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
location / {
location /web/database/manager {

proxy_buffering off;
rewrite ^ http://name_domain/web/login;
location /web/database/selector {
proxy_buffering off;
rewrite ^ http://name_domain/web/login;

Lưu ý:

/web/database/manager và /web/database/selector là 2 trang quản lý database quan trọng trong Odoo. Khi người dùng truy cập vào 2 đường dẫn http://name_domain/web/database/manager  http://name_domain/web/database/selector sẽ được chuyển sang trang http://name_domain/web/login.

3. Restart service Nginx.

service nginx restart

Kết luận:

Mình vừa giới thiệu đến các bạn cách sủ dụng Nginx để block các URL quan trọng, đặc biệt với Odoo. Các bạn có thắc mắc gì có thể để lại comment chia sẽ bên dưới. Nếu bài viết có nhiều sai sót xin các bạn góp ý
Cảm ơn các bạn theo dõi.

13 thoughts to “Hướng dẫn sử dụng Nginx Block URL Access”

  1. hey there and thank you for your info – I have certainly picked up something
    new from right here. I did however expertise some technical points
    using this site, since I experienced to reload the website lots of times previous to I could get it to load correctly.
    I had been wondering if your web host is OK? Not that I
    am complaining, but sluggish loading instances times will sometimes affect your placement in google and can damage your high
    quality score if advertising and marketing with Adwords. Anyway I’m adding this RSS to my
    e-mail and can look out for a lot more of your respective intriguing content.
    Ensure that you update this again soon.

  2. wigs online
    The film was screened under its original title Imogene at the 2012
    Toronto International Film Festival in September 2012.
    The same month, Lionsgate bought the US distribution rights following its Toronto premiere and released it with Roadside Attractions on July 19, 2013.[3]Imogene Duncan (Kristen Wiig) was once
    a promising playwright who now works in a low paying magazine job in New York City.
    After her affluent boyfriend leaves her and she
    is fired from her magazine gig, she stages a suicide attempt in an effort to get her ex’s attention and is accidentally discovered by
    her friend Dara.

    wigs online Available with a variety of different
    hair colors, eye colors, hairstyles, and skin tones, you are sure
    to find one that conjures up fond memories of a child you adore.

    A reborn toddler kit lets you do some of the work yourself, such
    as assembling the doll and painting the final features.
    Purchasing a used reborn toddler doll lets you buy models
    that are discontinued. wigs online

    hair extensions I was so scared my jeans would rip any moment during squats but they held up and I even hit a new PR.
    Now I always remember to pack my bag.frozenchimp 7 points submitted 5 months agoKylo can force information from the minds of people.

    Poe, a hiehard resistance member, could not resist his probing
    for long, only Rey, a strong force user was able to resist him.When Kylo
    is taking a test, he could very easily listen in to
    what the smart kids are thinking. hair extensions

    wigs online If you ever need to talk message me.
    I been through the anger,depression and confusion and
    have finally just accepted that what will come will come and I deal with it when it happensThat what I was on. Drink a
    lot of water. Women in History Our Black women ancestors had been through huge sacrifices for us today, to be where we are with better opportunities.
    And we as Black women still have to pave the way for those that are trailing
    behind us. Black women in history were called “bitches” by the slave
    masters and sexually raped by them as well. wigs online

    cheap wigs human hair There are shampoos and conditioners made for
    synthetic wigs, but you can use fabric softener to condition your wig as well.
    Human hair and human blends can be washed with
    normal shampoo. I recommend using gentle ones, as most shampoos strip the strands of their moisture.
    cheap wigs human hair

    cheap wigs human hair Team usa? No one wanted
    to go. When people joke and say reddit nba fans are dumb as hell,
    now i no what they mean. Plus everyone here was obviously a raps fan. Lee ms
    en detalle sobre el VIH durante el embarazo.Cmo puedo protegerme
    de las enfermedades de transmisin sexual?Si corres el riesgo de ser infectada con una enfermedad de transmisin sexual es decir, no tienes una relacin de pareja exclusiva y mongama con una persona
    que no padece ninguna infeccin deberas abstenerte de realizar
    el acto sexual o, por lo menos, utilizar condones
    de ltex cada vez que tienes relaciones con penetracin. Si t o tu pareja no pueden usar ltex, otra
    opcin seran los condones masculinos o femeninos de poliuretano.Cules son las posiciones
    ms cmodas?Quizs tendrs que experimentar un poco con distintas posiciones para encontrar las que mejor te van. Encontrar una
    posicin cmoda se hace ms difcil a medida que tu vientre
    crece.. cheap wigs human hair

    cheap wigs human hair In the same interview she stated that production on the film will begin soon.[12] In March 2017, she announced that she had become patron of Women for Women, an organisation which
    supports female war survivors.[13] In August 2017, in an interview with Porter, Turner said
    that she believed her social media following was responsible for her successful casting in an unnamed project
    rather than her abilities as an actress. She said in the interview “it was between me and another girl who is a far better actress than I am, far better, but I had the followers, so I got the job.”[14]Turner was
    first spotted with Joe Jonas in late November 2016. In October 2017, Turner
    announced her engagement to Jonas on Instagram.[15]. cheap wigs human hair

    full lace wigs In the United Kingdom, drag has been more common in comedy, on both film and
    television. Alastair Sim plays the headmistress Miss Millicent Fritton in The Belles
    of St Trinian’s (1954) and Blue Murder at St
    Trinian’s (1957). He played the role straight; no direct joke about the actor’s true gender is made.
    full lace wigs

    cheap wigs With Europe’s growing desire for coconut oil, Godeffroy’s of Hamburg, the largest trading firm in the Pacific, began trading for copra in the New Guinea Islands.
    In 1884, the German Empire formally took possession of the northeast quarter of the
    island and put its administration in the hands of a chartered trading company formed for the purpose, the German New
    Guinea Company. In the charter granted to this company by the German Imperial Government in May 1885, it was given the power to exercise sovereign rights over
    the territory and other “unoccupied” lands in the name of the
    government, and the ability to “negotiate” directly with the
    native inhabitants. cheap wigs

    U Tip Extensions A. Well I can’t turn into a bat or fly but vampires do have special powers.
    I can scan a house from the outside and know who’s
    inside and what they are doing. I don know what is different about
    our law. I know there was some speculation about a new tax
    at the distributor level, which might explain it.
    But we are already more expensive than most our neighbor states.
    U Tip Extensions

    wigs online This shows that he believed in spirituality and also believed in God and Khudah.
    He always went to Lord Shiva’s temple with his friends. The later part of the opening chapters, he introduces his cousin Samsuddin, his school teachers and
    all the people who were felt any difference amongst them.
    wigs online

    wigs online As spectacular as they might seem now,
    they were even more extensive in the 18th century.
    The 18th century waterworks at Marly the Machine de Marly that
    fed the fountains was possibly the biggest mechanical system of its time.
    The water came in from afar on monumental stone aqueducts which have long ago fallen into disrepair or been torn down. wigs online

    wigs Upon the arrival of the new ambassador, the comte de Guerchy in October 1763, d’on was demoted to the rank of secretary and humiliated by the count.
    D’on was trapped between two French factions: Guerchy was a supporter of the duc de Choiseul,
    duc de Praslin and Madame de Pompadour, in opposition to the comte
    de Broglie and his brother the marchal de Broglie. D’on complained, and eventually decided to disobey orders to return to France.

    360 lace wigs One day, when things had come to a very bad pass when the creditors were pressing, the
    mother in hysteric grief, the father in more than usual
    gloom, the inmates of the family avoiding each other, each secretly oppressed with his private unhappiness and notion of wrong
    the father and daughter happened to be left alone together, and Amelia thought to
    comfort her father by telling him what she had done.
    She had written to Joseph an answer must come in three or four
    months. He was always generous, though careless. 360 lace wigs

    hair extensions Having a doll to use as an example would have made that hard conversation a lot easier.

    Jane. Don get me wrong I don have anything against Barbies in general,
    but American Girl is a brand with a little more gravitas.
    So what can you do? Well, this hub, I hope,
    will help. I have listed lots of London Underground Stations below and given some costume ideas.
    You could print this list off or give your guests a link to this page so they can have a look hair

  3. First off I would like to say fantastic blog! I had a quick question in which I’d like to
    ask if you don’t mind. I was interested to find out how you center
    yourself and clear your mind before writing. I’ve had a hard time clearing my thoughts in getting my ideas
    out there. I truly do enjoy writing however it just seems like the first 10 to 15 minutes are generally lost just
    trying to figure out how to begin. Any suggestions or tips?
    Appreciate it!

  4. I don’t know whether it’s just me or if everybody else encountering issues with your website.
    It seems like some of the written text in your posts are running off
    the screen. Can someone else please provide feedback and let me know if this is happening to them too?
    This may be a problem with my browser because I’ve had this happen previously.
    Appreciate it

  5. cheap wigs human hair
    I listen to the Pack Your Knives podcast and the guests in the last two
    weeks have been Chris and Claudette. Claudette complained that no one
    could relate to her because she is the hardest working mom ever
    and no one has ever worked harder than her, the single mom (then she mentioned her husband so.).

    I see you, girl.

    wigs online His lordship’s vizier and chief confidential
    servant (with a seat in parliament and at the
    dinner table), Mr. Wenham, was much more prudent in his behaviour
    and opinions than Mr. Wagg. Both men and women would adorn their hair with decorative items such as
    beads, ribbons, flowers, tassels,and gold. A practice that continues to this
    day. Also similar to today, is the construction of their hair pieces..

    wigs online

    hair extensions Distance education has become one
    of the more prominent forms of study due to the ever changing technology offered to this
    modern era of students; Technology has thoroughly improved
    academic success. Distance education has a glorious history that can be traced back to its roots
    in the early 1840’s. “It was Sir Issac Pitman, the English inventor of shorthand, who in 1840 devised his concept to offer education courses by mail, who, in a historical. hair extensions

    clip in extensions This saves me a step since I can draw the pattern or changes to an existing pattern straight onto the fabric, sew it up, try it on, make changes, and ultimately take it back apart to make a pattern. Sometimes I trace my muslin pieces onto quilter’s pattern fabric; usually, you can just pin it right on to your fabric and cut away. You’ll find you’re much better off drawing where you want to have a piece end with a Sharpie when it’s not your final fabric. clip in extensions

    wigs online Washington’s mother lived in the house until 1772, when she moved to Fredericksburg, and the farm was sold to friend Hugh Mercer (direct ancestor of Gen. Geo. S. Representatives can also create client profiles within their back office. The profiles allow representatives to record previous products that clients ordered so that when they are on sale, they can be sent alerts. Avon representatives can also benefit from using email marketing by notifying clients about any changes or special updates. wigs online

    U Tip Extensions The mouthplate is the foundation for this type of puppet. There are many ways to make to make a mouthplate; this is simply one way. In general, the cheaper the materials you use, the less durable the puppet will be. For a while, I was feeling bad that my daughter was sooo into princesses. I thought, I have failed as parent to introduce my daughter to the variety that is life. I thought, how cliche! Hmmm, the notion that every other little girl she knows is doing the same thing makes me feel better. U Tip Extensions

    human hair wigs Her hair is soft like natural cotton. Many people love the natural look but can’t pull it off with naturally growing thin hair. Beloved is your saving grace.. When and why did this become acceptable? I have to blame college students. About ten years ago, college students stopped bothering to roll out their dorm beds and put pants on to go to class. They determined they would rather look stupid than take that extra two minutes to find pants and a shirt. human hair wigs

    I Tip extensions The Ministry of Supply recommended Ruby Loftus to the War Artists Advisory Committee (WAAC) as a subject. Loftus worked at the Royal Ordnance Factory in Newport. At twenty one, and with no previous industrial experience, she had mastered the complex skill of making a breech ring for the Bofors gun. I Tip extensions

    tape in extensions The choice is entirely yours but you will be appropriately guided by your surgeon. It is also called the strip method as in this process a strip of hair bearing skin is removed from the back and sides of the head, divided into separate hair grafts, and placed into minute incisions created in the scalp. The wound is sutured and left to heal naturally. tape in extensions

    costume wigs However, they often opt for the scenic route, justifying changes, surprises and a general apathy for fashion. It takes a lot longer than it should like homework, but with more nudity. The sock thing was new.. I also print out the most useful references I have so I don’t have to keep running to a grab a book or my computer to check a detail when I start working. I’m not going to list this as a separate step, but it’s really important to figure out which elements of your costume need to be purchased; supplies and things like shoes or wigs. Everything you need to order should be ordered early in your process. costume wigs

    clip in extensions We have our home gym in the garage. We found a local auction that was getting rid of commercial gym equipment where we bought flooring and other equipment. Craigslist, kijiji and Facebook resell sites are great for finding equipment as well. Taylor has made occasional appearances in movies, usually in broad comedies like The Happy Hooker Goes to Washington (1977) and the R rated Deep Throat parody Chatterbox (1977).[8] In Cheech and Chong’s Things Are Tough All Over (1982), he picks them up in the middle of nowhere driving a convertible full of props. Rip then proceeds to drive them to Las Vegas and telling jokes the whole way and moving Chong to tears from laughter (and, later, tears because he wont stop). In Amazon Women on the Moon (1987) a funeral service turns into a celebrity roast when guest Rip Taylor shows up to “honor” the deceased. clip in extensions

    I Tip extensions I going through this stuff too. You can ALWAYS go back to court to modify things relating to the kids. If you want more time with them etc you can always ask the court for a modification of the order. The doll legs are one piece with a seam up the back. Hands have five individual fingers that are not connected. Toes are not defined by stitches. I Tip extensions

    lace front wigs Mcdonalds probably hired half my class for a few years. 8 12 hours a week was what most people worked. You said that working wouldn fit in their schedule, but are they really flat out with school and sports the entire weekend?. Sure, the first taste we’ve been given off of Piece By Piece sounds an awful lot like a Jimmy Eat World song, but we’re not complaining. Clarkson can do no wrong in our eyes and we can’t wait for the new one. Like Snow White’s evil queen gazing jealously over the landscape, expect this Pretty Motherfucker to come back with a vengeance in 2015.. lace front wigs

    Lace Wigs Subtle lift at the roots adds volume to the crown. Razored layers and a tapered neck provide excellent coverage along the hairline. With a lightweight machine made cap, the capless Melania wig provides enhanced breathability to keep you cool throughout the day. Lace Wigs

    360 lace wigs 15. When working in the Source Selection process, you might consider asking the vendor to supply you with an ink sample for a project you’re working on. The ink must have special qualities (they were outlined in the RFQ) and before making a selection, you want to test the ink in the printers that will be used at project deployment. 360 lace wigs

    hair extensions It was spring again and I dragged myself back to New York to see an integrative MD on the internet fueled theory that I had adrenal fatigue. Integrative meant that she combined Eastern and Western medicine and didn’t take insurance. She looked at my tests from all my useless doctors and told me that I had Lyme disease hair extensions.

  6. Gardening is a great way to escape the stress involving
    lifestyle by working having your hands and obtaining around touch with nature.
    Really also a way to be able to add some beauty together with peace to
    your house by encompassing it along with lovely vegetation. Read
    on to find out exactly how to start your property backyard today.

    To store your own garden-fresh onions for employ all through the winter and even prevent getting rot
    or even mold, retail store them in pantyhose! Sure, pantyhose!
    Merely place the onions into the legs of pantyhose,
    and, to avoid making them feel one an additional (which is
    exactly what helps develop mold plus rot), place a twist link
    among each onion along with the future. To store, hang the particular pantyhose by means
    of the gusset in some sort of cool dried place and cut
    away or even pop a gap from the pantyhose to take hold of an onion when a person need it.

    If a person are planning an irrigation system for your garden, consider a drip irrigation program.
    A conventional process using sprinkler heads manages to lose a
    good good deal water through evaporation. Nonetheless
    a drop process irrigates your back garden by simply a
    constant poor drip of water beneath the surface,
    which means less normal water is wasted through evaporation.

    Use stones seeing as vegetable markers if a person want
    to keep the natural looking motif. You are able to write with permanent special marker
    on the smooth section of stones and even encircle your plant using them.
    This way you will definitely be equipped to inform what type of plants
    you include without having an unpleasant white

    Consider developing crops that are easy to store or
    store on their own. If handled adequately
    plus gently, given the best suited amount of a chance to remedy,
    garlic, onions, sugary carrots, squash, dry pinto beans,
    or maybe shallots will keep to get a very long time around some sort of amazing,
    dry spot. No canning or iced required. This will ensure acquiring
    fresh vegetables in the backyard all winter very long.

    Pay out attention to the temps in your backyard. When it is early, or perhaps
    past due date, in the season there is a good chance
    that your plants may be exposed to frost. Icing conditions will cause several plants in order to die, and some that live is not going to produce at the stage they will have otherwise.

    Fall is an excellent time of the year to plant
    a fall plant garden. The minor temperature ranges of autumn will be fantastic for cultivating quick-progress,
    cool-season vegetables such as kale, radishes and lettuce.
    Expanding an autumn garden plants will require some preparing as
    you need to crop your greens crop in advance of the first
    frost. By means of looking on the seed products packet,
    you will locate out how long that usually takes
    for your seed to be able to be mature enough to reap. Since plants grow slower in the shortened days and nights of tumble,
    add a pair of months for the time detailed on the seed packet.
    If the total quantity of days and nights is 1 out of 3, make sure
    you grow your fall crop with least that many times before the
    time that typically the first working day of ice typically occur in your locale.

    Create heat with fantastic or yellow hue foliage. Visible vibrancy and even warmth exudes from gold and
    yellow-leaved foliage. They can be particularly efficient in shady locations, offering the impression of gentle and depth.
    They put together beautifully with pink blooms or perhaps deep
    bronze vegetation. Good choices include Caryopteris ‘Worcester
    Gold’, Viburnum ‘Aureum’, numerous Hostas and Spirea ‘Gold Flame’.

    Plant from the shade. All plants need light to survive, yet not
    all of them need to have brilliant sunlight. Plants
    indigène to woodland locations happen to be happy when they obtain protection from the sun’s rays.
    There are numerous vegetation that will flourish in a badly lit lawn, including Hosta,
    Cyclamen, Foxglove, Helleborus, Japanese Anemone, plus Ajuga.

    By growing these, you will have some sort of year-round display screen of colour in the particular shadiest connected with gardens.

    For those who have a young baby, consider donning your current child in a bookbag when you garden. Being outside is a good stimulating
    experience for a great infant, plus these people get to spend more time with anyone.
    Organic gardening can be most dependable for baby,
    as at this time there is no risk regarding them experiencing harsh or maybe dangerous chemicals while you work.

    One of typically the best methods to always be successful from organic
    horticulture is to plan early on. The best laid out plans for an organic and natural backyard, often make for by far the most
    successful garden. Plan what you should plant early on together with be sure to have backup vegetables
    all set to plant any time short-lived vegetation, like member of
    the lettuce family and kale, are accomplished for the year.

    Praise the areas of your own personal yard in which grass will not grow.
    Do not be discouraged. Accomplish not really try to regrow a glass there.
    Go ahead plus take this possiblity to alter your ground cover a far more
    natural choice. Look for an issue that is low-maintenance, together with put at any place grass will be struggling to help thrive.

    Only one strange nevertheless apparently helpful tip
    with regard to growing organic and natural plants, would be to lightly wash your flowers with your own personal fingers or
    a little bit of cardboard 1-2 times per day. While this appears weird, research shows it will help plants grow larger, versus definitely not pampering all of them
    at all.

    Here will be a idea for organic and natural gardening!
    Use a rain assess. Most flowers require concerning the in of liquid per week.
    To find out exactly how much you need to water, it truly is crucial to
    be able to know how much liquid the plants received via rain. As rain fall may differ greatly
    in a metropolis, may count on your current weather statement;
    instead employ a rain measurement for you to determine the amount that will fell on your position.

    Many moose farms will definitely give you their pony manure
    for free when you inquire. Some will even transport it to help your doorway for a
    new fee. Horse manure is usually loaded with vitamins and vitamins that plants demand.
    Commonly, the manure can be combined with wood scraps to
    be able to reduce the smell. For your serious organic,
    make guaranteed that the shavings utilized are also natural.

    In case your life is demanding, farming cannot be
    encouraged enough. When you have seen by reading through this informative article, gardening is
    an quick leisure activity as well like the great anxiety reliever.
    So, what justification accomplish you have in not really beginning?
    Apply the guidelines in this article right now to produce a great garden and to help make it yourself
    feel fantastic, as well!

Trả lời

Thư điện tử của bạn sẽ không được hiển thị công khai. Các trường bắt buộc được đánh dấu *

one × 1 =