PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : httpd.conf



dunervst
17.07.02, 22:22
Wie bekomme ich virzual hosting korrekt ans laufen. Ich will noch eine Website auf port 443 einrichten. Ich habe die auch in die httpd.conf eingetragen. Allerding, wird die seite nicht geöffnet, wenn ich sie anspreche. Kann mir jemand vielleicht mal eine beispiel httpd.conf schicken in der virtuell hosting erfolgreich ausgeführt wird, dann kann ich mal gucken was ich übersehen habe.

Danke
Michael

Bauchi
17.07.02, 23:12
hier der wesentliche teil



NameVirtualhost 212.18.28.2
<VirtualHost 212.18.28.2>
ServerAdmin basti@sskm.de
ServerName ns3.sskm.de
ServerPath /usr/local/apache/htdocs
DocumentRoot /usr/local/apache/htdocs
ServerSignature Off
DirectoryIndex index.php
</VirtualHost>
<VirtualHost 212.18.28.2>
ServerAdmin basti@sskm.de
ServerName XXXXXXXX.sskm.net
ServerPath /XXXXXXXXXXXXXXXXXXXX
DocumentRoot /XXXXXXXXXXXXXXXXXXXX
ServerSignature Email
</VirtualHost>
<VirtualHost 212.18.28.2>
ServerAdmin basti@sskm.de
ServerName XXXXXXXXX.sskm.de
ServerPath /home/ftpusers/
DocumentRoot /home/ftpusers/content
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog /home/ftpusers/log-files/XXXXXXXX.sskm.de.log combined
ErrorLog /home/ftpusers/log-files/XXXXXXX.sskm.de.err
ServerSignature Off
<Directory /home/ftpusers/content>
AllowOverride All
</Directory>
ScriptAlias /cgi-bin/ "/home/ftpusers/content/cgi-bin/"
</VirtualHost>
<IfDefine SSL>
AddType application/x-x509-ca-cert .crt
AddType application/x-pkcs7-crl .crl
</IfDefine>
<IfModule mod_ssl.c>
SSLPassPhraseDialog builtin
SSLSessionCache dbm:/usr/local/apache/logs/ssl_scache
SSLSessionCacheTimeout 300
SSLMutex file:/usr/local/apache/logs/ssl_mutex
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
SSLLog /usr/local/apache/logs/ssl_engine_log
SSLLogLevel info
</IfModule>
<IfDefine SSL>
<VirtualHost 212.18.28.2:443>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSL v2:+EXP:+eNULL
SSLCertificateFile /usr/local/apache/conf/ssl.crt/server.crt
SSLCertificateKeyFile /usr/local/apache/conf/ssl.key/server.key
<Files ~ "\.(cgi|shtml|phtml|php3?)$">
SSLOptions +StdEnvVars
</Files>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
ServerAdmin basti@sskm.de
ServerName XXXXXXXX.sskm.de
ServerPath /home/ftpusers
DocumentRoot /home/ftpusers/content.ssl
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined
CustomLog /home/ftpusers/log-files/XXXXXXXXX.sskm.de.ssl.log combined
ErrorLog /home/ftpusers/log-files/XXXXXXXXX.sskm.de.ssl.err
ServerSignature Off
</VirtualHost>
</IfDefine>