Solved

How do I set up ip aliases for virtual web servers?

Posted on 1997-06-15
8
207 Views
Last Modified: 2010-03-17
I am new to Linux (just installed it few weeks since) and I want to get the machine to answer to additional ip addresses and run virtual servers with apache.  Is there a comprehensive guide to this anywhere?  I have read the mini-HowTo on ipaliasing but its not very clear to me (being a newbie!)  and I really need a step-by step guide.  I haven't a clue how to re-compile the kernal or set up modules.  Any help appreciated.
(I am using the latest Debian distribution).

0
Comment
Question by:keeff
  • 4
  • 4
8 Comments
 
LVL 1

Accepted Solution

by:
davidzon earned 150 total points
ID: 1584883
I assume you are on an ethernet line -- use ifconfig to alias IP's (see man ifconfig for more info) and use the Apache httpd.conf (pico it) and its VERY self-explanatory -- simply add the hostnames you want it to answer to...

Tell me if this helps...

-- VSD

0
 

Author Comment

by:keeff
ID: 1584884
I used
ifconfig eth0:0 xxx.xxx.xxx.xxx

and got
SIOCSIFADDR: NO such device

I understand this has something to do with the kernel or a missing module, but I don't know where to start with this.

0
 
LVL 1

Expert Comment

by:davidzon
ID: 1584885
Hmmmm..... ifconfig eth0:1 xxx.xxx.xxx.xxx

Try that

0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 

Author Comment

by:keeff
ID: 1584886
Just did...  exactly the same thing happened!
0
 
LVL 1

Expert Comment

by:davidzon
ID: 1584887
I am on BSDI -- so I may be wrong, but take a look at man ifconfig, specifically the ALIAS option -- see if that helps anything...

I think thats what you need :)

0
 

Author Comment

by:keeff
ID: 1584888
Can't find any reference to an ALIAS option in man ifconfig - must be differant on this system.


0
 
LVL 1

Expert Comment

by:davidzon
ID: 1584889
What is the system you're using?  Linux?

0
 

Author Comment

by:keeff
ID: 1584890
Debian Linux 1.3 distribution
idconfig options are:
interface, up, down, [-]arp, [-]trailers, [-]promisc, [-]allmulti, metric N, mtu N, dstaddr addr, netmask addr, irq addr, [-]broadcast addr, [-]pointtopoint addr, hw, multicast, address
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question