Skip to content

Legacy notes

Use pgadmin to adjust market holidays. Need to add one record for each day of holiday in MarketHoliday markets table at AWS.

For FNSX, You can see existing holidays with select _ from public.allholidaysformarket(‘FNSX’). To add new dates with the addholiday function. E.g. select _ from public.addholiday(‘FNSX’, ‘2024-12-25’).

Adding new Motif website to server (Apache2)

Section titled “Adding new Motif website to server (Apache2)”
  1. Log into server with Apache2

  2. cd /var/www

  3. create sub directory for Motif website sudo mkdir <Motif website folder name>

  4. Set ownership to motif: sudo chown motif:motif <Motif website folder name>

  5. Back to home cd ~

  6. Create soft link to new directory from home ln -s /var/www/<Motif website folder name>

  7. Go into apache-sites subdirectory cd apache-sites

  8. Copy an existing Motif website conf file to name of new Motif website sudo cp <existing>.conf <Motif website folder name>.conf

  9. Open new .conf file with Nano sudo nano <Motif website folder name>.conf

  10. Change references to existing site to new Motif website - then save

  11. Enable new website sudo a2ensite <Motif website folder name>

  12. Reload apache sudo systemctl reload apache2

  13. Can review new site with sudo apache2ctl -S

  14. Log into AWS console

  15. Go to Route 53 | Hosted zones

  16. Select (or add) Hosted zone under which website will run

  17. Create an Alias A record for website host name and point it to dualstack.tenant-...

  18. Go to EC2 | Load balancers

  19. Select tenant-...

  20. For both HTTPS:443 and HTTP:80 listeners do the following:

  21. Select listener

  22. Add (or edit) HTTP Host Header is <website host name> and forward to target group specifying server(s) where website is hosted under apache