投稿

12月, 2015の投稿を表示しています

docker+nginx+wordpress リバースプロキシにてはまった件

イメージ
Dockerにて、 1) リバースプロキシ用nginxのコンテナ 2) wordpress+nginx用コンテナ を作り、1から2に転送をしたところ、urlのドメイン名またはIPアドレスにPort番号が付加されて表示された。 やりたいこと「http://xxx.xxx.xxx.xxx」にアクセスしたら、url欄には、 こう表示したい→:http://xxx.xxx.xxx.xxx しかしこのようになる→:http://xxx.xxx.xxx.xxx:39000 nginx.conf(正確にはnginx.confにincludeされるconf.d内のファイル)には以下のように設定した。     server {             server_name _;             listen 80;             port_in_redirect off;             proxy_redirect off;             access_log /var/log/nginx/access.log main;             location / {                     port_in_redirect off;                     proxy_set_header Host $http_host;                   ...