Skip to content
Snippets Groups Projects
Commit 8a8175cf authored by FORESTIER Fabien's avatar FORESTIER Fabien
Browse files

Edit nginx conf when rewritting host for wordpress

parent f227ad6c
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -43,22 +43,14 @@ server { ...@@ -43,22 +43,14 @@ server {
} }
location /wordpress/ { location /wordpress/ {
#proxy_pass https://elastic2.recette.data.grandlyon.com/elastic/; proxy_set_header Accept-Encoding "";
sub_filter 'http:\/\/192.168.62.15:8000' 'https:\/\/data-reloaded-dev.datalab.erasme.org\/wordpress'; proxy_pass http://192.168.62.15:8000/;
sub_filter_once off; sub_filter_once off;
sub_filter_types *; sub_filter_types *;
proxy_pass http://192.168.62.15:8000/;
proxy_set_header Accept-Encoding ""; sub_filter 'http:\/\/192.168.62.15:8000' 'https:\/\/data-reloaded-dev.datalab.erasme.org\/wordpress';
sub_filter_types text/html; sub_filter "http://192.168.62.15:8000" "https://data-reloaded-dev.datalab.erasme.org/wordpress";
sub_filter "http:192.168.62.15:8000" "https://data-reloaded-dev.datalab.erasme.org/wordpress";
# proxy_set_header X-Real-IP $remote_addr;
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
#proxy_set_header Host $http_host;
# proxy_set_header Host elastic.datalab.erasme.org;
# add_header 'Access-Control-Allow-Origin' '*';
# add_header 'Access-Control-Allow-Credentials' 'true';
# add_header 'Access-Control-Allow-Methods' 'GET, OPTIONS';
# add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type';
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment