[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [TEKNIK] virtualhosts i Ubuntu



Martin Møller Skarbiniks Pedersen skrev:
2009/10/20 Leif Lende <sslug@sslug>:
Hej
Er der nogen ubuntu/apache folk der måske kan hjælpe?
Er ved at få grå hår.
Jeg kan kun få den første i rækken af NameVirtualHost 192.168.1.3:80 til at
virke. Den bliver vist ved kald af alle virtual hosts.
i Ubuntu og Apache2
Er vandt til redhat baserede systemer, hvor det alltid har virket fint.
Er der et specielt direktiv i Ubuntu, eller er det bare mig der ikke kan
huske noget der skal slåes til, fra sidste gang? Er ikke helt ung længere,
hehe.
Leif


Sådan noget a la:

Listen *
NameVirtualHost *
<VirtualHost *>
  ServerName www.server.com
  DocumentRoot /apache/run/www-htdocs
</VirtualHost>
<VirtualHost *>
  ServerName nyheder.server.com
  DocumentRoot /apache/run/nyheder-htdocs
</VirtualHost>
<VirtualHost _default_:*>
  ...
</VirtualHost>

Du er velkommen til at poste din konfigurationsfil, så er det nemmere at hjælpe.



Joda så dan i den stil.
simpelthen såder i apache.config.
NameVirtualHost 192.168.1.5:80
Include /etc/apache2/sites-enabled/

disse to nedesntående filer enables så med symlinks i /sites-enabled
(UBUNTU fandt på det, ikke mig)

<VirtualHost 192.168.1.5:80>
ServerAdmin sslug@sslug
ServerName musikersupport.dk
ServerAlias www.musikerservice.dk www.musikersupport.dk
DocumentRoot /var/musikersupport.dk/html
<Directory "/var/musikersupport.dk/html">
allow from all
Options +Indexes
</Directory>
</VirtualHost>


<VirtualHost 192.168.1.5:80>
ServerAdmin sslug@sslug
ServerName natureguide.dk
ServerAlias test.natureguide.dk
DocumentRoot /var/natureguide.dk/http
<Directory "/var/natureguide.dk/http">
allow from all
Options +Indexes
</Directory>
</VirtualHost>

Leif


 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2009-11-01, 02:01 CET [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *