Solved

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

Posted on 1997-06-15
8
209 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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