Configure nginx for virtual machine linux Why can t win7 be accessed through the IP?

Updated on technology 2024-05-06
7 answers
  1. Anonymous users2024-02-09

    If the protective wall is not closed, you need to set an exception, you can turn off the firewall and try it. In addition, if it is a Linux virtual machine installed in Win7, the network can be set to NAT mode. If it is on a different host, then it depends on the network structure, the simplest is to connect through a switch, without going through the router and do not need to set up a gateway, so that the IP can be changed to a similar one, which is the last different.

    Such as and; If you are in a different network segment, you have to use the tracer to see which node of the network (router or gateway) has the problem.

  2. Anonymous users2024-02-08

    Is the virtual NIC of the virtual machine external, and how is the gateway set up, it stands to reason that your configuration can only be accessible from this network segment.

  3. Anonymous users2024-02-07

    server_name

    the IP address of the access;

    location

    At the same time, --2010 09 11 will be recorded in the error log

    05:33:28 [error] 25107#0: *33370 access forbidden by rule, client:

    server: IP address of the access request:"get / http/",host: "the IP address of the access; "

  4. Anonymous users2024-02-06

    Set the port you want to listen to, and set the server name to IP+ port.

    server

    Reboot and then you can use that IP to access.

  5. Anonymous users2024-02-05

    Whether your domain name is resolved to the server and whether the domain name has an ICP filing cannot be accessed through the domain name.

  6. Anonymous users2024-02-04

    An NGINX server can only have one virtual host that allows IP access.

    As long as you add a default to the end of the server name, you can use the current server resolution under other domain names that are not defined by nginx (for example, if other servers do not define an IP address as the server name, the IP address will be sent to the default host).

  7. Anonymous users2024-02-03

    When configuring a domain name, if the domain name can be resolved to multiple IP addresses, the configured IP address is usually accessed by round-robin mode, and the access is fixed to that IP address.

    If the domain name corresponds to only one IP address, the two are equivalent, but configuring the domain name requires one more step of domain name resolution.

    If the IP address does not change, it is better to configure the domain name.

Related questions
6 answers2024-05-06

When creating or adding a hard disk for a virtual machine, select the IDE type, if you select SCSI, some older versions of Linux, such as Red Hat 9, will not recognize the hard disk.

6 answers2024-05-06

The virtual environment in the virtual machine will simulate a new network card in the real system, and this network card is the network card connected to the virtual machine network. That is, starting with the network, everything about virtual machines is virtual. So you will find that your Windows7 will appear with two IPs. >>>More

7 answers2024-05-06

Install the IP converter on your computer and select a different IP point on the IP software to connect. >>>More

8 answers2024-05-06

The steps to install the virtual machine are as follows:

1. First of all, you need to install the virtual machine software, if your computer is Windows system, VMware is recommended, and Apple Mac system is recommended Parallels Desktop. >>>More

5 answers2024-05-06

VM install Linux and you will get a lot of tutorials, and it's very simple.