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
sudo ln -s /workspace/dir mydir | |
chown -R daldantas:www-data mydir |
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
<?php | |
// DATABASE GENERATOR | |
// CREATE DATABASE db; | |
// USE db; | |
// CREATE TABLE contacts ( | |
// id int(10) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, | |
// name varchar(255) NOT NULL, | |
// email varchar(255) NOT NULL, | |
// phone varchar(15) NOT NULL); | |
// INSERT INTO contacts (name, email, phone) VALUES |
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
RewriteEngine On | |
# Redirect to HTTPS WC | |
RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
RewriteCond %{HTTPS} off | |
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] |