Current time: 11-17-2024, 06:25 AM Hello There, Guest! (LoginRegister)


Thread Closed 
[solved] IP configuration
Author Message
puster Offline
Junior Member
*

Posts: 32
Joined: Oct 2008
Reputation: 0
Post: #1
[solved] IP configuration
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
(This post was last modified: 03-11-2009 03:42 AM by rbtux.)
03-07-2009 01:50 AM
Find all posts by this user
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: IP configuration
You just have to change the apache templates / generated configurations
03-07-2009 03:05 AM
Visit this user's website Find all posts by this user
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #3
RE: IP configuration
http://www.isp-control.net/ispcp/wiki/howto_defaultport


Victor
03-07-2009 08:14 AM
Find all posts by this user
puster Offline
Junior Member
*

Posts: 32
Joined: Oct 2008
Reputation: 0
Post: #4
RE: IP configuration
Thank you very much for your help.

Manuel
03-08-2009 04:29 AM
Find all posts by this user
puster Offline
Junior Member
*

Posts: 32
Joined: Oct 2008
Reputation: 0
Post: #5
RE: IP configuration
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]
03-10-2009 03:08 PM
Find all posts by this user
rbtux Offline
Moderator
*****
Moderators

Posts: 1,847
Joined: Feb 2007
Reputation: 33
Post: #6
RE: IP configuration
missing parenthesis somewhere in the code would be like error on last line ;-)
03-10-2009 08:16 PM
Visit this user's website Find all posts by this user
victor531 Offline
Junior Member
*

Posts: 167
Joined: Oct 2007
Reputation: 3
Post: #7
RE: IP configuration
(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
03-10-2009 11:11 PM
Find all posts by this user
puster Offline
Junior Member
*

Posts: 32
Joined: Oct 2008
Reputation: 0
Post: #8
RE: IP configuration
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
03-11-2009 02:13 AM
Find all posts by this user
Thread Closed 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)