ispCP - Board - Support
Cat add a domain to a secondary ip 1.0.5 Debian - 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: Cat add a domain to a secondary ip 1.0.5 Debian (/thread-10973.html)



Cat add a domain to a secondary ip 1.0.5 Debian - kingofkya - 06-15-2010 04:29 PM

When i add the ip it fails (from what i can see) to add it to the ispcp.conf in apache.

What I tried to manually add the tags for it to find it but this didn't work.

Any idea what to try next?

# httpd [98.158.180.x6] virtual host entry END.


# httpd [98.158.180.x9] virtual host entry BEGIN.

# httpd [98.158.180.x9] virtual host entry END.


# httpd Data END.


RE: Cat add a domain to a secondary ip 1.0.5 Debian - joximu - 06-15-2010 06:25 PM

What did you do... every step...

/J


RE: Cat add a domain to a secondary ip 1.0.5 Debian - kingofkya - 06-16-2010 08:09 AM

ok though the ispcp interface addded a new ip 98.158.180.x9 (yes the x is just to hide server).

It added it and it did work however, ispcp didn't let me change gateway and subnet which was incorrect so i removed the ip via ispcp.

then configured ip via /etc/interfaces
it is on eth0:0

then i re added the ip via ispcp so now i have.
eth0
eth0:0
and ispcp added eth0:3

however it wouldn't add any domains to the ip.
because the tages are missing from the apache/ispcp.conf file.

status: get_tag() | ERROR: '# httpd [{IP}] virtual host entry BEGIN. ' ne '# httpd [{IP}] virtual host entry END. ', '# httpd [{IP}] virtual host entry BEGIN. ' or '# httpd [{IP}] virtual host entry END. ' missing in src !

so i tried to add the tags as you see above.

Also the manual ip settings are correct because i can ping server now.


RE: Cat add a domain to a secondary ip 1.0.5 Debian - joximu - 06-16-2010 04:16 PM

ok

the ip-adding in ispcp is not perfect - so I'd add the ip manually and disable the adding in /etc/init.d/ispcp_network (search the forum).

Then - the apache2..ispcp.conf ends with theese lines (important: newline = LF, not CRLF - so do not edit this file in windows).
Code:
# httpd [lastdomain.ch] als entry END.

# httpd [{ALS_NAME}] als entry BEGIN.
# httpd [{ALS_NAME}] als entry END.

# httpd [last.ip.n.r] virtual host entry END.

# httpd [{IP}] virtual host entry BEGIN.
# httpd [{IP}] virtual host entry END.

# httpd Data END.
Last char: LF

Hope this helps

/J