How to run IPython behind an Apache proxy

前端 未结 6 1340
耶瑟儿~
耶瑟儿~ 2020-12-05 11:27

I would like to run an IPython notebook web server behind an Apache (reverse) proxy so that instead of the URL

https://my.server:XXXX

(where XXX

6条回答
  •  难免孤独
    2020-12-05 12:17

    Based on Apache's config of @adam, I'm putting here a full SSL-aware sections but without the /ipython prefix, and i'm giving also the SSL-options for anyone interested:

    
        ServerAdmin myname@my.place.com
        ServerName some.server.com
        SSLEngine off
    
        Redirect permanent / https://some.server.com
    
    
    ## From http://stackoverflow.com/questions/23890386/how-to-run-ipython-behind-an-apache-proxy
    #
    
        ServerAdmin myname@my.place.com
        ServerName some.server.com
    
        SSLEngine on
    
        SSLCertificateFile              some_server_com.crt
        SSLCertificateKeyFile           some_server_com.key
    
    
        
            ProxyPass        http://localhost:8888/
            ProxyPassReverse http://localhost:8888/
            ProxyPassReverseCookieDomain localhost some.server.com
            RequestHeader set Origin "http://localhost:8888"
        
    
        
            ProxyPass        ws://localhost:8888/api/kernels/
            ProxyPassReverse ws://localhost:8888/api/kernels/
        
    
        Redirect permanent / https://some.server.com
    
    

提交回复
热议问题