|
本帖最后由 znithy 于 2012-3-17 05:17 编辑
远离了坛子快半年了,努力了下,到了个网速极快的地方.
真想干点事还是远离论坛花时间真正学点知识才对.
普通办公电脑,非服务器.
--------------------
有好几位在一个多月前PM我要山寨google的ngnix代码和logo的朋友,我这回复下,同时也PM提醒了,希望能看到(在PM里贴长串代码会变乱).
使用方法就是把这些代码放到nginx的.conf配置文件里去.[ol]server { listen 443; server_name 900913.net; ssl on; ssl_certificate /root/900913net/900913_net.crt; ssl_certificate_key /root/900913net/900913_net.pem; ssl_protocols SSLv3 TLSv1; ssl_ciphers ALL:-ADH:+HIGH:+MEDIUM:-LOW:-SSLv2:-EXP; location / { proxy_redirect off; 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 https; proxy_pass https://encrypted.google.com; } location ~ /images/logos/ssl_logo.png { rewrite ^/ https://www.900913.net/900913_logo.png; } location ~ /images/logos/ssl_logo_srp.png { rewrite ^/ https://www.900913.net/900913_logo_srp.png; } location ~ /intl/en_com/images/srpr/logo3w.png { rewrite ^/ https://www.900913.net/900913_logo.png; } location ~ /images/srpr/logo3w.png { rewrite ^/ https://www.900913.net/900913_logo.png; } location ~ /images/nav_logo86.png { rewrite ^/ https://www.900913.net/900913_logo_srp.png; } log_format 900913.net '$remote_addr - $remote_user [$time_local] $request ' '$status $body_bytes_sent $http_referer ' '$http_user_agent $http_x_forwarded_for'; access_log /home/wwwlogs/900913.net.log 900913.net; } server { listen 80; server_name 900913.net; rewrite ^(.*) https://900913.net/$1 permanent; } server { listen 80; server_name www.900913.net; rewrite ^(.*) https://900913.net/$1 permanent; } [/ol]复制代码别攻击啊,我懒得隐藏域名了.
我这是便民服务,自己都没用的.
上次贴了下被d的vps商把我机器关了. |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?立即注册
×
|