Skip to content

Instantly share code, notes, and snippets.

View lenybernard's full-sized avatar
🇹🇻

Leny BERNARD lenybernard

🇹🇻
  • Nantes
View GitHub Profile
FROM wordpress:5
RUN a2enmod ssl
config:
target: "https://example.com"
phases:
- duration: 300
arrivalRate: 25
name: "Warming up"
- duration: 300
rampTo: 50
name: "Little caress"
- duration: 300
config:
target: "https://example.com"
phases:
- duration: 300
arrivalRate: 25
name: "Warming up"
- duration: 300
arrivalRate: 5
rampTo: 50
name: "Little caress"
config:
target: "https://google.com"
phases:
- duration: 300
arrivalRate: 25
name: "Warming up"
- duration: 300
rampTo: 50
name: "Little caress"
- duration: 300
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
ports:
- "45562:3306"
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
ServerName mywebsite
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
<IfModule mod_ssl.c>
<VirtualHost *:443>
ServerName mywebsite.com
ProxyPreserveHost On
+ SSLProxyEngine On
+ SSLProxyVerify none
+ SSLProxyCheckPeerCN off
+ SSLProxyCheckPeerName off
+ SSLProxyCheckPeerExpire off
<VirtualHost *:80>
ServerName mywebsite.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:7051/
ProxyPassReverse / http://127.0.0.1:7051/
ProxyPassReverseCookieDomain 127.0.0.1 mywebsite.com
+ RewriteEngine on
+ RewriteCond %{SERVER_NAME} =mywebsite.com
<VirtualHost *:80>
ServerName mywebsite.com
ProxyPreserveHost On
ProxyPass / http://127.0.0.1:7051/
ProxyPassReverse / http://127.0.0.1:7051/
ProxyPassReverseCookieDomain 127.0.0.1 mywebsite.com
</VirtualHost>
@lenybernard
lenybernard / docker-compose.yml
Last active January 10, 2020 10:28
Wordpress docker-compose
version: '3.3'
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
ports:
- "45562:3306"