LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   2 websites (domain names?) 1 cup err ip adress (https://www.linuxquestions.org/questions/linux-server-73/2-websites-domain-names-1-cup-err-ip-adress-850054/)

addic 12-13-2010 10:30 PM

2 websites (domain names?) 1 cup err ip adress
 
So I'm looking to host potentialy three different...sites...I want to call them from the same machine. One is a radio station and the other 2 are just straight websites. So I wanted to know if I had to use different machines to accomplish this or can I alter maybe the http conf file or what. I did find this in the forums but wasn't quite sure if this applied to me. [URL="http://www.linuxquestions.org/questions/linux-software-2/serving-multiple-domain-websites-on-one-server-329914/"http://www.linuxquestions.org/questions/linux-software-2/serving-multiple-domain-websites-on-one-server-329914/[/URL]

Thanks for your continued support etc

frieza 12-13-2010 11:20 PM

that would be a 'virtual host'

virtual host definitions for apache2 go into /etc/apache2/sites-available then to enable them you create a symlink into /etc/apache2/sites-enabled

an example of a virtual host definition would be

Code:

<VirtualHost 10.0.0.32:80>
  <Directory "/home/hopper/ryzom/code/ryzom/tools/server/">
    Options -Indexes FollowSymLinks MultiViews
    IndexOptions FancyIndexing FoldersFirst NameWidth=*
    AllowOverride All
    Order allow,deny
    Allow from all
  </Directory>
  ServerAdmin admin@localhost
  DocumentRoot /home/hopper/ryzom/code/ryzom/tools/server/admin
  ServerName localhost
</VirtualHost>

replacing the directory/document root/server admin/server name/ip addr with relevant information to your server


All times are GMT -5. The time now is 10:24 AM.