Current time: 11-27-2024, 09:46 PM Hello There, Guest! (LoginRegister)


Post Reply 
Cat add a domain to a secondary ip 1.0.5 Debian
Author Message
kingofkya Offline
Junior Member
*

Posts: 25
Joined: Dec 2009
Reputation: 0
Post: #1
Cat add a domain to a secondary ip 1.0.5 Debian
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.
06-15-2010 04:29 PM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #2
RE: Cat add a domain to a secondary ip 1.0.5 Debian
What did you do... every step...

/J
06-15-2010 06:25 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kingofkya Offline
Junior Member
*

Posts: 25
Joined: Dec 2009
Reputation: 0
Post: #3
RE: Cat add a domain to a secondary ip 1.0.5 Debian
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.
(This post was last modified: 06-16-2010 08:11 AM by kingofkya.)
06-16-2010 08:09 AM
Find all posts by this user Quote this message in a reply
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #4
RE: Cat add a domain to a secondary ip 1.0.5 Debian
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
06-16-2010 04:16 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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