A
A
alexxxhost2015-05-26 12:09:55
Apache HTTP Server
alexxxhost, 2015-05-26 12:09:55

How to configure apache to run multiple sites on the same ip?

There is a server with Centos 6. The /var/www/html directory contains the following directories site1, site2, ....., siteN. How to configure access to this site as follows? http://192.168.0.10/site1, 192.168.0.10/site2 etc.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2015-05-26
@alexxxhost

This is called an alias. In the apache config you write
Alias /site1/ /var/www/html/site1/

D
Disen, 2015-05-26
@Disen

Google for the expression VirtualHost.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question