Ошибка 113 no route to host

Frustrated with Zabbix 113  no route to host error? We can help you fix it.

In general, Zabbix 113 no route to host error is mainly related to the firewall.

At Bobcares, we often get requests to fix Zabbix errors, as a part of our Server Management Services.

Today, let’s see how our Support Engineers fix this Zabbix 113 no route to host error for our customers.

Why this Zabbix 113 no route to host error?

The Zabbix monitoring system is really helpful in monitoring the services. It alerts server administrators about server failures.

But we need to configure Zabbix and add servers to it.

However, often while adding servers, Zabbix 113 error occurs due to incorrect firewall settings. Or, it may even happen due to some bad routing/network configuration.

Today, we discuss in detail on this error and let’s see how our Support Engineers find a fix for this error.

How we fix this?

The fix for the Zabbix 113 error can vary based on the cause. Let’s now check them in detail.

Incorrect server key

Recently, one of our customers approached us saying that he was getting an error when he configured the Zabbix agent.

Zabbix 113 no route to host

So, we checked in detail and did the following:

Firstly, we checked whether we could connect to the server via ping and it was a success. As we were able to ping, then we confirmed that there was no network error.

So, we did a deep search and found that the server’s active key was not set in agentd configuration file. The customer was using the Zabbix Agent(Active). And, we filled them with the IP address of the Zabbix server.

Further, our Engineers added the key for the customer and this fixed the problem.

Fixing firewall

In a similar scenario, a customer had set up 2 Linux systems in the VM, one as a Zabbix server and the other as a Zabbix client.

However, when checked we found that the icon was showing up as red in Zabbix. The monitoring of the client using the server was failing.

We checked the network connectivity using ping command and it was failing.

Our Support Engineers found that the server firewall was blocking the host. So we modified the firewall to allow connections from the host. Then we deleted the host and created a new one.

And this fixed the Zabbix 113 error.

[Need assistance with Zabbix error – We can help you fix it]

Conclusion

In short, this error occurs mainly due to firewalls and can be fixed by stopping or by adding a rule in iptables. Also, we saw how our Support Engineers fixed the Zabbix 113 no route to host error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

I’ve got an Apache 2.0.52 server on CentOS 4 that front-ends a couple of App servers (mix of Jetty and Tomcat). Apache has a handful of virtual hosts configured like this:

<VirtualHost www1.example.com:443>
    ServerName www1.example.com
    DocumentRoot "/mnt/app_web/html"

    SSLEngine on
    SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
    SSLCertificateFile      /etc/httpd/conf/ssl.crt/server.crt
    SSLCertificateChainFile /etc/httpd/conf/ssl.crt/chain.crt
    SSLCertificateKeyFile   /etc/httpd/conf/ssl.key/server.key
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown downgrade-1.0 force-response-1.0

    RewriteEngine on
    RewriteRule ^/app1/(.*)$ http://app1.example.com:8080/app1/$1 [P,L]
    RewriteRule ^/app2/(.*)$ http://app2.example.com:8080/app2/$1 [P,L]
</VirtualHost>

However, I’m getting the following errors in the logs intermittently:

[Fri Dec 04 07:19:41 2009] [error] (113)No route to host: proxy: HTTP: attempt to connect to 10.0.0.1:8080 (app1.example.com) failed

I initially tried turning off IPv6, and that seemed to largely cure it, but I still have sporadic bursts of these messages.

Additionally, we’re running memcache on same front-end and during the times when I’m getting those messages in Apache’s log, the following command doesn’t work:

echo stats | nc 127.0.0.1 11211

