lug-dd@schlittermann.de schrieb am 13.01.01:
Hallo,
könnte jemand mit einer funktionierenden Config für virtuelle Hosts auf Apache mir mal die entsprechende Stelle schicken? Ich habe inzwischen etwas zu viele Projekte, um jedesmal das globale DocumentRoot von Apache umzustellen, wenn ich die Homepages anpasse und testen will (mit HTML ginge das ja mit lokalem Browsen (file:/) noch, aber bei PHP hört der Spass auf ;-) ).
danke, Konrad
Ich habe dir mal den ausschnitt der virtualhosts meiner httpd.conf datei geschickt.
Dominic
-------------------------------------------------------- --> webmaster@simonandgarfunkel.de --> ICQ #71510820 --> http://www.simonandgarfunkel.de --> http://www.FreshMidis.Net ______________________________________________________________________________ Die Fachpresse ist sich einig: WEB.DE 15mal Testsieger! Kostenlos E-Mail, Fax, SMS, Verschlüsselung, POP3, WAP....testen Sie uns! http://freemail.web.de
<VirtualHost 141.76.123.40:11001> DocumentRoot /webprojects/freshmidis/docs/ ServerAdmin servermaster@freshmidis.net <Location "/cgi-bin"> AddHandler perl-script .pl PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/freshmidis/cgi-bin/ </VirtualHost>
ErrorDocument 404 /error404.htm
<VirtualHost 141.76.123.40:11004> DocumentRoot /webprojects/dieneumaenner/docs/ <Location "/cgi-bin"> AddHandler perl-script .pl PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/dieneumaenner/cgi-bin/ </VirtualHost>
<VirtualHost 141.76.123.40:11003> DocumentRoot /webprojects/rockandmore/docs/ <Location "/cgi-bin"> AddHandler perl-script .pl PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/rockandmore/cgi-bin/ </VirtualHost>
<VirtualHost 141.76.123.40:11005> DocumentRoot /webprojects/contrabasso/docs/ <Location "/cgi-bin"> AddHandler perl-script .pl PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/contrabasso/cgi-bin/ </VirtualHost>
<VirtualHost 141.76.123.40:11006> DocumentRoot /webprojects/olgamirror/public_html/ Alias /cgi-bin/ /webprojects/olgamirror/cgi-bin/ <Location "/cgi-bin"> AddHandler perl-script .pl PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> </VirtualHost>
<VirtualHost 141.76.123.40:12000> DocumentRoot /webuser/userdirs/ <Location "/cgi-bin"> AddHandler perl-script .pl PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webuser/cgi-bin/ </VirtualHost>
ServerTokens Min
<VirtualHost 141.76.123.40:13000> DocumentRoot /webprojects/chatserver/ <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> </VirtualHost>
NameVirtualHost 141.76.123.40 #namebased virtual hosts: #<VirtualHost 141.76.123.40> # ServerAdmin webmaster@freshmidis.net # DocumentRoot /webprojects//public_html # ServerName .supermidis.de # DirectoryIndex index.htm index.html index.pl # <Location "/cgi-bin/"> # AddHandler perl-script .pl .cgi # PerlHandler Apache::Registry # PerlSendHeader On # Options +ExecCGI # </Location> # Alias /cgi-bin/ /webprojects//cgi-bin/ #</VirtualHost>
<VirtualHost 141.76.123.40> ServerAdmin webmaster@freshmidis.net DocumentRoot /usr/local/httpd/htdocs ServerName www.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/freshmidis/cgi-bin/ ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> ServerAdmin webmaster@olgamirror.com DocumentRoot /webprojects/olgamirror/public_html ServerName olga.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/olgamirror/cgi-bin/ ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> ServerAdmin webmaster@bennotizen.de DocumentRoot /webprojects/bennotizen/public_html ServerName bennotizen.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/bennotizen/cgi-bin/ ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/tools/cgi-bin/linktracker/ ServerAdmin webmaster@freshmidis.net ServerName tools.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/bennotizen/cgi-bin/ ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/namezero/ ServerAdmin webmaster@freshmidis.net ServerName nz.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /fileserver/pub/public_html/ ServerAdmin webmaster@freshmidis.net ServerName files.supermidis.de DirectoryIndex index.htm index.pl IndexIgnore *.* <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /data/midis/ ServerAdmin webmaster@freshmidis.net ServerName midi-srv.supermidis.de DirectoryIndex index.htm IndexIgnore *.* ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/dcms1/public_html/ ServerAdmin webmaster@dcms1.com ServerName dcms1.supermidis.de DirectoryIndex index.htm index.pl <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm Alias /cgi-bin/ /webprojects/dcms1/cgi-bin/ </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /dcms/bennotizen/ ServerAdmin webmaster@dcms1.com ServerName bennotizen.dcms1.supermidis.de DirectoryIndex index.htm index.pl <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webuser/maindocs/ ServerAdmin webmaster@freshmidis.net ServerName members.supermidis.de DirectoryIndex index.htm index.pl index.html <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webuser/cgi-bin/ ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /home/dominic/ ServerAdmin dominicc@web.de ServerName dominic.members.supermidis.de DirectoryIndex index.htm index.html ErrorDocument 404 http://141.76.123.40/webuser/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /home/raphael/ ServerAdmin raphaelbenning@web.de ServerName raphael.members.supermidis.de DirectoryIndex index.htm index.html ErrorDocument 404 http://141.76.123.40/webuser/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webuser/userdirs/jugendplan/ ServerAdmin webmaster@jugendplan.de ServerName jugendplan.members.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webuser/userdirs/jugendplan/cgi-bin/ ErrorDocument 404 http://141.76.123.40/webuser/error404.htm </VirtualHost>
#<VirtualHost 141.76.123.40> # DocumentRoot /webuser/service/counter1/ # ServerAdmin webmaster@freshmidis.net # ServerName service.supermidis.de # DirectoryIndex index.htm index.html index.pl # <Location "/counter1/cgi-bin/"> # AddHandler perl-script .pl .cgi # PerlHandler Apache::Registry # PerlSendHeader On # Options +ExecCGI # </Location> # ErrorDocument 404 http://141.76.123.40/webuser/error404.htm #</VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/perl/public_html/ ServerAdmin webmaster@freshmidis.net ServerName perl.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/cgi-bin/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> Alias /cgi-bin/ /webprojects/perl/cgi-bin/ ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/nlserver/webroot/ ServerAdmin webmaster@freshmidis.net ServerName nl.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404/nlserver.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/newchatserver/siteroot/ ServerAdmin webmaster@freshmidis.net ServerName dchat.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/chatntime/ ServerAdmin webmaster@freshmidis.net ServerName chatntime.supermidis.de DirectoryIndex index.htm index.html index.pl <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/freshmidis/adminhtml/ ServerAdmin webmaster@freshmidis.net ServerName admin.supermidis.de DirectoryIndex index.htm index.html index.pl ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
<VirtualHost 141.76.123.40> DocumentRoot /webprojects/mail1/siteroot/ ServerAdmin dominic@simonandgarfunkel.de DirectoryIndex index.htm index.html index.pl index.cgi anyemail.cgi ServerName mail1.supermidis.de <Location "/"> AddHandler perl-script .pl .cgi PerlHandler Apache::Registry PerlSendHeader On Options +ExecCGI </Location> ErrorDocument 404 http://141.76.123.40/error404.htm </VirtualHost>
On Saturday 13 January 2001 12:52, Dominic Neumann wrote:
Ich habe dir mal den ausschnitt der virtualhosts meiner httpd.conf datei geschickt.
Danke, das hat geholfen. Jetzt laufen fünf virtuelle Hosts plus Aliases (mehrere ServerName's pro VirtualHost) für meine Testumgebung.
danke, Konrad
lug-dd@mailman.schlittermann.de