Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédenteDernière révisionLes deux révisions suivantes | ||
notes:essais:nginxapache:start1 [2022/02/16 09:45] – [Cohabitation apache2 et nginx] admin | notes:essais:nginxapache:start1 [2022/02/17 09:50] – [Essai d'installation de LAMP alors que nginx est en fonction] admin | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
====== Cohabitation apache2 et nginx ====== | ====== Cohabitation apache2 et nginx ====== | ||
- | ??? J'ai actuellement un vps en debian 8 qui a un serveur nginx avec un gitlab. | + | ===== Essai d' |
+ | |||
+ | <cli prompt=' | ||
+ | ... | ||
+ | Les paquets supplémentaires suivants seront installés : | ||
+ | libapache2-mod-php7.4 | ||
+ | Les NOUVEAUX paquets suivants seront installés : | ||
+ | libapache2-mod-php libapache2-mod-php7.4 php-pear | ||
+ | ... | ||
+ | Souhaitez-vous continuer ? [O/n] | ||
+ | ... | ||
+ | No module matches | ||
+ | apache2_switch_mpm: | ||
+ | libapache2-mod-php7.4: | ||
+ | ... | ||
+ | ...@...:~$ tree / | ||
+ | / | ||
+ | ├── 000-default.conf | ||
+ | └── 000-default.conf.original | ||
+ | |||
+ | 0 directories, | ||
+ | nicolas@chateau: | ||
+ | / | ||
+ | ├── conf-available | ||
+ | ├── conf-enabled | ||
+ | ├── mods-available | ||
+ | ├── mods-enabled | ||
+ | ├── sites-available | ||
+ | │ ├── 000-default.conf | ||
+ | │ └── 000-default.conf.original | ||
+ | └── sites-enabled | ||
+ | |||
+ | 6 directories, | ||
+ | |||
+ | <code apache / | ||
+ | < | ||
+ | # 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' | ||
+ | # 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 / | ||
+ | |||
+ | # 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}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | # For most configuration files from conf-available/, | ||
+ | # 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 " | ||
+ | #Include conf-available/ | ||
+ | </ | ||
+ | |||
+ | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet | ||
+ | </ | ||
+ | |||
+ | <code apache / | ||
+ | < | ||
+ | # 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' | ||
+ | # 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 / | ||
+ | |||
+ | # 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}/ | ||
+ | CustomLog ${APACHE_LOG_DIR}/ | ||
+ | |||
+ | # For most configuration files from conf-available/, | ||
+ | # 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 " | ||
+ | #Include conf-available/ | ||
+ | </ | ||
+ | |||
+ | # vim: syntax=apache ts=4 sw=4 sts=4 sr noet | ||
+ | </ | ||
+ | ===== 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. | ||
Je souhaiterais mettre en place un serveur apache2 avec un site web pour le faire fonctionner en parallèle avec nginx, par exemple : | Je souhaiterais mettre en place un serveur apache2 avec un site web pour le faire fonctionner en parallèle avec nginx, par exemple : | ||
Ligne 9: | Ligne 112: | ||
* et **web.monurl.fr** pour mon site web sous apache | * et **web.monurl.fr** pour mon site web sous apache | ||
- | !!! Cela devrait être possible si on passe par apache pour rediriger les requêtes qui sont pour gitlab.monurl.fr. | + | |
+ | Cela devrait être possible si on passe par apache pour rediriger les requêtes qui sont pour gitlab.monurl.fr. | ||
<WRAP formalbox center 60%> | <WRAP formalbox center 60%> |