Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am new to Nginx and have to sort out a proxying for webmail.example.com (172.21.11.48:443 ) without using fastcgi. I have searched the web and all the examples for roundcubemail use fastcgi which I am not allowed to use...and the light-bulb has not come on yet.

server {
        listen      443;
        server_name webmail.example.com;
        root /var/www/html/roundcubemail;
        ssl         on;
        ssl_certificate    /etc/pki/tls/webmail.example.com.crt;
        ssl_certificate_key    /etc/pki/tls/private/webmail.example.com.key;
        ssl_client_certificate    /etc/pki/tls/certs/example.crt;
        ssl_verify_client    off;
        location / {

        proxy_pass https://172.21.11.48:443;
    }
}

Any help please?

Stephen

share|improve this question
    
Unfortunately Nginx was built without debug - rtcamp.com/tutorials/nginx/debugging –  Steve Oct 15 '13 at 14:01
    
What is the problem you are having? –  Michael Hampton Oct 15 '13 at 16:20
    
I have to make webmail.example.com (roundcubemail) available to the outside world from behind Nginx proxy server. Unfortunately Nginx was built without debug and all the set up examples I have found use fast_CGI which I am not allowed to use - the webserver is an IBM s370 and apparently installing anything on it is a royal pain in the ****. The config above was copied from the working site on nginx and it returns a 504 error or the nginx test page. –  Steve Oct 15 '13 at 16:42
    
I understood that much already. So what is the problem you are having? –  Michael Hampton Oct 15 '13 at 16:43
    
Obviously my code is wrong but I don't yet understand why, I getting a 404 error. –  Steve Oct 15 '13 at 16:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.