ispCP - Board - Support
[solved] IP configuration - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [solved] IP configuration (/thread-5952.html)



[solved] IP configuration - puster - 03-07-2009 01:50 AM

Hi everybody,

just a quick question.

Is it possible to deploy ispCP in a way which would allow it to run on a different port than 80?

Thank you very much for your help.

Greetz

Manuel


RE: IP configuration - kilburn - 03-07-2009 03:05 AM

You just have to change the apache templates / generated configurations


RE: IP configuration - victor531 - 03-07-2009 08:14 AM

http://www.isp-control.net/ispcp/wiki/howto_defaultport


Victor


RE: IP configuration - puster - 03-08-2009 04:29 AM

Thank you very much for your help.

Manuel


RE: IP configuration - puster - 03-10-2009 03:08 PM

Hi everybody,

I did perform the changes according to the post above but now it shows me the following error:

Code:
Parsing error: unexpexted $send at line 372 of /var/www/ispcp/gui/include/login.php

Unfortunately in login.php line 372 is the very last line and there is absolutely nothing written there.

Does anybody have an idea what I did wrong?

Thank you for your help.[/code]


RE: IP configuration - rbtux - 03-10-2009 08:16 PM

missing parenthesis somewhere in the code would be like error on last line ;-)


RE: IP configuration - victor531 - 03-10-2009 11:11 PM

(03-10-2009 08:16 PM)rbtux Wrote:  missing parenthesis somewhere in the code would be like error on last line ;-)

please check in point 6 In /var/www/ispcp/gui/include/login.php in line 188 change: ( add } at the end )

Code:
if ($checkReferer) {
         if (isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])) {

            $info = parse_url($_SERVER['HTTP_REFERER']);
            if (isset($info['host']) && !empty($info['host'])) {
                if ($_SERVER['SERVER_PORT']!=80) {                
                    if ($info['host'].':'.$_SERVER['SERVER_PORT'] != $_SERVER['HTTP_HOST']|| $info['host'].':'.$_SERVER['SERVER_PORT'] != $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT']) {
                        set_page_message(tr('Request from foreign host was blocked!'));
                        redirect_to_level_page();
                    }
                }else{
                    if ($info['host'] != $_SERVER['HTTP_HOST'] || $info['host'] != $_SERVER['SERVER_NAME']) {
                        set_page_message(tr('Request from foreign host was blocked!'));
                        redirect_to_level_page();
                    }
                }
             }    
         }
     }
} -----------> ADD



Victor


RE: IP configuration - puster - 03-11-2009 02:13 AM

Hi everybody.

Thank you all very much for you help. It is finally working now. I guess there was something missing though I do not know what it was at the moment. I redid it and added the 6th } and it works.

Again, thank you very much.

rbtux could you please mark this as [Solved]?

Greetz

Manuel