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.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>
|
||||
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
|
||||
</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
|
||||
|
||||
### build
|
||||
|
||||
Reference in New Issue
Block a user