View Single Post
  #5  
Old 14th February 2013, 22:10
Ovidiu Ovidiu is offline
Senior Member
 
Join Date: Sep 2005
Posts: 1,270
Thanks: 84
Thanked 25 Times in 21 Posts
Default

I'm very much interested in this too. Currently I use this nginx location:

Quote:
location /webmail {
root /var/www/;
index index.php index.html index.htm;
location ~ ^/webmail/(.+\.php)$ {
try_files $uri =404;
root /var/www/;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_scrip$
include /etc/nginx/fastcgi_params;
fastcgi_buffer_size 128k;
fastcgi_buffers 256 4k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
}
location ~* ^/webmail/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|t$
root /var/www/;
}
}
BUT I need to have a subdomain webmail pointing to /var/www/webmail for the simple reason that for most of my domains use CloudFlare (the free version which doesn't support HTTPS) and so I can't enable HTTPS for domain.tld only for i.e. webmail.domain.tld and bypass CloudFlare for that subdomain.

Any ideas on how to do this with ISPCFG3+nginx?
Reply With Quote