2017-07-13 17 views

答えて

0

の/ etc/nginxの/サイト利用可能/

server { 
     listen 80; ## listen for ipv4; this line is default and implied 
     #listen [::]:80 default ipv6only=on; ## listen for ipv6 

     root /var/www/example.com/public_html; 
     index index.html index.htm; 

     # Make site accessible from http://localhost/ 
     server_name example.com; 
} 
0

使用私が欲しいこの

server { 
     listen 8000; 
     server_name localhost; 

     location /wordpress { 
      proxy_pass http://www.example.com; 
      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; 
     } 

} 
+0

場所/ {proxy_passます。http://127.0.01:8000 /ワードプレス} – czl

関連する問題