LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Subdomain and apache! (https://www.linuxquestions.org/questions/linux-networking-3/subdomain-and-apache-32714/)

eXor 10-13-2002 05:32 PM

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:confused:

acid_kewpie 10-13-2002 05:49 PM

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>



All times are GMT -5. The time now is 05:33 PM.