?
Solved

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

Posted on 1997-06-15
8
Medium Priority
?
210 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 300 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
Python: Series & Data Frames With Pandas

Learn the basics of Python’s pandas library of series & data frames and how we can use these tools for data manipulation.

 

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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

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…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

765 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