added nginx reverse proxi conf
This commit is contained in:
@@ -33,7 +33,9 @@ add to your /etc/hosts :
|
|||||||
127.0.0.1 dev.encyclopediedelaparole.org
|
127.0.0.1 dev.encyclopediedelaparole.org
|
||||||
127.0.0.1 dev.phpmyadmin.encyclopediedelaparole.org
|
127.0.0.1 dev.phpmyadmin.encyclopediedelaparole.org
|
||||||
```
|
```
|
||||||
configure your apache vhosts to add a reverse proxy that will redirect the dev.encyclopediedelaparole.org to our container
|
configure your apache or nginx vhosts to add a reverse proxy that will redirect the dev.encyclopediedelaparole.org to our container
|
||||||
|
|
||||||
|
apache
|
||||||
```
|
```
|
||||||
<Virtualhost *:80>
|
<Virtualhost *:80>
|
||||||
ServerName dev.encyclopediedelaparole.org
|
ServerName dev.encyclopediedelaparole.org
|
||||||
@@ -50,6 +52,37 @@ configure your apache vhosts to add a reverse proxy that will redirect the dev.e
|
|||||||
ProxyRequests Off
|
ProxyRequests Off
|
||||||
</Virtualhost>
|
</Virtualhost>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
nginx
|
||||||
|
```
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name dev.encyclopediedelaparole.org;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:8880;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
server {
|
||||||
|
listen 80;
|
||||||
|
server_name dev.phpmyadmin.encyclopediedelaparole.org;
|
||||||
|
|
||||||
|
location / {
|
||||||
|
proxy_pass http://127.0.0.1:8881;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header X-Forwarded-Proto $scheme;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
### build
|
### build
|
||||||
|
|||||||
Reference in New Issue
Block a user