Coder Social home page Coder Social logo

nginx_proxy_conf's Issues

对default.conf的补充以及两个问题

1、之前用www.php8.ltd.conf没弄成功,到是用default.conf成功了。
对default.conf的补充:

location /HostLocMJJ/ {
            if ($request_uri ~* ^\/(.+)\/((http|https)://(www.)?([\w-]+(\.)?)+)(.*?)$) {
                set  $gotourl  $custom_host$7;
            }
            set $mjj  0;
            if ($banDomain = 1) {
                set $mjj 1;
            }
            if ($custom_host = '') {
                set $mjj 2;
            }
            if ($custom_host = 'pass') {
                set $mjj 2;
            }
            if ($mjj = 2) {
              set $gotourl $http_referer;
            }
            add_header 'xxxxx'  $gotourl;
            if ($banDomain = 1) {
                #return 200 "$gotourl";
                return 301 "$gotourl";
                #return 404 ;
            }
            if ($request_method = 'OPTIONS') {

加上这些代码后,基本上登录v2ex。com和浏览发贴都正常。也有不完善的地方,如贴子详情页分页。这个我搞不定了

问题2:如何修改代码可以支持github.com的登录和发贴呢?目前登录时会报session有问题,我也摸不着头脑。
问题3:可否支持gmail的登录呢?好久都没有上过gmail了。

最后,感谢你提供的这个好工具。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.