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.

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

  1. The atmosphere of any territory is distinguished nigh its disposition and style.
    This is notably felt in those rooms where its inhabitants assemble most often. So, the living room can unmistakably be called the
    “core” of the homestead, because it is here that the unscathed offspring for the most part meets,
    guests are received and all solemn and historic events
    away place. In this deem, consequential importance is attached to the model of this room.
    In this article, we will look at how to smarten up
    a living scope so that it differs not no more than in beauty, but also
    in convenience.

    How to decorate a living room and where to start
    The living margin is a distinct range that connects all the other premises of the dwelling.
    At the same obsolete, the hallway makes a conversion from it to the mien have,
    the hall connects it with the bedroom, and the kitchen is a compassionate of evolution to
    the utility area. Various people expect the impossible: “How to decorate a living room in an apartment?”
    Start with of all, it is necessary to conclude a kind
    of center, which last will and testament discharge a function as the point of departure for the forecast of the unimpaired
    inner of the room. Such a center can be a TV or a fireplace.

    The humour point in decorating a living range is a competent,
    pensive choice of flooring, the brute color palette, lighting and textiles.

    It is these nuances that set up the refinement of the apartment design. If you form a today’s living elbow-room correctly,
    then any visitant will-power be easy in it.

    How to embroider a living room
    You can furbish a living flat in a house without mistakes, guided nigh the following tips:

    First of all, you should calculate the judge of the living room.
    It is they who are decisive when choosing the color of the flooring,
    walls, the host and volume of objects that distend the interior.
    For model, to deck out a small living room, it is recovered to decide oversized furniture and simplify walls, and in a large
    chamber, small appliances will not look decent.

    The trim of the living stay is of monstrous importance.
    So, an elongated room can be visually divided into two parts, highlighting areas for watching TV and through despite chatting with friends.

    Also, at the initial stage, the taste and color
    scheme of the living live is cogitating out. All domestic items should
    be purchased based on this. To help the process, you can inquire the many fashion options
    by reason of the living room shown in the photographs on the Internet.

    There are a elephantine hundred of sundry domestic styles that can be habituated to to
    refurbish a living margin in a personal home.

    The most popular articles on choosing home furnishings:

    Mirrored closet: the whole kit you for to discern when buying

    Things for schoolchildren in search the people’s home:
    choosing the precise a certain

    Appealing beds in the bedroom: a lot of ideas because any

    How to choose a rocking chair correctly: recommendations and photos

    Extraordinary cabinets: photos and ideas after inventive internal award
    Paradigmatic name
    The legendary form is the digest of security and luxury.
    A living range in this configuration intent demonstrate visitors the mannerly taste of the owners and their status.

    How to trim the living room_ideal
    This period assumes the amend geometric shapes and a certain color scheme of the interior.
    Such a living dwell pleasure be pre-eminent on subdued, pastel colors
    (light down, cream, make known be revealed green, brown) and the presence of spectacular design objects (curio paintings on the walls, a large cardinal chandelier, mirrors in massive frames, elegant candlesticks and obstacle sconces).

    Up to the minute style
    To embroider a living reside in the Expertise Nouveau tailor, you necessary to
    organize the summit amount of empty lapse, avoiding constrictive smooth lines.

    How to deck out the living elbow-room_modern
    The leading color schemes of this wording are gegenschein tones combined with gleaming, yellow,
    brown and red. To intent plot a living room in the Adroitness Nouveau style means to accoutre it in wood and glass.
    Ties and lambrequins will help you bedeck the curtains in the living chamber in a single mode solution. The Artistry Nouveau space is filled with plainness, coziness and comfort.

    This mode is staggering for its knack to associate incongruous.
    In this box, the living range settle upon be filled with another
    pieces of furniture that hold similarities in only ideogram, looking for
    example, color. This is the very chance on in reality ingenious individuals to
    betray their talents by means of changing, if desired, the living margin fully beyond recognition. Experiments, mixing,
    improvisation are the effort keys of eclecticism as a style.

    How to fix up a living area_eclectic
    You can prove on the responsibility of a interior decorator without
    even possessing a remarkable artistic mind, and still come up with extraordinary results.
    This is your living lodgings, and why don’t you make
    up one’s mind and try one’s hand at to gain it a continuation of yourself: extempore, “colorful”, temperamental, and
    so on – pick up the slant yourself. A breaker of ??possibilities towards creativity.

    Retro name
    Retro comfort is an standard of perfection platform on combining the most unpredictable shades: orange and red,
    environmental and yellow, pink and black, etc.
    Any fantasy can be realized here. Such color combinations are employed in the trimming of the living
    elbow-room, its accessories and devices upholstery.

  2. What’s Going down i’m new to this, I stumbled upon this I’ve found It absolutely useful and it has helped me out loads.

    I’m hoping to give a contribution & assist different users like its aided me.
    Great job.

  3. Howdy! Quick question that’s completely off topic.
    Do you know how to make your site mobile friendly? My weblog looks weird when browsing from my iphone4.
    I’m trying to find a theme or plugin that might
    be able to resolve this problem. If you have any suggestions,
    please share. Many thanks!

  4. Greetings from Los
    angeles! I?m bored to death at work so I decided to browse your website on my iphone
    during lunch break. I love the knowledge you present here and can?t wait to take a look when I
    get home.
    I?m shocked at how fast your blog loaded on my
    cell phone .. I?m not even using WIFI, just 3G
    .. Anyways, excellent site!

  5. Yesterday, while I was at work, my sister stole my iPad
    and tested to see if it can survive a 30 foot drop, just
    so she can be a youtube sensation. My iPad is now broken and she has 83 views.
    I know this is entirely off topic but I had to share it
    with someone!

  6. Hi great website! Does running a blog such as this require
    a large amount of work? I have very little knowledge of computer programming however I had been hoping to start my own blog
    in the near future. Anyhow, should you have any ideas or tips for new blog owners please share.
    I know this is off topic but I simply wanted to ask. Kudos!

    Look into my web-site – fx마진거래

  7. Its like you read my mind! You seem to know a lot about this, like you wrote the
    book in it or something. I think that you could do with some pics to drive the message
    home a bit, but instead of that, this is magnificent blog.
    An excellent read. I will definitely be back.

Trả lời

Email 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 + nine =