PDA

View Full Version : About second IP again


dmw555
19th May 2006, 08:37
Hi !

sorry for my english :)

I install ispconfig and work over port 81 by https ok.

Later i bind ispconfig to second IP port 80,
but cannot connect to ispconfig.

Maybe i must change port 80 to port 443 ?
But i can't do it because main web server (apache 2.0) listen secure port 443
on all interfaces.

I have two questions:

1) repeat pls exactly what can i do for switch ispconfig to second IP.

2) small offtopic. I bind main web server (apache 2.0) to first IP non secure port listen on only first IP, but secure port (443) listen on all interfaces :(
what can i do for it ?

Thanks in advance.

till
19th May 2006, 09:43
Hi !

sorry for my english :)

I install ispconfig and work over port 81 by https ok.

Later i bind ispconfig to second IP port 80,
but cannot connect to ispconfig.

What did you do exactly? The ISPConfig http daemon is only for the admin interface, not for serving yozur webpages on port 80.

dmw555
19th May 2006, 10:12
Yes ... i know.

Because i can't access to non standart port 81 over proxy,
I want bind ispconfig admin console web server to second IP one of standart ports and main web server bind to first IP.

If I work with ispconfig by https protocol
then bind to port 443 only or port 80 ok?

repeat pls exactly what can i do for switch ispconfig admin console
to second IP ?


Thanks in advance.

falko
19th May 2006, 15:58
If I work with ispconfig by https protocol
then bind to port 443 only or port 80 ok?Only if yor main Apache doesn't listen on port 443.

repeat pls exactly what can i do for switch ispconfig admin console
to second IP ?

Change the Listen directive in /root/ispconfig/httpd/conf/httpd.conf, e.g. like this:
Listen 1.2.3.4:80Also change the port number in /home/admispconfig/ispconfig/lib/config.inc.php and restart ISPConfig:
/etc/init.d/ispconfig_server restart

dmw555
20th May 2006, 08:45
I didt it.

Now main web server bind to first ip and
ispconfig web to second ip.

But i can't get access to ispconfig admin console
I try bind ispconfig to port 80 or to port 443 ... all the same ... can't get access.

I think may be problem with SSL certifikate ?
When i install ispconfig i generate certifikate for name which bind to first ip.

till
20th May 2006, 12:53
Have you changed the port in the ISPConfig config.inc.php file too?

dmw555
20th May 2006, 13:48
Yes i have changed the port in the ISPConfig config.inc.php file too.

example:
first_ip.aaa.com --> first IP
second_ip.aaa.com --> second IP

eth0 "first IP"
eth0:0 "second IP" (alias)

Ispconfig work only on any tcp ports on first IP

dmw555
20th May 2006, 17:39
Probably i find problem.

on second interface all daemons not working properly ...
example: smtp don't answer, apache need authorization ??! , pop3 don't answer.
But command "netstat -tap" say pop3, smtp and http
listen all interfaces.
This situation independently from firewall on or off.

falko
21st May 2006, 22:05
Please post the output of netstat -tap
What's in /etc/hosts?

dmw555
22nd May 2006, 08:56
now ISPconfig running on first_IP:443
and main web server on port 80 only on all interfaces.

netstat -tap
-------------------------------------------
firstIP_name:443 bla bla bla ispconfig_httpd
*:80 bla bla bla httpd

-------------------------------------------

i try some test:

#telnet first_ip 80
get /index.html <-- after that some output

#telnet second_ip 80
get /index.html <-- after that nothing


/etc/hosts contain only first IP and localhost
example:

#first IP
XXX.XXX.XXX.XXX firstIP_name.aaa.com first_name
127.0.0.1 localhost.localdomain localhost

falko
22nd May 2006, 09:44
But is ISPConfig working on https://first_IP ?

dmw555
22nd May 2006, 10:57
Now, Yes.

Because any httpd on second_IP not working properly ...
I understand .. it's no problem of ISPconfig (on first_IP ISPconfig work OK)

example:

i create virtual host on second_IP
try http://second_IP .... and get authorization window from apache.

if i change second_IP to first_IP in this vistual host ... then all ok.

falko
23rd May 2006, 00:51
try http://second_IP .... and get authorization window from apache.What do you mean with authorization window?

if i change second_IP to first_IP in this vistual host ... then all ok.Do you see the correct IP address in Vhosts_ispconfig.conf?