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
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
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.