Solved

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

Posted on 1997-06-15
8
208 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
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

737 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