Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a small router/server running Slackware 11 with dnsmasq/iptables for the routing, and hostapd for wireless ap purposes. It's at the same time my very own email server.
I want to set it up with squirrelmail so that I can access my mail from the web, and another machine behind the router to serve my webpage.
I've registered a domain name, let's call it homeserver.com.
What i want is for the server to redirect a web browser request to www.homeserver.com to the machine hosting my webpage(OS X 10.4 w/apache), and mail.homeserver.com to the server itself, running squirrelmail. Can this be done?
OK, it seems like this will work for http requests. But, as I somewhat stated in my last post, I want every request routed according to hostname. This, I guess, can only be done using DNS, right?
Sorry for asking all these questions, but i figured this was the place to look for answers!
hostnames only exist within a few protocols, like http. other protocols have no concept of a hostname once said hostname has been converted to anip address by the client.
You can route requests for www to one IP address and mail to another, but having said that, chances are very good that you only have one public IP address. In that case, the IP for www and mail would have to be the same to the internet.
If you happen to have multiple real world IP addresses, then you can do it with DNS alone. You can also set up an internal DNS, but that won't help your ability to reach either box from the outside world.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.