FAQ |
Kalender |
|
![]() |
#1 | ||
|
|||
Nykomling
|
Hej.
Jag har satt upp en server hemma på min comhem anslutning. Jag kör med CentOS 5.2 och Apache 2.2.3. Webservern funkar bra, den svarar snabbt på anrop både på IP, dynDNS och via domännamn. Men jag får alla domännamn att komma direkt till rooten fast jag vill att varje domännamn skall gå till separat mapp. Jag tycker att jag har testat allt. Kan nån hjälpa mig??? Bifogar utdrag ur httpd.conf # # Use name-based virtual hosting. # #NameVirtualHost *:80 # # NOTE: NameVirtualHost cannot be used without a port specifier # (e.g. :80) if mod_ssl is being used, due to the nature of the # SSL protocol. # # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for requests without a known # server name. # #<VirtualHost *:80> # ServerAdmin [email protected] # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> <VirtualHost www2.xxxxxxxx.com:80> DocumentRoot /var/www/html/www2.xxxxxxxx.com <Directory /var/www/html/www2.xxxxxxx.com> allow from all Options +Indexes </Directory> VirtualDocumentRoot /var/www/html/www2.xxxxxxxx.com </VirtualHost> <VirtualHost www.xxxxxxxx.com:80> DocumentRoot /var/www/html/www.xxxxxxxx.com <Directory /var/www/html/www.xxxxxxx.com> allow from all Options +Indexes </Directory> VirtualDocumentRoot /var/www/html/www.xxxxxxxx.com </VirtualHost> |
||
![]() |
![]() |
Svara |
|
|