LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-30-2010, 12:33 AM   #1
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271
Blog Entries: 7

Rep: Reputation: 18
single static ip


hi,

i have configured three domains in my server for three local ips.All these three domains were registered.But we have a single static ip. Now can i able to access those three domains through that single static ip in internet. is it possible.


thanks in advance,
Dinesh.
 
Old 03-30-2010, 12:50 AM   #2
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
depends on what you're talking about
if it's 3 web servers you need a reverse proxy (eg. squid)
if it's 3 separate services (ftp, email, web) you just do port forwarding
 
Old 03-30-2010, 01:35 AM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Actually, for web domains, you just need Name based Virtual hosts http://httpd.apache.org/docs/2.2/vhosts/name-based.html
 
Old 03-30-2010, 02:13 AM   #4
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271

Original Poster
Blog Entries: 7

Rep: Reputation: 18
hi,

i can able to access those three web pages in my LAN. i have separate index.html file for each web page in different location and i have pointed out those location in apache configuration file.

so while accessing in LAN. when requested through browser for a particular domain the corresponding index.html file for that domain is being fetched from the right location.

but when accessed outside from LAN. i am getting same web page for all the three domains,when requested through browser.

I think ,by giving different port numbers to each domain,and pointing those port numbers in my router will allow me to access it correctly from outside my LAN. but i dont know how to change port numbers.

I am using ubuntu 9.10 server edition and apache2 package.
so where i should edit to allocate different port numbers for each domain.

my local ip ---------my static ip

192.168.X.X}
192.168.X.Y} ------ 59.XX.YY.ZZ
192.168.X.Z}

thanks in advance,
Dinesh.

Last edited by dinakumar12; 03-30-2010 at 02:15 AM.
 
Old 03-31-2010, 11:17 PM   #5
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271

Original Poster
Blog Entries: 7

Rep: Reputation: 18
hi,

i was not aware of the fact that ip based web server can be accessible only in intranet. Now i configured named based and i can able to access my multiple domains in internet through my single static ip.

But while restarting the apache2 service,i am getting the following error.

apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.68 for ServerName
[Thu Apr 01 09:41:02 2010] [error] VirtualHost mydomain.net:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Thu Apr 01 09:41:02 2010] [error] VirtualHost ourdomain1.net:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Thu Apr 01 09:41:02 2010] [warn] NameVirtualHost mydomain.net:0 has no VirtualHosts
[Thu Apr 01 09:41:02 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 192.168.1.68 for ServerName
[Thu Apr 01 09:41:03 2010] [error] VirtualHost mydomain.net:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Thu Apr 01 09:41:03 2010] [error] VirtualHost ourdomain1.net:80 -- mixing * ports and non-* ports with a NameVirtualHost address is not supported, proceeding with undefined results
[Thu Apr 01 09:41:03 2010] [warn] NameVirtualHost mydomain.net.net:0 has no VirtualHosts
[Thu Apr 01 09:41:03 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
[ OK ]


did anyone knows about this error.

thanks in advance,
Dinesh.

Last edited by dinakumar12; 04-01-2010 at 12:57 AM.
 
Old 04-01-2010, 12:36 AM   #6
dinakumar12
Member
 
Registered: Mar 2010
Location: INDIA (chennai)
Distribution: centos
Posts: 271

Original Poster
Blog Entries: 7

Rep: Reputation: 18
hi,


i just edited the /etc/apache2/ports.conf file ,and now while restarting the apache service i don't get that eror message,every thing works fine now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Java non-static variable cannot be referenced from a static context issue rickrvo Programming 2 02-12-2010 03:26 PM
Can I bridge my DSL 3347 with single static IP on PPPoE bfoddy Linux - Networking 2 12-12-2008 09:50 PM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
Multiple Machines behind single Static IP - failing remote ssh Animalector Linux - Security 8 08-18-2005 06:01 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration