← Back to team overview

sslug-teknik team mailing list archive

Re: DNS - Hvordan http://domainname.dk istedet for http://www.domainname.dk ?

 

On Wed, 4 Oct 2000, sh wrote:

> Hvordan får man sådan cirka subjekt til at fungere ?

Du skal først og fremmest have din dns til at pege på den samme
adresse. Dernæst skal du konfigurere din web server (apache?) til at
håndtere begge domæner i samme dir. Her er et eksempel:

<VirtualHost challenge.dk>
  ServerAdmin webmaster@xxxxxxxxxxxx
  DocumentRoot /home/challenge/www.challenge.dk/public_html/
  ServerName challenge.dk
  ErrorLog /var/log/httpd/www.challenge-error_log
  TransferLog /var/log/httpd/www.challenge-access_log
  php3_include_path .:/home/challenge/www.challenge.dk/include
  php3_track_vars on
</VirtualHost>

<VirtualHost www.challenge.dk>
  ServerAdmin webmaster@xxxxxxxxxxxx
  DocumentRoot /home/challenge/www.challenge.dk/public_html/
  ServerName www.challenge.dk
  ErrorLog /var/log/httpd/www.challenge-error_log
  TransferLog /var/log/httpd/www.challenge-access_log
  php3_include_path .:/home/challenge/www.challenge.dk/include
  php3_track_vars on
</VirtualHost>

Mads


-- 
Mads Bondo Dydensborg.                               madsdyd@xxxxxxxxxxxx
I don't even consider working for MS Shops, or shops with extensive MS
deployment anymore. These companies are rape victims, and too self-abusive to 
get away. Why waste time trying to help those who will not help themselves? 
                                                       - David C. Manchester



Follow ups

References