LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-13-2002, 05:32 PM   #1
eXor
Member
 
Registered: Mar 2002
Location: Sweden
Distribution: Slackware 10.1
Posts: 103

Rep: Reputation: 15
Question Subdomain and apache!


Hello!

I hace a dns server that is upp and running.
www.mydomain.nu works perfectly.

Now I wonder how do I do to get a subdomain like eg. sven.mydomain.nu to be connected to a specifk folder on my apache server?
Still www.mydomain.com should point att the start upp folder. Apache is only on on computer.

/ludvig
 
Old 10-13-2002, 05:49 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 39,835

Rep: Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118Reputation: 1118
you set the dns server to point the subdomain as a cname to the full FQDN (mydomain.nu) then add a virtual host to apache.
Code:
<VirtualHost 50.4.38.212>
        DocumentRoot /mp3
        ServerName mp3.thirtythreeandathird.net
        ServerAlias mp3
        DirectoryIndex index.php index.html index.htm index.shtml
        LogLevel debug
</VirtualHost>
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache 1.3.33 and subdomain fai Linux - Software 1 07-15-2005 03:49 AM
Yet another apache domain/subdomain problem xtra Linux - Newbie 2 08-18-2004 07:30 AM
subdomain and apache ziggie216 Linux - Newbie 1 11-12-2003 02:36 PM
Subdomain help DoobyWho Linux - General 3 04-14-2003 06:51 PM
how to setup subdomain for users in apache? earl Linux - Security 5 12-05-2002 07:49 AM


All times are GMT -5. The time now is 01:25 PM.

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
Open Source Consulting | Domain Registration