This commit is contained in:
2018-10-07 07:19:40 +02:00
parent e82296ba06
commit 53d2ce1c0d
8 changed files with 354 additions and 15 deletions

View File

@@ -55,6 +55,8 @@ $ bbedit /usr/local/etc/httpd/extra/httpd-vhosts.conf
### Virtual Hosts:
#### Redirection:
Editer le fichier *hosts*:
```bash
@@ -78,6 +80,29 @@ Editer le fichier *httpd-vhosts.conf*:
</VirtualHost>
```
#### Redirection de port:
wiki.js tourne sur localhost:3000 Pour le rendre disponible sur wiki.silverbook.local:
Editer le fichier *hosts*:
```bash
$ sudo nano /etc/hosts
127.0.0.1 silverbook.local
127.0.0.1 wiki.silverbook.local
```
Editer le fichier *httpd-vhosts.conf*:
```http
<VirtualHost *:80>
ServerName wiki.silverbook.local
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/
ProxyPreserveHost On
</VirtualHost>
```
### SSL:
@@ -103,9 +128,6 @@ Listen 443
\# General setup for the virtual host
\# DocumentRoot "/usr/local/var/www"
\# ServerName www.example.com:443
\# ServerAdmin you@example.com
```
<u>Ouvrir le fichier *httpd-vhosts.conf*:</u>
@@ -214,7 +236,7 @@ Ajouter le bloc qui suit dans le **httpd.conf**
### \# macOS - homebrew:
### Différence installation macOS - homebrew:
***MacOS:***