Skip to content

Instantly share code, notes, and snippets.

View jonasalbert's full-sized avatar

jonasalbert jonasalbert

View GitHub Profile
https://vuejsexamples.com/a-waterfall-layout-component-for-vue-js/
Redirect all requests to non-existent files and directories to home page
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /
1. check if apache is running
sudo systemctl status httpd
2. verify mod_write
httpd -M
check for rewrite_module (shared)
3. If the rewrite_module does not appear in the output, enable it by editing the 00-base.conf file with the vi editor:
sudo vi /etc/httpd/conf.modules.d/00-base.conf
insert: LoadModule rewrite_module modules/mod_rewrite.so
4. Setting up a .htaccess File
sudo vi /etc/httpd/conf/httpd.conf
------------------------------------------------------------------------------------------
FOR UBUNTU
------------------------------------------------------------------------------------------
sudo a2enmod rewrite
sudo service apache2 restart
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
FOR CENTOS
------------------------------------------------------------------------------------------
sudo chmod -R 775 storage
sudo chmod -R 775 bootstrap
less /var/log/aws/codedeploy-agent/codedeploy-agent.log
https://docs.aws.amazon.com/codepipeline/latest/userguide/tutorials-simple-codecommit.html
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-lamp-amazon-linux-2.html