国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

httproxy - nginx 反向代理問題
曾經(jīng)蠟筆沒有小新
曾經(jīng)蠟筆沒有小新 2017-05-16 17:28:08
[Linux討論組]

我想做一個(gè)slideshare的反向代理, 配置如下, 但是老是不成功.

 4     error_log /data/logs/slideshare.error.log;
  5     server_name ssk.timger.info;
  6     proxy_cache_key "$scheme://$host$request_uri/slideshare";
  7     proxy_cache cache_one;
  8     proxy_max_temp_file_size 4m;
  9
 10     location / {
 11         proxy_cache_valid  200 304 3h;
 12         #proxy_cache_valid 301 3d;
 13         proxy_cache_valid any 10s;
 14         proxy_set_header   X-Real-IP  $remote_addr;
 15         proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;
 16         #向后端傳遞訪客ip
 17
 18         proxy_set_header   Referer http://www.slideshare.net/;
 19         #強(qiáng)制定義Referer,程序驗(yàn)證判斷會用到
 20
 21         proxy_set_header   Host $host;
 22
 23         proxy_pass http://www.slideshare.net/;
 24
 25         proxy_redirect default;
 26         proxy_redirect http://www.slideshare.net/ /;
 27
 28
 29         proxy_connect_timeout   60;

下面是我代理之后訪問的結(jié)果

HTTP/1.1 301 Moved Permanently
Server: nginx/1.2.1
Date: Sat, 01 Feb 2014 14:02:43 GMT
Content-Type: text/html
Content-Length: 178
Location: http://ssk.timger.info/
Connection: keep-alive
P3P: CP="OTI DSP COR CUR ADM DEV PSD IVD CONo OUR IND"
Accept-Ranges: bytes
X-Varnish: 1736312165
Age: 0
Via: 1.1 varnish
Set-Cookie: SERVERID=r3|Uuz+h|Uuz+h; path=/

<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

報(bào)錯(cuò)301 不知道原因

曾經(jīng)蠟筆沒有小新
曾經(jīng)蠟筆沒有小新

全部回復(fù)(1)
漂亮男人

反代是proxy_pass

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
關(guān)于我們 免責(zé)申明 意見反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長!
關(guān)注服務(wù)號 技術(shù)交流群
PHP中文網(wǎng)訂閱號
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時(shí)隨地碎片化學(xué)習(xí)
PHP中文網(wǎng)抖音號
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://m.miracleart.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號