I wanted to attach Yandex.Maps to my project. To do this, you need to get an API key, and for this you need to specify the correct domain. My project is located at http: // palitra /, and this is an incorrect domain, how to make it possible to log in to the same host, under a different address (mirror), for example http: //maps.palitra/ without creating subdomains, and transferring the entire project to another folder?

    1 answer 1

    1. Register a copy of the VirtualHost site from vhosts.conf in httpd.conf, correcting ServerName and ServerAlias.
    2. Add the entry "127.0.0.1 maps.palitra" to the system hosts file.
    • And in the file .htaccess nothing can be done? - chuikoff 1
    • Possible: if the request comes to palitra, then through .htaccess (or httpd.conf) you can redirect it to another folder (and it seems easier to do this on a Unix server - due to the format of the path). In this case, the problem is the opposite: create a separate "host" to which requests will be received in the same folder ... The httpd.conf and vhosts.conf files are located at: / usr / local / apache / conf /. - FreeTimer