Gossamer Forum
Home : General : Internet Technologies :

Link a sub-domain to a specific file?

Quote Reply
Link a sub-domain to a specific file?
Just trying to set something up on a server, whereas a subdomain gets pointed to a specific script ...i.e;

http://foobar.test.com

.. would need to point to something like

http://www.test.com/cgi-bin/page.cgi?SID=1234&p=site

Is this easy to setup in httpd.conf? We don't mind editing it each time, so we can set these up.

Another advantage, would be to have the ability to point a domain name with it too? So;

http://foobar.test.com
...and...
http://www.foobartest.com

TIA.

Cheers

Andy (mod)
andy@ultranerds.co.uk


IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Quote Reply
Re: [Andy] Link a sub-domain to a specific file? In reply to
Hi Andy,

you could try to use mod_proxy. Do this in foobar.test.com's or in www.foobartest.com's virtual host container:



For more infos, check the website for Apache module mod_proxy (http://httpd.apache.org/...proxy.html#proxypass).

Good luck, hope it works for you
Smileliver
Quote Reply
Re: [olivers] Link a sub-domain to a specific file? In reply to
ModRedirect is also good for this sort of thing.