Hi, this is the best doc about it.
 http://www.openbsd.org/faq/faq10.html#HTTPS
 Regards.
 On 9/30/05, Beto <[EMAIL PROTECTED]> wrote:
>
> Hello, can anybody send me a copy, a example of an apache server with
> SSL. My Apache server is stopped. Attaching file.
>
>
> Thanks
>
> **************************************************************************
> ServerType standalone
> ServerRoot "/var/www"
>
> PidFile logs/httpd.pid
> MaxClients 150
>
> #Modulos cargados
> LoadModule php5_module /usr/lib/apache/modules/libphp5.so
> LoadModule rewrite_module /usr/lib//apache/modules/mod_rewrite.so
>
> Port 80
>
> <IfDefine SSL>
> Listen 80
> Listen 443
> </IfDefine>
>
> User www
> Group www
>
> ServerAdmin [EMAIL PROTECTED]
> ServerName *
> DocumentRoot "/var/www/htdocs"
>
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogLevel notice
> ErrorLog syslog
> CustomLog "| /usr/bin/logger -p local6.info <http://local6.info>" common
>
> <Directory />
> Options FollowSymLinks
> AllowOverride None
> Order deny,allow
> Deny from all
> </Directory>
>
> <Directory "/var/www/htdocs">
> Order allow,deny
> Allow from all
> </Directory>
>
> <Directory "/var/www/domains">
> Order allow,deny
> Allow from all
> </Directory>
>
> <Directory "/var/www/domains/one">
> Options Indexes FollowSymLinks MultiViews
> AllowOverride None
> Order allow,deny
> Allow from all
> </Directory>
>
> UserDir disabled
>
> DirectoryIndex index.php index.htm index.html
>
> ServerTokens Prod
> UseCanonicalName On
> ServerSignature Off
>
> IndexOptions FancyIndexing
> LanguagePriority es en
>
> #archivos .php son interpretados por PHP
> AddType application/x-httpd-php .php .php3
>
> #Para el favicon
> AddType image/x-icon .ico
>
> NameVirtualHost *:80
>
> <IfDefine SSL>
> AddType application/x-x509-ca-cert .crt
> AddType application/x-pkcs7-crl .crl
> </IfDefine>
>
> <IfModule mod_ssl.c>
> SSLPassPhraseDialog builtin
> SSLSEssionCache dbm:logs/ssl_scache
> SSLSessionCacheTimeout 300
> SSLMutex sem
> SSLRandomSeed startup builtin
> SSLRandomSeed connect builtin
> SSLRandomSeed startup file:/dev/arandom 512
> SSLLog logs/ssl_engine_log
> SSLLogLevel info
> </IfModule>
>
> SSLCertificateFile /etc/ssl/server.crt
> SSLCertificateKeyFile /etc/ssl/private/server.key
>
> #Dominio Default
>
> <VirtualHost *:80>
> SSLDisable
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/domains/one
> ServerName www.dominio.com <http://www.dominio.com>
> RewriteEngine on
> RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> RewriteRule .* - [F]
> </VirtualHost>
>
> <VirtualHost *:443>
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/domains/onessl
> ServerName lob.dominio.com <http://lob.dominio.com>
> RewriteEngine on
> RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> RewriteRule .* - [F]
> #SSL
> SSLEngine on
> SSLCertificateFile /etc/ssl/lob.dominio.com.crt
> #SSLCertificateKeyFile /etc/ssl/private/server.key
> SSLVerifyClient 0
> CustomLog "| /usr/bin/logger -p local6" common
> </VirtualHost>
>
> <VirtualHost *:80>
> SSLDisable
> ServerAdmin [EMAIL PROTECTED]
> DocumentRoot /var/www/domains/idbrandidentity
> ServerName www.domain2.com <http://www.domain2.com>
> # ErrorLog logs/www.domain2.com-error_log
> # CustomLog logs/www.domain2.com-access_log common
> RewriteEngine on
> RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
> RewriteRule .* - [F]
> </VirtualHost>
>
>
>
> ______________________________
> Visita http://www.tutopia.com y comienza a navegar mas rapido en Internet.
> Tutopia es Internet para todos.
>
>


--
---
BSD - Unix simplicity.
Francisco Valladolid Hdez.
[EMAIL PROTECTED]

Reply via email to