Skip to content

Commit

Permalink
Update INSTALL.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarzin authored Dec 22, 2023
1 parent 21d0f6f commit e1b5173
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,16 +221,18 @@ Next, create a new Apache virtual host configuration file to serve the Mercator

Add the following lines:

<VirtualHost *:80>
```xml
<VirtualHost *:80>
ServerName mercator.local
ServerAdmin admin@example.com
DocumentRoot /var/www/mercator/public
<Directory /var/www/mercator>
AllowOverride All
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
</VirtualHost>
```

Save and close the file when you are done. Next, enable the Apache virtual host and the rewrite module with the following command:

Expand All @@ -257,10 +259,12 @@ Here is the configuration file for HTTPS
SSLCertificateFile /etc/apache2/certs/certs/carto.XXXXX.crt
SSLCertificateKeyFile /etc/apache2/certs/private/private.key
SSLCertificateChainFile /etc/apache2/certs/certs/XXXXXCA.crt
<Directory /var/www/mercator/public>
AllowOverride All
ErrorLog ${APACHE_LOG_DIR}/mercator_error.log
CustomLog ${APACHE_LOG_DIR}/mercator_access.log combined
<Directory /var/www/mercator/public>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/mercator_error.log
CustomLog ${APACHE_LOG_DIR}/mercator_access.log combined
</VirtualHost>
```

To force HTTPS redirection you have to set this parameter in .env
Expand Down

0 comments on commit e1b5173

Please sign in to comment.