No messages are printed, but neither are the stats printed. I am completely lost as to how to proceed with troubleshooting this. =(

I have 2 computers on the same LAN. The first PC has an ip address 192.168.178.30, the other PC has an ip address 192.168.178.26.
Ping, traceroute, telnet, ssh, everything works between the two PCs. Both PCs run the same OS — CentOS 7 and both PCs have the same python version 2.7.5 (checked with the python -V command).

I copied simple python code from a computer networking book.

client.py

from socket import *
serverName = '192.168.178.30'
serverPort = 12000
clientSocket = socket(AF_INET, SOCK_STREAM)
clientSocket.connect((serverName,serverPort))
sentence = raw_input('Input lowercase sentence: ')
clientSocket.send(sentence)
modifiedSentence = clientSocket.recv(1024)
print 'From Server:', modifiedSentence
clientSocket.close()

server.py

from socket import *
serverPort = 12000
serverSocket = socket(AF_INET,SOCK_STREAM)
serverSocket.bind(('192.168.178.30',serverPort))
serverSocket.listen(5)
print 'The server is ready to receive'
while 1:
       connectionSocket, addr = serverSocket.accept()
       sentence = connectionSocket.recv(1024)
       capitalizedSentence = sentence.upper()
       connectionSocket.send(capitalizedSentence)
       connectionSocket.close()

The code works when it is ran on the same PC (where the server is listening on localhost).
When I run the client code on one PC and the server code on the other PC I get this error on the client side.

Traceback (most recent call last):
  File "client.py", line 5, in <module>
    clientSocket.connect((serverName,serverPort))
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 113] No route to host

Can someone help?

I have 2 computers on the same LAN. The first PC has an ip address 192.168.178.30, the other PC has an ip address 192.168.178.26.
Ping, traceroute, telnet, ssh, everything works between the two PCs. Both PCs run the same OS — CentOS 7 and both PCs have the same python version 2.7.5 (checked with the python -V command).

I copied simple python code from a computer networking book.

client.py

from socket import *
serverName = '192.168.178.30'
serverPort = 12000
clientSocket = socket(AF_INET, SOCK_STREAM)
clientSocket.connect((serverName,serverPort))
sentence = raw_input('Input lowercase sentence: ')
clientSocket.send(sentence)
modifiedSentence = clientSocket.recv(1024)
print 'From Server:', modifiedSentence
clientSocket.close()

server.py

from socket import *
serverPort = 12000
serverSocket = socket(AF_INET,SOCK_STREAM)
serverSocket.bind(('192.168.178.30',serverPort))
serverSocket.listen(5)
print 'The server is ready to receive'
while 1:
       connectionSocket, addr = serverSocket.accept()
       sentence = connectionSocket.recv(1024)
       capitalizedSentence = sentence.upper()
       connectionSocket.send(capitalizedSentence)
       connectionSocket.close()

The code works when it is ran on the same PC (where the server is listening on localhost).
When I run the client code on one PC and the server code on the other PC I get this error on the client side.

Traceback (most recent call last):
  File "client.py", line 5, in <module>
    clientSocket.connect((serverName,serverPort))
  File "/usr/lib64/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 113] No route to host

Can someone help?

