π»π³
This file contains 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
0. Do this step 1 time only | |
vim /your_laradock_location/apache2/Dockerfile, add these line before the "COPY vhost.conf /etc/apache2/sites-enabled/vhost.conf" line and "ENTRYPOINT" line: | |
RUN mkdir /etc/apache2/ssl/ | |
COPY ssl /etc/apache2/ssl/ | |
---- | |
1. Prepare your cert, key, ca files for your site at: /your_laradock_location/apache2/ssl/your_site/your_files | |
2. In your config file at host: /your_laradock_location/apache2/sites/your_site.conf, add to "<VirtualHost *:443>": | |
SSLCertificateFile /etc/apache2/ssl/your_site/your_crt.crt |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am daubac402 on github. | |
* I am daubac402 (https://keybase.io/daubac402) on keybase. | |
* I have a public key ASAdoYrKDbbygnnrNlNnHEfLK68cqY6iKZn-ece6UosGBwo | |
To claim this, I am signing this object: |
This file contains 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
# Condition | |
SetEnvIf Request_URI ^/your_secure_path auth=1 | |
# Basic Authen | |
AuthName "Basic Auth" | |
AuthType Basic | |
AuthUserFile "/path/to/my/.htpasswd" | |
This file contains 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
# Some of URLs were crawled by Google with "index.php". Redirect "bad" URLs .../index.php to correct once .../, without index.php | |
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] | |
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L] |
This file contains 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
Remove sendmail | |
# yum remove sendmail | |
------------------------------------ | |
Install Postfix | |
# yum install postfix | |
------------------------------------ | |
Configure Postfix | |
# vim /etc/postfix/main.cf |
This file contains 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
openssl x509 -req -in your_file.csr -signkey your_file.key -out your_file.crt |
This file contains 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
# You want to copy/replace a/sub_i/sub_j/x.html to b/.., c/.. etc. | |
# (your_current_dir) | |
# |___a | |
# | |____sub_i | |
# | |____sub_j | |
# | |____x.html | |
# |___b | |
# | |____sub_i | |
# | |____sub_j | |
# | |____x.html |
This file contains 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
# You can change httpd to apache, apache2, ... that match with your env | |
ps -ylC httpd | awk '{x += $8;y += 1} END {print "Apache Memory Usage (MB): "x/1024; print "Average Proccess Size (MB): "x/((y-1)*1024)}' |
This file contains 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
1. composer require reliese/laravel | |
2. Add the service provider to your config/app.php file | |
Reliese\Coders\CodersServiceProvider::class | |
3. Publish the config file with | |
php artisan vendor:publish --tag=reliese-models | |
4. Make sure your database is correctly configured in config/database.php and .env files. |