Forum Moderators: phranque

Message Too Old, No Replies

subdomains/remote files

having a subdomain point to a remote folder....

         

ajdegans

5:41 am on May 9, 2006 (gmt 0)

10+ Year Member



Hi there.

i've got a question about configuring my apache server and want to know if its possible what i want to do and how it's done ( i cant find it anywhere )

my setup:
- freebsd4.11 fileserver, having several users who access it from windows 2000/xp via samba.
- fedora core 4_64, apache 2.0.54 webserver.

both boxes can be accessed from the lan.

my plan:
Giving each user who is registered on the bsd box a subdomain.

the problem:
now lets say i want to give user1 a subdomain.
user1.domain.com

this domain must point to a folder on the bsdbox (for example /home/user1/docs/web)

the webservers lan ip is 192.168.1.3 and the bsd boxs ip is 192.168.1.5 (if this helps)

how should i setup the httpd.conf to achieve that.
many thanks in advance!

the idea is to have users share html and stuff, there will be no databases or advanced stuff, just some small thingies like html files or small image stuff :)
So all i need is that 'forward'.

Thanks again!

Little_G

10:27 pm on May 9, 2006 (gmt 0)

10+ Year Member



Hi,

Take a look at this Apache url mappong [httpd.apache.org] specifically reverse proxy.

Andrew

ajdegans

10:45 pm on May 9, 2006 (gmt 0)

10+ Year Member



but then i have to run an apache server on both machines.

can't i use a networkpath or something instead?

the idea is nice tho, but not exactly what i want

jdMorgan

1:24 pm on May 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can try using mod_alias to 'alias' the second box into the first box'es filespace as a network drive.

Involving your LAN and a separate computer in the operation of your server has a dramatic negative effect on the performance and reliability of your server, so consider it carefully.

Jim

ajdegans

12:33 am on May 11, 2006 (gmt 0)

10+ Year Member



I'll look into mod_alias soon.

do you mean negative as in slowing the whole thing down? or make it instable?

jdMorgan

1:47 am on May 11, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Like anything -- a car, a spaceship, etc., more parts means reduced time-to-failure. More equipment to secure with battery backups, air-conditioning, etc. Using your local network to transfer server files *will* add some latency and therefore slow down the server somewhat, but probably not seriously. That is, unless you also use that same network for other data-intensive purposes such as backups or multi-station game-playing.

The main point is: Simple is good.

Jim

ajdegans

2:26 pm on May 11, 2006 (gmt 0)

10+ Year Member



no worries for me then, i guess.

i use the main domain for my own site and want to offer a simple enviroment for others, currently 2 users.

just html and small stuff. so thres little lan load i think.

thanks for your input. im gonna hunt for toturials on creating a networkshare/drive and hook stuff up :)