LAN Subdomains
I'm trying to figure out a decent way to manage subdomains for my local server. Essentially, I have a Tomcat server (currently running on port 8080) and an Apache server (port 80) but due to some issues with Apache's vhosts, I'm planning on changing the setup so each server is running on port 80, but with virtual interfaces (ie, apache on eth0:0 and tomcat on eth0:1). In the future I'll probably add some physical servers to the network, so having a process that works the same in both situations is a definite plus.
Then my issue (assuming my entire idea isn't insane) is domain management. What I'd like to do is have my apache server on domain.com, and the tomcat server on tomcat.domain.com, but I don't know how to have the router point requests toward the correct IP. The router is running dd-wrt, but a quick poke around its web interface revealed nothing helpful (I'm not afraid to poke around the rest of the system if I actually know what I'm doing, however).
Any suggestions to manage this?
I'm sort of a networking n00b and I'm probably forgetting all of the actually important details, so feel free to ask for clarification
Thanks!
|