0 Replies - 13053 Views - Last Post: 16 August 2011 - 07:22 PM

#1 icedd   User is offline

  • D.I.C Head
  • member icon

Reputation: 5
  • View blog
  • Posts: 98
  • Joined: 04-March 08

Apache2 Virtual Host Question!

Posted 16 August 2011 - 07:22 PM

Hi, sorry if this is the wrong section to be posting this.

I am just looking for some direction in where to start. I have 2 computers, one which I'' refer to as "Server" and the other "Main".

I am running Ubuntu FYI.

I would like to have a domain pointed to my server, then have the virtual host file re-direct the request internally across my network to a specific folder on my Main PC. This is were I store all my movies and music. I realise I could just set up a web server on the main PC. Or I could also set up FTP, but I would really liek to route the traffic through my Server.

This is what the file I am working with looks like (On my Server).
<VirtualHost *:80>
ServerName test.dev
ServerAlias test.dev
DocumentRoot /var/www

This is aproxx the idea I would like to achieve.
NOTE* is internal IP of my "Main" PC
ServerName test.dev
ServerAlias test.dev
DocumentRoot /my/movie/dir

Also, Ignore test.dev. I know it will only work internally. It will eventually be a registered domain.

So if anyone out there knows what I am trying to achieve and could tell me the name of this concept, or give me some pointers. It would be very helpful.

THANK YOU in adv!


Is This A Good Question/Topic? 0
  • +

Page 1 of 1