PC running slow?

  • 1. Download ASR Pro from the website
  • 2. Install it on your computer
  • 3. Run the scan to find any malware or virus that might be lurking in your system
  • Improve the speed of your computer today by downloading this software — it will fix your PC problems.

    This guide will identify some potential causes that can prevent access to a host with operating system error code 113, and then show you some ways to fix the problem. python returns 113 “No Tracking for Host” even though a DNS name is available, but the service might not work. May be specific to passive FTP options. Run your script with this “trace” to see which system call is failing.

    When trying to join a service on Linux, the “No path to host” message is one of the last things you want to hear. This is good, reliable and comprehensive news, which means your home computer cannot connect to the server regardless of whether a professional server daemon is running on your system in addition to the remote server running on your system. You cannot login for some reason. Here’s how to allow hosting connection without route error in Linux.

    Why Am I Getting The “No Route To Host” Error?

    How do I fix No route to host error?

    If you are using a standard dynamic IP network, the DNS numbers should be updated automatically. To manually configure DNS, go to Network Manager and manually enter the IP address in the IPv4 account. If in yourLinux distribution does not have a single graphical desktop, go to “/ etc / systemd / resolved.

    There are many reasons why you will definitely get this error. Networking in Linux is a bit of a convoluted stack, cute and complex, so it’s hard to figure out where the postman is.

    Host Is Down / Service Is Down

    This may sound frustrating, but obviously the first thing to check is that the server you are trying to connect to is online. He may not be pis working due to maintenance or has a problem.

    The service itself may have failed to start recently. If this is your website, you can ensure that support is up and running. To do this, run each of the following commands using systemd.

    Invalid Port

    What does Connection refused mean in telnet?

    Answer: Connection refused means that the port you are trying to connect to is not open. So you are basically connecting to the wrong IP or wrong port, or the whole server is listening on the wrong connection or not working. Question # one pair: what is Telnet protocol?

    You may be trying to connect to the wrong port. Many casual administrators prefer to frequently run targeted SSH services on different ports to ward off potential attackers.

    If the server is not owned by your company, check the available documentation contacts and their support team.

    For your own server, you can try using NMAP to see where you started your service.

    If you think you are using a really confusing port, you can use the -p- flag to see them all. However, this will take time.

    Blocking Iptables Is A Connection

    You can accidentally configure iptables to block connections on this port. You will receive a specific message ifyou have configured iptables on your current server or desktop to check correctly. To see your iptables mechanics run the following command.

    Your DNS Is Not Configured Correctly

    If all else fails, try ping the IP address you want to search for. Your computer may not be properly connected to the latest DNS server.

    If you can check the connection, but cannot connect to the domain, if you have a DNS problem, please indicate that you are shopping.

    os error code 113 no route to host

    Systemd users can open systemd-resolve --status to check the DNS servers and cleaners your system is using. The interface got in the way, so be sure to check the box you really want to connect with.

    In most cases, your computer will probably recognize DHCP-related DNS information. If you are using a static IP address or something is wrong with your network, you may need to set a new DNS manually.

    os error code 113 no route to host

    Open /etc/systemd/resolved.conf. In this file, uncomment the DNS line and add IThe P address of your router or a well-known DNS server. The default fallback DNS server for systemd is Google’s DNS server registered with FallbackDNS .

    If you are using OpenRC or a specific systemd alternative, you can find DNS information in /etc/resolv.conf.

    If nothing else, navigate to your router’s IP address, or sometimes another well-known DNS server you prefer to use.

    Graphical Interface

    If you are using Network Manager on a graphical desktop, it is best to change your login information. Open the applet or go directly to System Preferences. Select your connection and define the “ipv4” tab. Switch the connection in the store to “Manual” and manually enter the IP address of your computer and the IP address of your router as the gateway. Then enter the IP address of your individual IP router or the IP address of another DNS server in the DNS field below.

    Incorrect Network Or Host Configuration

    How do I fix No route to host SSH in Linux?

    Log in and go to the important command line. Then use a firewall cmd (RHEL / CentOS / Fedora) or perhaps UFW (Debian / Ubuntu) to open port 21 (or whatever port you’ve configured to use for SSH) on the firewall as shown below. Now try connecting to the remote server via SSH again.

    There are actually several other configuration options that might be incorrect overall. Any of them sIt makes it impossible to connect your computer to the server.

    First of all, make sure your computer has the correct network configuration. Check the system files yourself and, of course, see what other ways you can connect to the Internet.

    If you use a specific hostname and connect, or if specific types are configured on the server or borrower, you need to make sure they can connect to each other. Check the configurations / etc / hosts, /etc/hosts.allow, and /etc/hosts.deny.

    Finally, compare your server configuration. There might be something misconfigured on the server that is preventing clients from connecting correctly.

    I hope these tips helped you solve any problems that caused the “No route to host” error. Until then, you can learn how to control your WiFi right on your Linux network, or even check if your firewall is blocking all inbound and outbound connections.

    Is this article helpful?

    PC running slow?

    ASR Pro is the ultimate solution for your PC repair needs! Not only does it swiftly and safely diagnose and repair various Windows issues, but it also increases system performance, optimizes memory, improves security and fine tunes your PC for maximum reliability. So why wait? Get started today!

     sudo systemctl status SERVICENAME 
     sudo nmap -sS your.server.ip 

    John Perkins

    John is a very young professional technician who dreams of teaching users the best ways to use their technology. He holds comprehensive certifications in a variety of topics, from computer hardware components and cybersecurity to Linux system administration.

    Improve the speed of your computer today by downloading this software — it will fix your PC problems.

    Opgelost: Hoe Als Je Foutcode 113 Van Het Besturingssysteem Wilt Repareren, Geen Nummer Om Te Hosten.
    Исправлено: как исправить код ошибки операционной системы 113, разумеется, нет маршрута к хосту.
    Résolu : Comment Corriger Le Code D’erreur 113 Du Système D’exploitation, Aucune Piste à Héberger.
    Fast: Hur Man åtgärdar Operativsystemets Felkoder 113, Ingen Väg Till Värd.
    Behoben: So Beheben Sie Den Betriebssystemfehler Software 113, Keine Route Zum Host.
    수정됨: 시스템 오류 코드 113을 수정하는 방법, 호스트를 지원하는 경로가 없습니다.
    Solucionado: Cómo Ayudarlo A Corregir El Código De Error 113 Del Sistema Operativo, Sin Posibilidad De Hospedaje.
    Risolto: Come Correggere L’errore Del Sistema Operativo Codice Computer 113, Nessun Percorso Verso L’host.
    Naprawiono: Jak Pozbyć Się Kodu Błędu Systemu Operacyjnego 113, Brak Trasy, Gdy Trzeba Hostować.
    Corrigido: Como Corrigir O Código De Erro 113 Do Método Operacional, Sem Rota Para O Host.

    Frustrated with Zabbix 113  no route to host error? We can help you fix it.

    In general, Zabbix 113 no route to host error is mainly related to the firewall.

    At Bobcares, we often get requests to fix Zabbix errors, as a part of our Server Management Services.

    Today, let’s see how our Support Engineers fix this Zabbix 113 no route to host error for our customers.

    Why this Zabbix 113 no route to host error?

    The Zabbix monitoring system is really helpful in monitoring the services. It alerts server administrators about server failures.

    But we need to configure Zabbix and add servers to it.

    However, often while adding servers, Zabbix 113 error occurs due to incorrect firewall settings. Or, it may even happen due to some bad routing/network configuration.

    Today, we discuss in detail on this error and let’s see how our Support Engineers find a fix for this error.

    How we fix this?

    The fix for the Zabbix 113 error can vary based on the cause. Let’s now check them in detail.

    Incorrect server key

    Recently, one of our customers approached us saying that he was getting an error when he configured the Zabbix agent.

    Zabbix 113 no route to host

    So, we checked in detail and did the following:

    Firstly, we checked whether we could connect to the server via ping and it was a success. As we were able to ping, then we confirmed that there was no network error.

    So, we did a deep search and found that the server’s active key was not set in agentd configuration file. The customer was using the Zabbix Agent(Active). And, we filled them with the IP address of the Zabbix server.

    Further, our Engineers added the key for the customer and this fixed the problem.

    Fixing firewall

    In a similar scenario, a customer had set up 2 Linux systems in the VM, one as a Zabbix server and the other as a Zabbix client.

    However, when checked we found that the icon was showing up as red in Zabbix. The monitoring of the client using the server was failing.

    We checked the network connectivity using ping command and it was failing.

    Our Support Engineers found that the server firewall was blocking the host. So we modified the firewall to allow connections from the host. Then we deleted the host and created a new one.

    And this fixed the Zabbix 113 error.

    [Need assistance with Zabbix error – We can help you fix it]

    Conclusion

    In short, this error occurs mainly due to firewalls and can be fixed by stopping or by adding a rule in iptables. Also, we saw how our Support Engineers fixed the Zabbix 113 no route to host error.

    PREVENT YOUR SERVER FROM CRASHING!

    Never again lose customers to poor server speed! Let us help you.

    Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

    GET STARTED

    var google_conversion_label = «owonCMyG5nEQ0aD71QM»;

    In this guide, we will identify some possible causes that can cause Linux error 113 without host route, and then suggest possible solutions that you can try to resolve the issue.

    Don’t suffer from Windows errors anymore.

  • 1. Download and install ASR Pro
  • 2. Launch the application and click on the «Restore» button
  • 3. Select the files or folders you want to restore and click on the «Restore» button
  • Download this fixer software and fix your PC today.

    Answer: Connection refused means that the port you are trying to connect to is not even open. Either you are connecting to the wrong IP, or to the wrong port, or the server is listening very hard on the wrong port, or even one is down. Question # Step Two: What is Telnet Protocol?

    linux error 113 no route to host

    www.maketecheasier.com is usedcalls the security service to protect himself. Internet attacks. This process is done hands-free. You will be redirected as soon as the protection is complete.

    Link ID IP Address Date and Time
    661b720e3a3e44c780aac88b2ea8a930 45.140.179.112 04/01/2022 20:00 UTC

    Have you encountered “no route to host” when trying to access a Linux server? This connection error can be annoying, but unfortunately, you can fix it as soon as you find the cause.

    “No route to host” indicates a network problem, usually the only one that occurs when a device or host is not responding. This could be due to network needs or misconfiguration.

    This article explains how to troubleshoot your network.

    Are Your Network Settings Correct?

    How do I fix No route to host in Linux?

    Open the applet, perhaps go to your system settings. Select your connection and you will usually find the IPv4 tab. Switch the positive connection to “Manual” and manually enter the IP address of your computer and any IP address of your router as the current gateway. Then in the DNS discipline below, enter the IP address of your router, possibly the IP address of another web DNS.

    Before investigating more specific causes of this problem, make sure that the network settings for each person are correct. Can people connect to the internet? properly configured DNS?

    1. Let’s Let’s start with this command to find out: systemd-resolve –status
    2. If you are having DNS problems, go back to updating your network configuration and this on clicking If you are using a regular network with dynamic IP, all DNS numbers should update automatically.
    3. To manually configure DNS, go to Network Manager and manually enter the IP address on the IPv4 tab.
    4. If your Linux distro does not have a very graphical desktop, go to “/etc/systemd/resolved.conf” if you are looking for the DNS string and therefore numbers with numbers that include any DNS that you want and do other settings if you enable it.
    5. Even if you set up a very static IP address, you might want to revert to returning the IP address dynamically. Also allow your network to receive network connection information via DHCP.

    Remember to restart your computer by trying the computer before reconnecting it to the host. If the customer is still valid Reads the message “No Route Host” to continue reading.

    Is The Host Server On The Network?

    Why do I get no route to host?

    If you receive a “No route to the web” error during pre-deployment checks, it could indicate one of the following events: The server you are trying to connect to may have crashed. The server firewall usually blocks access to slot 22 (or SSH plugins configured on the server if the default port is not used).

    The next step is to help you make sure the host you are trying to connect to is indeed online. Finally, one of the most common new causes of failure is a service not being used due to maintenance results or, alternatively, due to some other problem.

    linux error 113 no route to host

    If the service is simply not online, make sure it is almost certainly a host. Sometimes it can happen that the service that was supposed to start stopped or was not started, even if there is no error on the server itself.

    1. Use the systemd command: sudo systemctl track record servicename

    If serving is your race, there are many more reasons to look.

    Are You Connecting To The Correct Port?

    Check out any documentation the host can provide. Manager servers typically block unused ports directly to improve server security. Attackers often use standard ports for targeted Linux services.

    Then when you want to try sub By connecting to your own server, you can trace the service back to the recovery port. To do this, you will need to install a security tool that will probably help you see open views – NMAP.ind

    Here are the commands for investing in NMAP for different Linux distributions:

    After placing NMAP, verify that the boot ports are displayed with the following command: sudo nmap -sS target-server-ip

    If you do not have direct access to the server, you will need to contact the host. But before you do that, take a look at some additional possible causes of the No Route to Host error in Linux.

    Is The Hostname Really Correct?

    You may also find a “No route to host” error if your computer and the devices you are trying to connect to others are using hostnames. Both devices must be configured to connect and one the other.

    Don’t suffer from Windows errors anymore.

    Is your computer acting up? Are you getting the dreaded blue screen of death? Relax, there’s a solution. Just download ASR Pro and let our software take care of all your Windows-related problems. We’ll detect and fix common errors, protect you from data loss and hardware failure, and optimize your PC for maximum performance. You won’t believe how easy it is to get your computer running like new again. So don’t wait any longer, download ASR Pro today!

  • 1. Download and install ASR Pro
  • 2. Launch the application and click on the «Restore» button
  • 3. Select the files or folders you want to restore and click on the «Restore» button
  • In addition to the usual host configuration, you want to use .deny and hosts.allow formats in “/ etc” formats. If you are having trouble connecting to your new computer, make sure the hostname of the server is correct.

    Is The Connection BlockingAny Iptables?

    iptables is very useful when you want to tweak the Linux kernel firewall tables. It’s great to have complete control over your inbound and outbound traffic.

    But due to a quick configuration error, iptables can block any connection to the port you want to connect to and cause a “No route to host” error.

    1. First, print a list of these connections and iptables by typing sudo iptables -L and pressing Enter.
    2. To check if iptables is at fault, run the following command: sudo iptables -S. This will let you know if the iptables rules you have set are blocking the connection. You may need to add an admission rule to INPUT
    3. To find in any good external firewall firewall rules, you can use the following command: sudo -F iptables

    Final Thoughts

    As you can see, the above steps can help you deal with the “No route to host” error. While this looks like a complex issue, it is often the result of conflicting configurations or general network problems.

    Have you come across any other possible reasons and ways to fix errors? Write us a comment and tell us about it.

    Download this fixer software and fix your PC today.

    Oshibka Linux 113 Net Marshruta K Hostu
    Linux Fehler 113 Keine Route Zum Host
    Erro 113 Do Linux Sem Rota Para O Host
    Erreur Linux 113 Pas De Route Vers L Hote
    Linux Fel 113 Ingen Vag Till Vard
    Linux 오류 113 호스트에 대한 경로가 없습니다
    Errore Linux 113 Nessuna Rotta Per L Host
    Linux Error 113 Geen Route Naar Host
    Error De Linux 113 Sin Ruta Al Host
    Blad Linux 113 Brak Trasy Do Hosta

    William Bronson

    I have 2 computers on the same LAN. The first PC has an ip address 192.168.178.30, the other PC has an ip address 192.168.178.26.
    Ping, traceroute, telnet, ssh, everything works between the two PCs. Both PCs run the same OS — CentOS 7 and both PCs have the same python version 2.7.5 (checked with the python -V command).

    I copied simple python code from a computer networking book.

    client.py

    from socket import *
    serverName = '192.168.178.30'
    serverPort = 12000
    clientSocket = socket(AF_INET, SOCK_STREAM)
    clientSocket.connect((serverName,serverPort))
    sentence = raw_input('Input lowercase sentence: ')
    clientSocket.send(sentence)
    modifiedSentence = clientSocket.recv(1024)
    print 'From Server:', modifiedSentence
    clientSocket.close()
    

    server.py

    from socket import *
    serverPort = 12000
    serverSocket = socket(AF_INET,SOCK_STREAM)
    serverSocket.bind(('192.168.178.30',serverPort))
    serverSocket.listen(5)
    print 'The server is ready to receive'
    while 1:
           connectionSocket, addr = serverSocket.accept()
           sentence = connectionSocket.recv(1024)
           capitalizedSentence = sentence.upper()
           connectionSocket.send(capitalizedSentence)
           connectionSocket.close()
    

    The code works when it is ran on the same PC (where the server is listening on localhost).
    When I run the client code on one PC and the server code on the other PC I get this error on the client side.

    Traceback (most recent call last):
      File "client.py", line 5, in <module>
        clientSocket.connect((serverName,serverPort))
      File "/usr/lib64/python2.7/socket.py", line 224, in meth
        return getattr(self._sock,name)(*args)
    socket.error: [Errno 113] No route to host
    

    Can someone help?

    Выводит ошибку в логе «Нет маршрута для размещения»

    error.log:

    2017/12/15 10:49:12 [error] 377#377: *6 connect() failed (113: No route to host) while connecting to upstream, client: 10.12.4.5, server: 10.12.4.245, request: "GET /favicon.ico HTTP/1.1", upstream: "http://10.12.4.245:80/favicon.ico", host: "10.12.4.242", referrer: "http://10.12.4.242/"

    Помогите пожалуйста кто сможет, что я не так настроил?

    nginx.conf:

    upstream puma {
      server unix:///home/solovievga/phonebook-api/tmp/sockets/puma.sock;
    }
    server {
    listen   80 default;
    listen   [::]:80 default ipv6only=on;
    
    server_name 10.12.4.245;
    root /home/solovievga/phonebook-api;
    
    location / {
    root /home/solovievga/phonebook-api/phonebook-app/dist;
    index index.html index.htm;
            try_files $uri @app;
            gzip_static on;
            expires max;
            proxy_read_timeout 150;
            add_header Cache-Control public;
      }
    
    
      try_files $uri/index.html $uri @puma;
      location @puma {
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_redirect off;
        proxy_pass http://puma;
      }
       location @app {
         proxy_pass        http://10.12.4.245;
         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 http;
         proxy_set_header  Host $http_host  ;
         proxy_redirect    off;
         proxy_next_upstream error timeout invalid_header http_502;
        }
    
      client_max_body_size 50M;
      keepalive_timeout 10;
    }

    Понравилась статья? Поделить с друзьями:
  • Ошибка 1116 фольксваген бора
  • Ошибка 113 apk
  • Ошибка 1116 опель мерива а z16xep
  • Ошибка 1116 опель астра
  • Ошибка 1114 на сайте на телефоне