LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-28-2008, 09:01 AM   #1
brynjarh
Member
 
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
Question I have URL/Domain domain_url.com I want to add "media." (media.domain_url.com), how?


I have a server running apache2 and lighttpd with two domains or URLs (not sure what to call it) directing there, so when I go to http://www.domain1_url.com/ I'm really looking at something like http://128.177.27.91/ (/var/www/html/), which apache2 is serving, and when I go to http://www.domain1_url.com:81/ or http://128.177.27.91:81/ (/var/www/light/) I go to what lighttpd is serving, the other domain/URL follows the same logic.

Now what I want to do is make domain-1 do what it's doing now except instead of adding :81 to access what lighttpd is serving I want to use http://media.domain1_url.com/ , that is, add "media." to the front instead of :81 to the end.

What I want to do with domain-2 is to point to http://128.177.27.91/domain2/ (/var/www/html/domain2/), so that when I go to http://www.domain2_url/ it's really showing me http://128.177.27.91/domain2/ , like domain1 is showing me http://128.177.27.91/

How do I go about doing this? An answer and a link to appropriate documentation or just a link to the appropriate documentation would be nice.
 
Old 07-28-2008, 09:08 AM   #2
vwvr9
Member
 
Registered: Feb 2005
Distribution: OpenSuse 10.1 / Centos 4.4
Posts: 60

Rep: Reputation: 15
I think you should be looking at creating subdomains on the DNS level or setting up virtual hosts on Apache.
 
Old 07-28-2008, 10:06 AM   #3
vladmihaisima
Member
 
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
As the previous poster said, first you need that media.domain1_url.com point to your ip address (when you do "ping media.domain1_url.com" your ip should respond) . This has to be changed in the DNS server (depends where you got the domains from and how it is configured). Some providers have web interfaces to change that, if you host your own name server you have to modify BIND configuration files.
 
Old 07-28-2008, 11:50 AM   #4
ddaemonunics
Member
 
Registered: May 2008
Location: Romania
Distribution: Debian
Posts: 242

Rep: Reputation: 41
Well like the others said you have to have a basic understanding of DNS, domains, and related services bind,apache etc
Try and have a look at ISPConfig which integrate all this services
and allow you to configure dns resolution, virtual hosts etc (basic web hosting).
It also have a very good documentation and I 'am sure that configuring ISPconfig will halp you understand better the things involved

http://www.ispconfig.org/
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
/media lists "cdrom" and "cdrom1" jerrybasham MEPIS 4 04-17-2007 04:41 PM
Amarok 1.4.1 - "permanently" add removable media? (Kubuntu 6.06) lefty.crupps Linux - Software 2 08-28-2006 07:19 AM
"ioctl: Operation not permitted" (beep media playe) unholy Linux - Software 1 12-18-2004 06:14 PM
Fedora and HP psc 2175 Printer "Media Tray Empty" Nick1104 Fedora 2 03-15-2004 08:45 PM
Can't enable medium "update_source" in Mandrake's Software Media Manager Chealer Linux - Software 0 12-05-2003 07:29 PM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration