This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function handler(event) { | |
var request = event.request; | |
var uri = request.uri; | |
// Check if SPA App 1 Direcotry | |
if (uri.startsWith('/my-app-1')) { | |
request.uri = '/my-app-1/index.html'; | |
} | |
// Check whether the URI is missing a file name. | |
else if(uri.endsWith('/')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#install packages | |
sudo yum install clamav clamd | |
#update virus definition | |
sudo freshclam | |
vi /etc/freshclam.conf | |
UpdateLogFile /var/log/freshclam.log | |
LogFileMaxSize 20M | |
LogTime yes |