HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   How to redirect ISPConfig Panel to websites (http://www.howtoforge.com/forums/showthread.php?t=59453)

pfaf 7th November 2012 13:33

How to redirect ISPConfig Panel to websites
 
Hello to everyone,

we have disallowed IspConfig access by refusing connections to port 8080 from everywhere but the localhost and we use port redirection via SSH to access the IspConfig Control panel.

We are running ISPConfig3 on Debian Sqeeze, Nginx, PHP-FPM, etc, based on the wonderful how-to by djh-compnet & falco. Check Tutorial: The Perfect Server Debian Squeeze (Debian 6.0) With BIND, Dovecot & Nginx [ISPConfig 3]

We would like to allow on some client websites to use the IspConfig control panel. We have also enabled SSL on the website.
i.e. we want to access ISPConfig via
https://www.example.org/ispconfig

We have tried to use the following redirection rule in NGINX:

location /ispconfig {
rewrite ^/ispconfig/(.*)$ $1 break;
proxy_pass https://127.0.0.1:8080;
proxy_redirect off;
proxy_buffering off;
}

but it does not work, and we get a 404 error.

Do we need to disable https at the ispconfig site?

Does anybody know how to overcome this?

Thank you all in advance for your support.

Kind regards,

Panos.

falko 8th November 2012 16:06

Can you try
Code:

proxy_pass https://127.0.0.1:8080/;
instead?

pfaf 9th November 2012 12:06

1 Attachment(s)
OK, it is better now, i got the following... check the attachment also..

But it is still not going anywhere...

What are we missing?

Quote:

Skip to the navigation. Skip to the content.

ISPConfig 3

hosting control panel


Powered by ISPConfig



Quote:

Originally Posted by falko (Post 288045)
Can you try
Code:

proxy_pass https://127.0.0.1:8080/;
instead?


falko 10th November 2012 11:06

Change
Code:

rewrite ^/ispconfig/(.*)$ $1 break;
to
Code:

rewrite ^/ispconfig/(.*)$ /$1 break;

pfaf 11th November 2012 16:23

No, unfortunately we have the result like the image i have already posted in this thread...

Skip to the navigation. Skip to the content.
ISPConfig 3
hosting control panel
Powered by ISPConfig


All times are GMT +2. The time now is 04:45.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.