Nginx ISPC redirect

Discussion in 'Installation/Configuration' started by CrypticDesigns, Jun 15, 2015.

  1. Hello,

    I've got a problem I can't get working. I've got a server running with ISPconfig and I would like to create a good looking link to the webpanel interface. Basically I want to use a subdomain, wich would redirect to my ssl secured ISPconfig interface. The goal is to get redirected to when you visit Is this possible or should I get this working on a different way. Current setup:
    server {
            listen 80;
                    ssl on;
                    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
            ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
            ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;
                    # redirect to https if accessed with http
                    error_page 497 https://$server_name:8080$request_uri;
            root   /usr/local/ispconfig/interface/web/;
            client_max_body_size 20M;
            location / {
                   index index.php index.html;
            # serve static files directly
            location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
                   access_log        off;
            location ~ \.php$ {
                   try_files $uri =404;
                   include /etc/nginx/fastcgi_params;
                   fastcgi_pass unix:/var/lib/php5-fpm/ispconfig.sock;
                   fastcgi_index index.php;
                   fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                   #fastcgi_param PATH_INFO $fastcgi_script_name;
                   fastcgi_buffer_size 128k;
                   fastcgi_buffers 256 4k;
                   fastcgi_busy_buffers_size 256k;
                   fastcgi_temp_file_write_size 256k;
            location ~ /\. {
                   deny  all;
    Probably it isnt working because it is listening on port 80 but how should I get it working. Not a hero with nginx, but it runs smoother.
    Thank you

Share This Page