1.

Solve : Sub-domain to direct traffic to another phisical server?

Answer»

Ok. So my question this time, is about sub domain systems.In standard HTML thee is a 'refresh' command that will direct the browser to another place that has a correct URL.
Sub domains are just that.
EXAMPLE:
http://geek9pm.com is my domain. (Of course.)
Then I could make a sub domain like this
http://jokes.geek9pm.com would also be part of my site.
(If I had enough jokes to populate it.)
Give me some clean jokes and In will put them there.
Ok, so, why that did not actually post how i wrote it, i dont know, probably my internet connection. as i am traveling right now.

However, what i MEANT to write is the following:

Ok. So my question this time, is about sub domain systems.

I am trying to set up a website, but one domain, such as sub.domain.net would re-direct visitors to a seperate phisical machine than the main web server.

Such as i have 192.168.1.101 set up as the web server, that gives HTML files to the visitor upon their visiting. Now, if they connect to sub.domain.net, they would be connected to the server at 192.168.1.102

Also, if i can have sub-domains also work for FTP servers and other ports that people would need access to, be re-directed by using the sub-domain. I will be having multiple FTP servers on the network that will be available to other people, and rather than people using ports that are not standard, i would like them to use sub domains to access their server.

The OS is Ubuntu Server 12.04, Web server is Apache2. The internal network speed between servers is up to 100Mbps.

If anyone has a solution to this question, PLEASE let me know. thanks. Just wait. You will get more answers as you provide more information.
First of all, does the serer have a connection to the Internet? Or is this a server only in a Local AREA Network.
You will make it t easier for yourself and all here if you give up  using an IP address. For the Internet a URL is required. With some exceptions, IPs should not be used to get to Internet servers. We ate in the year 2012, not 1999.

All machines on you LAN should have name and a share that can be opened with a URL.
Right now I am running Windows XP.  My local share of movies on my hard drive is:
Code: [Select]\\Kohn-8\Public_MoviesBut that only works in Windows explorer.
There is another way to identify a URL on your local network.
Here is an example of a correct URL that works in a browser.
Code: [Select]file://///Kohn-8/SharedDocs/e-mail%20project/AOL.txtNotice that is for just one file, not a folder.

As I said, you will get more answer is you say just want you want. You can not use an IP to get a list of files unless the IP is really pointing to a server. The IP of a machine is not the IP of the server. A server, in this context, is a entity inside the machine. It is a piece of software other that just the OS.Sorry, I just realized you are using LOCAL IP and not Internet.
You want to share files non one machine with other users. You can just make the local machines visible to each other. No need to use a sub domain.

Have you considered using Samba for local filen sharing?
http://showmedo.com/videotutorials/series?name=linuxcadieuxsambaI have a problem with using samba for a particular reason, and the web page i want to serve is run by a service, and if you run the service, it creates the webserver.

My problem is that i want this to be handled on a second computer with the sub-domain.

another issue with using samba is that i wanted to distribute the traffic to the second computer.

I would like to set up sub-domains, but have been unable to, even after the several tutorials i have read over.

Thanks. ok, this is complete information.

i have 2 web servers, one being the server that hosts the main content of my website. The second server is to run another section of the website, as test.jaredkat.net . I would like the content on the second web server to be viewable using the standard port, without the use of iframe.

However, i also have other servers, for game servers, running on the standard port for the game, 25565. I would like to have these servers to be accessed also by using sub-domain routing, and if possible, avoid any use of the user having to input a specific port number.

I know that a system like this can not be run in apache, or if it can all be ran by the apache sub domain system, i will be surprised.

I have my domain with godaddy, and my website hosted on my Internet connection.

ZIF anyone has an answer, it will be greatly appreciated. Hello again

I just found this for you but I don't know if you can use it because you were not sure if your server will in apache with Ubuntu http://thinkingnectar.com/2008/getting-ubuntu-to-work-creating-subdomain-in-localhost/

And this looks right down your lane of what you want http://ubuntuforums.org/showthread.php?p=3637593

Well this was short lived, Mike  Quote from: zeroburn on August 19, 2012, 09:05:34 PM

i have 2 web servers ...

... I would like to have these servers to be accessed also by using sub-domain routing, and if possible, avoid any use of the user having to input a specific port number.

... I have my domain with godaddy, and my website hosted on my Internet connection.

Aha, I see what you are doing.

Important question: Does your ISP give you more than 1 static IP? and if so, does your ADSL/cable modem support multiple WAN IPs?

If the answers to both questions is yes, then the answer is easy. Just setup your sub-domain to use your 2nd WAN IP, and configure your modem to port forward http for that IP to the 2nd server.

If the answer is yes to only the first question, then depending upon the modem, you might be able to configure the relevant port forwarding rules using iptables on a 3rd server in a DMZ.

If you haven't got multiple static IPs then you'll have to fudge some sort of proxying through the first server.

Otherwise, just stick with non-standard port numbers, and if you want to HIDE them from the users then use iframe to hide them.

Personally, I just have apache running on a single server, with lots of virtualhost definitions for the different domains I want to serve.I have subdomains working server side, and will allow traffic to the server soon, but is there a way to direct to physical servers at all? I am offering a service to clients, and if i could have them avoid typing port numbers, that would be great, however, if it is unavoidable, then so beat it. if there is the possibility to create this action using a cisco rack mount firewall or anything of the sort, that would be great.

Thanks for the help, as i now have sub-domains working with apache, but i would like subdomains to sort out different client's services.

Thanks.


Discussion

No Comment Found