top of page
cloud-vds.png
  • 2 Base de données

  • 2 VPS AMD

  • 4 instances ARM

  • Stockage 100 Go

  • 50k appels API

theme-light-dark-white.png

Créer un virtualhost



nano /etc/apache2/sites-available/mon-site.conf


<VirtualHost *:80>

DocumentRoot "/var/www/mon-site"

ServerName mon-site.com

ServerAlias www.mon-site.com


ErrorLog ${APACHE_LOG_DIR}/mon-site.error

CustomLog ${APACHE_LOG_DIR}/mon-site.access combined


<Directory /var/www/mon-site>

Require all granted

Options FollowSymlinks MultiViews

AllowOverride All


<IfModule mod_dav.c>

Dav off

</IfModule>


SetEnv HOME /var/www/mon-site

SetEnv HTTP_HOME /var/www/mon-site

Satisfy Any


</Directory>


</VirtualHost>


Remplacer mon-site par le nom de votre site



a2ensite mon-site


Pour le sécuriser en HTTPS :


certbot --apache


La suite à venir (cette partie est pour un élève)


Titre

Chargement...

Chargement...

Chargement...

bottom of page