Loading l3m-website-dist.conf +20 −4 Original line number Original line Diff line number Diff line Loading @@ -2,20 +2,36 @@ ServerName l3m.local ServerName l3m.local Serveralias www.l3m.local Serveralias www.l3m.local ServerAdmin addr@exp.ext DocumentRoot /var/www/directory Options FollowSymLinks Redirect permanent / https://l3m.local </VirtualHost> <VirtualHost *:443> ServerName l3m.local Serveralias www.l3m.local ServerAdmin addr@exp.ext ServerAdmin addr@exp.ext DocumentRoot /var/www/directory DocumentRoot /var/www/directory Options Indexes FollowSymLinks MultiViews Options FollowSymLinks MultiViews ErrorDocument 404 /index.php?action=404 ErrorDocument 404 /index.php?action=404 RedirectMatch 404 /\.git #ExpiresActive On #ExpiresByType image/png "access plus 1 year" #ExpiresByType text/css "access plus 1 year" #ExpiresByType text/javascript "access plus 1 year" RewriteEngine On RewriteEngine On RewriteRule ^/(about|changelog|rss|projects|contact|patate|eplucher)$ /index.php?action=$1 RewriteRule ^/(about|changelog|rss|projects|contact|patate|eplucher)$ /index.php?action=$1 RewriteRule ^/rss/(blog|projets)$ /rss/$1.xml RewriteRule ^/page/([0-9]+)$ /index.php?action=blog&page=$1 RewriteRule ^/page/([0-9]+)$ /index.php?action=blog&page=$1 RewriteRule ^/article/([-a-z0-9]+)$ /index.php?action=blog&title=$1 RewriteRule ^/article/([-a-z0-9]+)$ /index.php?action=blog&title=$1 RewriteRule ^/project/([-a-z0-9]+)$ /index.php?action=project&title=$1 RewriteRule ^/project/([-a-z0-9]+)$ /index.php?action=project&title=$1 RewriteRule ^/patate/(blog|project)/submit$ /index.php?action=patate&type=$1submit RewriteRule ^/patate/(blog|project)/submit$ /index.php?action=patate&type=$1submit RewriteRule ^/patate/(blog|project)/([-a-z0-9]+)/(edit|delete)$ /index.php?action=patate&type=$1$3&title=$2 RewriteRule ^/patate/(blog|project)/([-a-z0-9]+)/(edit|delete)$ /index.php?action=patate&type=$1$3&title=$2 </VirtualHost> </VirtualHost> l3m.sql +48 −1 Original line number Original line Diff line number Diff line Loading @@ -3,13 +3,19 @@ -- https://www.phpmyadmin.net/ -- https://www.phpmyadmin.net/ -- -- -- Client : localhost:3306 -- Client : localhost:3306 -- Généré le : Mar 12 Mars 2019 à 14:57 -- Généré le : Mar 19 Mars 2019 à 21:55 -- Version du serveur : 5.7.25-0ubuntu0.18.04.2 -- Version du serveur : 5.7.25-0ubuntu0.18.04.2 -- Version de PHP : 7.2.15-0ubuntu0.18.04.1 -- Version de PHP : 7.2.15-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- -- Base de données : `l3m` -- Base de données : `l3m` -- -- Loading @@ -32,6 +38,15 @@ CREATE TABLE `l3m_blog` ( `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Ce billet de blog ne dispose d''aucune description.' `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Ce billet de blog ne dispose d''aucune description.' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Vider la table avant d'insérer `l3m_blog` -- TRUNCATE TABLE `l3m_blog`; -- -- Contenu de la table `l3m_blog` -- -- -------------------------------------------------------- -- -------------------------------------------------------- -- -- Loading @@ -48,6 +63,20 @@ CREATE TABLE `l3m_projects` ( `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pas de description.' `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pas de description.' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Vider la table avant d'insérer `l3m_projects` -- TRUNCATE TABLE `l3m_projects`; -- -- Contenu de la table `l3m_projects` -- -- -- Index pour les tables exportées -- -- -- -- Index pour la table `l3m_blog` -- Index pour la table `l3m_blog` -- -- Loading @@ -59,3 +88,21 @@ ALTER TABLE `l3m_blog` -- -- ALTER TABLE `l3m_projects` ALTER TABLE `l3m_projects` ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `l3m_blog` -- ALTER TABLE `l3m_blog` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; -- -- AUTO_INCREMENT pour la table `l3m_projects` -- ALTER TABLE `l3m_projects` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; Loading
l3m-website-dist.conf +20 −4 Original line number Original line Diff line number Diff line Loading @@ -2,20 +2,36 @@ ServerName l3m.local ServerName l3m.local Serveralias www.l3m.local Serveralias www.l3m.local ServerAdmin addr@exp.ext DocumentRoot /var/www/directory Options FollowSymLinks Redirect permanent / https://l3m.local </VirtualHost> <VirtualHost *:443> ServerName l3m.local Serveralias www.l3m.local ServerAdmin addr@exp.ext ServerAdmin addr@exp.ext DocumentRoot /var/www/directory DocumentRoot /var/www/directory Options Indexes FollowSymLinks MultiViews Options FollowSymLinks MultiViews ErrorDocument 404 /index.php?action=404 ErrorDocument 404 /index.php?action=404 RedirectMatch 404 /\.git #ExpiresActive On #ExpiresByType image/png "access plus 1 year" #ExpiresByType text/css "access plus 1 year" #ExpiresByType text/javascript "access plus 1 year" RewriteEngine On RewriteEngine On RewriteRule ^/(about|changelog|rss|projects|contact|patate|eplucher)$ /index.php?action=$1 RewriteRule ^/(about|changelog|rss|projects|contact|patate|eplucher)$ /index.php?action=$1 RewriteRule ^/rss/(blog|projets)$ /rss/$1.xml RewriteRule ^/page/([0-9]+)$ /index.php?action=blog&page=$1 RewriteRule ^/page/([0-9]+)$ /index.php?action=blog&page=$1 RewriteRule ^/article/([-a-z0-9]+)$ /index.php?action=blog&title=$1 RewriteRule ^/article/([-a-z0-9]+)$ /index.php?action=blog&title=$1 RewriteRule ^/project/([-a-z0-9]+)$ /index.php?action=project&title=$1 RewriteRule ^/project/([-a-z0-9]+)$ /index.php?action=project&title=$1 RewriteRule ^/patate/(blog|project)/submit$ /index.php?action=patate&type=$1submit RewriteRule ^/patate/(blog|project)/submit$ /index.php?action=patate&type=$1submit RewriteRule ^/patate/(blog|project)/([-a-z0-9]+)/(edit|delete)$ /index.php?action=patate&type=$1$3&title=$2 RewriteRule ^/patate/(blog|project)/([-a-z0-9]+)/(edit|delete)$ /index.php?action=patate&type=$1$3&title=$2 </VirtualHost> </VirtualHost>
l3m.sql +48 −1 Original line number Original line Diff line number Diff line Loading @@ -3,13 +3,19 @@ -- https://www.phpmyadmin.net/ -- https://www.phpmyadmin.net/ -- -- -- Client : localhost:3306 -- Client : localhost:3306 -- Généré le : Mar 12 Mars 2019 à 14:57 -- Généré le : Mar 19 Mars 2019 à 21:55 -- Version du serveur : 5.7.25-0ubuntu0.18.04.2 -- Version du serveur : 5.7.25-0ubuntu0.18.04.2 -- Version de PHP : 7.2.15-0ubuntu0.18.04.1 -- Version de PHP : 7.2.15-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; -- -- -- Base de données : `l3m` -- Base de données : `l3m` -- -- Loading @@ -32,6 +38,15 @@ CREATE TABLE `l3m_blog` ( `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Ce billet de blog ne dispose d''aucune description.' `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Ce billet de blog ne dispose d''aucune description.' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Vider la table avant d'insérer `l3m_blog` -- TRUNCATE TABLE `l3m_blog`; -- -- Contenu de la table `l3m_blog` -- -- -------------------------------------------------------- -- -------------------------------------------------------- -- -- Loading @@ -48,6 +63,20 @@ CREATE TABLE `l3m_projects` ( `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pas de description.' `shortContent` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT 'Pas de description.' ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Vider la table avant d'insérer `l3m_projects` -- TRUNCATE TABLE `l3m_projects`; -- -- Contenu de la table `l3m_projects` -- -- -- Index pour les tables exportées -- -- -- -- Index pour la table `l3m_blog` -- Index pour la table `l3m_blog` -- -- Loading @@ -59,3 +88,21 @@ ALTER TABLE `l3m_blog` -- -- ALTER TABLE `l3m_projects` ALTER TABLE `l3m_projects` ADD PRIMARY KEY (`id`); ADD PRIMARY KEY (`id`); -- -- AUTO_INCREMENT pour les tables exportées -- -- -- AUTO_INCREMENT pour la table `l3m_blog` -- ALTER TABLE `l3m_blog` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; -- -- AUTO_INCREMENT pour la table `l3m_projects` -- ALTER TABLE `l3m_projects` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=0; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;