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édente | ||
notes:essais:nginxapache:start1 [2022/02/17 09:37] – [Cohabitation apache2 et nginx] admin | notes:essais:nginxapache:start1 [2022/08/13 21:57] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
====== Cohabitation apache2 et nginx ====== | ====== Cohabitation apache2 et nginx ====== | ||
- | <WRAP formalbox center 60%> | + | ===== Essai d' |
- | ~~FAQ~~ | + | |
- | </ | + | |
- | ??? Essai d' | + | <cli prompt=' |
- | !!! <cli prompt=' | + | |
... | ... | ||
Les paquets supplémentaires suivants seront installés : | Les paquets supplémentaires suivants seront installés : | ||
Ligne 21: | Ligne 18: | ||
libapache2-mod-php7.4: | libapache2-mod-php7.4: | ||
... | ... | ||
- | </cli> | + | ...@...:~$ tree /etc/ |
+ | / | ||
+ | ├── 000-default.conf | ||
+ | └── 000-default.conf.original | ||
- | ??? J'ai actuellement un vps en debian 8 qui a un serveur nginx avec un gitlab. | + | 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 29: | 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%> |