Documentation du Dr FRAPPE

Ce wiki regroupe les résultats de mes expériences en informatique accumulés au cours de mes recherches sur le net.

Dans la mesure du possible, j'ai cité mes sources ; il en manque certainement… :-)

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
notes:essais:nginxapache:start1 [2022/02/17 09:42] – [J'ai actuellement un vps en debian 8 qui a un serveur nginx avec un gitlab.] adminnotes:essais:nginxapache:start1 [2022/08/13 21:57] (Version actuelle) – modification externe 127.0.0.1
Ligne 18: Ligne 18:
 libapache2-mod-php7.4: Could not switch to prefork MPM, not enabling PHP 7.4 libapache2-mod-php7.4: Could not switch to prefork MPM, not enabling PHP 7.4
 ... ...
-</cli>+...@...:~$ tree /etc/apache2/sites-available/ 
 +/etc/apache2/sites-available/ 
 +├── 000-default.conf 
 +└── 000-default.conf.original
  
 +0 directories, 2 files
 +nicolas@chateau:~$ tree /etc/apache2/
 +/etc/apache2/
 +├── conf-available
 +├── conf-enabled
 +├── mods-available
 +├── mods-enabled
 +├── sites-available
 +│   ├── 000-default.conf
 +│   └── 000-default.conf.original
 +└── sites-enabled
 +
 +6 directories, 2 files</cli>
 +
 +<code apache /etc/apache2/sites-available/000-default.conf.original>
 +<VirtualHost *:80>
 +    # The ServerName directive sets the request scheme, hostname and port that
 +    # the server uses to identify itself. This is used when creating
 +    # redirection URLs. In the context of virtual hosts, the ServerName
 +    # specifies what hostname must appear in the request's Host: header to
 +    # match this virtual host. For the default virtual host (this file) this
 +    # value is not decisive as it is used as a last resort host regardless.
 +    # However, you must set it for any further virtual host explicitly.
 +    #ServerName www.example.com
 +
 +    ServerAdmin webmaster@localhost
 +    DocumentRoot /var/www/html
 +
 +    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
 +    # error, crit, alert, emerg.
 +    # It is also possible to configure the loglevel for particular
 +    # modules, e.g.
 +    #LogLevel info ssl:warn
 +
 +    ErrorLog ${APACHE_LOG_DIR}/error.log
 +    CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 +    # For most configuration files from conf-available/, which are
 +    # enabled or disabled at a global level, it is possible to
 +    # include a line for only one particular virtual host. For example the
 +    # following line enables the CGI configuration for this host only
 +    # after it has been globally disabled with "a2disconf".
 +    #Include conf-available/serve-cgi-bin.conf
 +</VirtualHost>
 +
 +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 +</code>
 +
 +<code apache /etc/apache2/sites-available/000-default.conf>
 +<VirtualHost *:80>
 +    # The ServerName directive sets the request scheme, hostname and port that
 +    # the server uses to identify itself. This is used when creating
 +    # redirection URLs. In the context of virtual hosts, the ServerName
 +    # specifies what hostname must appear in the request's Host: header to
 +    # match this virtual host. For the default virtual host (this file) this
 +    # value is not decisive as it is used as a last resort host regardless.
 +    # However, you must set it for any further virtual host explicitly.
 +    #ServerName www.example.com
 +
 +    ServerAdmin webmaster@localhost
 +    DocumentRoot /var/www/html
 +
 +    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
 +    # error, crit, alert, emerg.
 +    # It is also possible to configure the loglevel for particular
 +    # modules, e.g.
 +    #LogLevel info ssl:warn
 +
 +    ErrorLog ${APACHE_LOG_DIR}/error.log
 +    CustomLog ${APACHE_LOG_DIR}/access.log combined
 +
 +    # For most configuration files from conf-available/, which are
 +    # enabled or disabled at a global level, it is possible to
 +    # include a line for only one particular virtual host. For example the
 +    # following line enables the CGI configuration for this host only
 +    # after it has been globally disabled with "a2disconf".
 +    #Include conf-available/serve-cgi-bin.conf
 +</VirtualHost>
 +
 +# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
 +</code>
 ===== J'ai actuellement un vps en debian 8 qui a un serveur nginx avec un gitlab. ===== ===== J'ai actuellement un vps en debian 8 qui a un serveur nginx avec un gitlab. =====