G
G
Groosha2015-02-14 23:58:03
Apache HTTP Server
Groosha, 2015-02-14 23:58:03

How to add multiple sites to Apache?

Hello, in this question I was wondering how to bind a specific domain to an IP. Is it possible to use multiple sites in Apache without a domain name, but simply by IP address?
I read all the official manuals, but everywhere a DNS record is required.
Isn't it possible to have:
my.ip.address:port/site1 get content from /www/site1
my.ip/address:port/site2 get content from /www/site2 ?
In the config, I created another VirtualName, specified ServerName, but this trick did not work

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2015-02-15
@merryjane

It is possible, but not a very good solution. Google for the apache Directory and Location tags.
Since you are already using non-standard ports, it is easier for you to use a separate non-standard port for each virtual host.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question