A
A
alex_dark2016-03-30 13:25:26
Apache HTTP Server
alex_dark, 2016-03-30 13:25:26

How to set up Internet access to multiple sites on OpenServer?

There are following sites on OpenServer:

dev.test1.ru
dev.test2.ru
dev.test3.ru

External IP, suppose: 82.111.222.333
How and what to do so that all these sites can be accessed from the Internet?
I would like to be able to apply like this:
82.111.222.333/dev.test1.ru - открывался бы один сайт
82.111.222.333/dev.test2.ru - открывался бы другой сайт
82.111.222.333/dev.test3.ru - открывался бы третий сайт

At the moment, I can only link one site via alias... I.e. driving in 82.111.222.333one of the sites will open test, depending on what I link.
And I want everything at once :-)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
alex_dark, 2016-03-31
@alex_dark

I analyzed some facts and hap2yman 's answer :
When accessing the address myIP/domain, the desired site does not open, although logically it should, because for the IP address dev.testN.ruthis is the folder that it should open.
If there is a folder localhostand various sites in it, then you can access it in the address bar localhost/someSiteName- everything opens. And the folder localhostcorresponds to the address 127.0.0.1(local machine)
The documentation openServersays:
------
So. How to make several external sites:
1) In the folder , domainsdelete the folder localhost(or change its name to remove the association with 127.0.0.1)
2) In the folder domains, create a folder that will serve as the root for the domains. For example routeFolder. There will already be folders in it dev.test1.ru, dev.test2.ru, dev.test3.ru и т.д.
3) In the settings -> tab "Server" -> IP-address of the server we set our external IP
4) In the settings -> tab "Aliases" -> we bind the IP to the `routeFolder` folder and save the setting
Everything, restart the server.
PS Do not forget to open the port to enter from the external device.
PPS When typing IP, a folder with our domains will be visible. So that they are not visible, you can routeFolderthrow in the root (i.e. in the folder).htaccess, which will automatically redirect from the root, for example, to site No. 1

S
Sergey, 2016-03-30
@sadnezz

Link dev.test1.ru, create directories dev.test1.ru, dev.test2.ru and dev.test3.ru in it. This is not enough?

M
Mayamee, 2020-04-25
@Mayamee

2020-04-25 19:19:05 ---------------------------------------- ----
2020-04-25 19:19:05 Starting the server startup procedure
2020-04-25 19:19:06 IP address 178.67.192.229 not found in the system
2020-04-25 19:19:06 Startup failed!
Help solve

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question