Configure paths for Production and Homologation on the server

0

The server was running version 5.5 of PHP , so I needed to switch to 7.1. But after restarting apache , it no longer loads the site.

Before there was the main site (production) and the test site (homologation), each in its folder inside the "/ var / www /", but now it seems that what made this path configuration was erased, since the two are pointing to the default folder "html", how can I configure this again, since I was not the one that set it the first time?

    
asked by anonymous 16.02.2018 / 19:17

1 answer

0

It is necessary that you configure a <VirtualHost> for the server and homologation and another for the production server.

Apache comes with a default setting of <VirtualHost> , which points to the /var/www/html folder. To modify this default configuration , access the /etc/apache2/sites-available/000-default.conf file and create a new one with your domain or IP configuration.

Ex:

<VirtualHost seudomain.com:80>
    ServerAdmin [email protected]
    DocumentRoot "/var/www/seusite"
    ServerName dominio.com
    ErrorLog "logs/dominio-error.log"
    CustomLog "logs/dominio-access.log" common
</VirtualHost>
    
16.02.2018 / 20:53