Answer the question
In order to leave comments, you need to log in
How to create a site that is visible only to the organization?
Hello !
My task is to create a test web server on yii2 + oracle. Of course, adding a new virtual host is easy, but the problem is that on another computer I don’t see the newly created site, for example, test.example.edu.ru, which I created on the server. I would like to make the site accessible only within the organization
Given:
0)nginx
1) a server on ubuntu 11 that I don't have direct access to, I go there via xshell.
2) a lot of computers in the organization that should have access to this site
What I did:
0) followed the instructions of which are complete and no
1) .in /etc/hosts I tried first 127.0.0.1 test.example.edu.ru, checked it does not work . Installed 10.10.1.133 test.example.edu.ru. Same result.
I will be glad to your answers!
Answer the question
In order to leave comments, you need to log in
1. yii2+oracle - what a fierce combination))
2. "I followed some instructions" - this is, to put it mildly, not a complete description.
lay out what exactly they did, lay out configs, etc.
3. in order for the site to be accessible from the outside - it must either be registered in some kind of dns (which is correct), or by hand on each pc (which is not correct),
4. do not forget to do nginx reload when making changes to the configs. but in general see p2
This can be done:
1) on each computer in the organization, register the address in /etc/hosts. This is a bad way.
2) inside the organization, raise the DNS server, if it does not already exist. By DHCP (if DHCP is used) give the address of your DNS server. On this DNS server add. This is the normal way.
and what does not suit you with the host file Your ip 000.000.000.000 mycompany.com
You can enter from anything, mac windows, only you will know the address of the organization and ip.
if jeans + apache, is the proxy registered?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question