2 IPs and domains
Stupid newbie question here
1) I just recently set up RH9. 2) I have an external router/firewall that handles one-to-one NAT on my external IP addresses (i.e. EXTERNALIP1 --> 192.168.254.10 and EXTERNALIP2 --> 192.168.254.11). 3) Both external IPs are registered domain names that I own (domainname.com) 4) OK - here's the question... both of the mentioned internal IPs need to point to my linux machine. I have 1 configured so far and here is the ifconfig for my single NIC: eth0 Link encap:Ethernet HWaddr 00:04:5A:64:62:51 inet addr:192.168.254.10 Bcast:192.168.254.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13212 errors:0 dropped:0 overruns:0 frame:0 TX packets:10375 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:100 RX bytes:12378958 (11.8 Mb) TX bytes:2735929 (2.6 Mb) Interrupt:11 Base address:0x4000 5) not sure if this helps, but here is my IP routing table. Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.254.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 192.168.254.254 0.0.0.0 UG 0 0 0 eth0 6) So (A) how do I set up 192.168.254.11 on the same NIC?? 7) And (B) I get messages on FQDN's not being configured: i.e when I start Apache: Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Thanks in advance! Shawn McPike |
Mapping the domain names to ip addresses in /etc/host might solve the fqdn problem
|
You'll need to configure an ethernet device alias. Here's a link to the RH9 manual page that describes how to do that :
http://www.redhat.com/docs/manuals/l...k-aliases.html For the Apache problem you might need to set up the ServerName directive in your httpd.conf file. If you plan to host 2 web sites from the same machine you'll need to be using VirtualHost directives. Tim |
All times are GMT -5. The time now is 09:57 PM. |