B
B
bro-dev2017-06-06 12:42:14
Computer networks
bro-dev, 2017-06-06 12:42:14

Is it possible to make several sites without a domain from 1 IP address?

Is it possible for sites to work separately, for example
, 123.123.123.123:123, and
123.123.123.123:321
Or without a http current domain on port 80 and not doing a few in any way?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
ralaton121, 2017-06-06
@ralaton121

Can. But:
1. If your sites are not specific, when users themselves KNOW that they need to go to a non-standard port, then this cannot be done. All users and all search engines go to port 80 by default.
2. You can perfectly put at least 1000 sites on one IP address and on one port 80. See "named based virtual host" - and in general it is STANDARD, they do it.

S
Saboteur, 2017-06-06
@saboteur_kiev

Apache can listen to several ports at once, and for each port you can specify your own virtual host, that is, yes - there are several sites on different ports on one IP.
I won’t tell you for nginx, of course you can raise several nginx-s on different ports =), but if he doesn’t know how, Apache is better.

Listen 123
Listen 321
Listen 80

# Listen for virtual host requests on all IP addresses
NameVirtualHost *:123
<VirtualHost *:123>
DocumentRoot /var/www/site1
ServerName www.site1.com
</VirtualHost>

NameVirtualHost *:321
<VirtualHost *:321>
DocumentRoot /var/site2
ServerName www.site2.org
</VirtualHost>

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/site3
ServerName www.site3.org
</VirtualHost>

A
Alexander, 2017-06-06
@NeiroNx

domain and port 80 are needed only for indexing by search engines.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question