Re: How to foward subdomains?



Sdävtaker wrote:
Hello
Sorry in advance for my english,it is not my main language.
I got a tiny network with 2 computers and only 1 external ip.
I configured my router to foward the dns port to machine1, and
registered it in nic as ns1.mydomain.com, i had successfully moved my
registered domains to that dns and could run all my services in that
machine, ie i can http://www.mydomain.com from outside.
After that i had setup a second machine in the network and i want to
make this one a subdomain of the first one ie second.mydomain.com,
this second machine got no external ip.
How can i set my first machine to foward all the traffic directed to
that domain?
Thanks for any help u can give me.
Sdav

Just recently, I did something similar with two machines hosting a few
domains and subdomains. I found the easiest thing to do was to set up
squid in 'web accelerator' mode (also known as anti-slashdot mode) on my
FreeBSD router, and direct it to forward requests (based on Host header)
to the appropriate backend webserver. In your case, one server could be
running on an alternate port on the same machine Squid is, or bound to a
private IP alias.

This is a touch annoying, though, as squid must know about /every/
/single/ subdomain that is hosted, lest it complain that it cannot
fulfill the request.

--
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
<CyberLeo@xxxxxxxxxxxx>

Furry Peace! - http://wwww.fur.com/peace/
_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: (no subject)
    ... > I am using squid to access the the internet with other users on a small ... presumably they aren't running squid themselves, ... using Squid on the "server" as their web proxy. ... > notice an IP sddress on my network 192.168.1.244 which is strange. ...
    (Fedora)
  • Re: special squid config help... thanx!
    ... >The thing here is that i need squid to be configured in a way ... > network 10.106.6.0 can only access the squid proxy from 4am-12am only, ... but again I find the sqquid acl too ...
    (Security-Basics)
  • Re: setup firewall/router/proxy
    ... If Mandrake has ipchains or ipfw, I'd say go with either and still ... I assumed by ``routing'', you meant Network Address Translation, ... routing table and specify static routes using the routecommand. ... ...and as I and others have said, squid is probably the best choice ...
    (freebsd-questions)
  • Re: how to configure squid
    ... I have a problem set up squid. ... acl localnet src 172.16.0.0/12 # RFC1918 possible internal network ...
    (Ubuntu)
  • Re: Network Monitoring
    ... I don't want to use squid beacuse network is already behind the ... Of course this only works if you just want to monitor web usage. ... Linux System Administrator ...
    (Ubuntu)