Skip to content
Snippets Groups Projects
no_ssl.t 640 B
Newer Older
  • Learn to ignore specific revisions
  • 
    use Test::Nginx::Socket 'no_plan';
    
    run_tests();
    
    __DATA__
    
    === TEST 1: HTTP connection, no SSL
    --- main_config
        env X509_VOMS_DIR=t/vomsdir;
    
        load_module /etc/nginx/modules/ngx_http_voms_module.so;
    
    --- http_config
        server {
            error_log logs/error.log debug;
            listen 8443;
    
    Francesco Giacomini's avatar
    Francesco Giacomini committed
            location = / {
    
                default_type text/plain;
    
                return 200 "$voms_user\n";
    
            error_log logs/error-proxy.log debug;
    
            proxy_pass http://localhost:8443/;
        }
    --- request
    GET / 
    --- response_body_like eval
    qr/\n/
    --- error_log
    SSL not enabled
    --- error_code: 200