Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


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

Rep: Reputation: 30
Question I have URL/Domain I want to add "media." (, 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 I'm really looking at something like (/var/www/html/), which apache2 is serving, and when I go to or (/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 , 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 (/var/www/html/domain2/), so that when I go to http://www.domain2_url/ it's really showing me , like domain1 is showing me

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, 10:08 AM   #2
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, 11:06 AM   #3
Registered: Oct 2002
Location: Delft, Netherlands
Distribution: Gentoo
Posts: 196

Rep: Reputation: 33
As the previous poster said, first you need that point to your ip address (when you do "ping" 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, 12:50 PM   #4
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


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 05:41 PM
Amarok 1.4.1 - "permanently" add removable media? (Kubuntu 6.06) lefty.crupps Linux - Software 2 08-28-2006 08:19 AM
"ioctl: Operation not permitted" (beep media playe) unholy Linux - Software 1 12-18-2004 07:14 PM
Fedora and HP psc 2175 Printer "Media Tray Empty" Nick1104 Fedora 2 03-15-2004 09:45 PM
Can't enable medium "update_source" in Mandrake's Software Media Manager Chealer Linux - Software 0 12-05-2003 08:29 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:57 PM.

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