Legacy notes
Market Holiday
Section titled “Market Holiday”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)”-
Log into server with Apache2
-
cd /var/www -
create sub directory for Motif website
sudo mkdir <Motif website folder name> -
Set ownership to motif:
sudo chown motif:motif <Motif website folder name> -
Back to home
cd ~ -
Create soft link to new directory from home
ln -s /var/www/<Motif website folder name> -
Go into apache-sites subdirectory
cd apache-sites -
Copy an existing Motif website conf file to name of new Motif website
sudo cp <existing>.conf <Motif website folder name>.conf -
Open new .conf file with Nano
sudo nano <Motif website folder name>.conf -
Change references to existing site to new Motif website - then save
-
Enable new website
sudo a2ensite <Motif website folder name> -
Reload apache
sudo systemctl reload apache2 -
Can review new site with
sudo apache2ctl -S -
Log into AWS console
-
Go to Route 53 | Hosted zones
-
Select (or add) Hosted zone under which website will run
-
Create an Alias A record for website host name and point it to
dualstack.tenant-... -
Go to EC2 | Load balancers
-
Select
tenant-... -
For both
HTTPS:443andHTTP:80listeners do the following: -
Select listener
-
Add (or edit)
HTTP Host Header is <website host name>and forward to target group specifying server(s) where website is hosted under apache