There are VPS with Ubuntu and apache2. If you access the server through a browser using an ip or domain name (for example, mysite.ru), the default apache page is displayed, which lives in / var / www / html. How and what needs to be configured so that you can access other sites on the same server through a slash (for example, misite.ru \ site1, misite.ru \ site2, etc.)?

  • 2
    alias - your friend - aleksandr barakin
  • About aliases, the idea is good, but it did not work. Here I have /etc/apache2/apache2.conf, it has a folder with virtual hosts Include vhosts /, and in that folder www-roots / mysite.ru with several Directory blocks. Everything works for the main site. I tried to add the <Directory / var / www / blog> block in the example "Alias ​​/ blog / var / www / blog" and put index.html in the appropriate folder. But the server does not return anything at mysite.ru/blog - Pustota

0