arch777fr Bonjour, Je voudrais faire un serveur personnel qui tourne sous CentOS. J'ai installé Apache et Mysql qui fonctionnent correctement. Maintenant je voudrais utiliser owncloud. J'ai suivi des tutoriels et il fonctionne aussi correctement avec le protocole SSL. J'ai fait un virtualhost dans /etc/httpd/conf.d/owncloud.conf avec le port 443 ouvert. Owncloud est installé sous /var/www/html (via yum install) Pour compléter la liste je vroudrais utiliser aussi Wordpress avec le protocole SSL avec un autre virtualhost. Mais c'est là que ça coince : wordpress est installé (via yum install) sous /usr/share/wordpress. Or dans le log /var/log/httpd/ssl_error_log j'ai un message d'erreur : [client 192.168.0.50] File does not exist: /var/www/html/wordpress Ce qui est normal puisque Wordpress n'est pas dans ce répertoire! Quelqu'un aurait une idée? Mon fichier de config apache est : LoadModule ssl_module modules/mod_ssl.so # # When we also provide SSL we have to listen to the # the HTTPS port in addition. # Listen 443 NameVirtualHost *:443 ## ## SSL Virtual Host Context ## <VirtualHost *:443> # General setup for the virtual host, inherited from global configuration DocumentRoot /var/www/html/ # Use separate log files for the SSL virtual host; note that LogLevel # is not inherited from httpd.conf. ErrorLog logs/ssl_error_log TransferLog logs/ssl_access_log LogLevel warn # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on # SSL Protocol support: # List the enable protocol levels with which clients will be able to # connect. Disable SSLv2 access by default: SSLProtocol all -SSLv2 # Server Certificate: # Point SSLCertificateFile at a PEM encoded certificate. If # the certificate is encrypted, then you will be prompted for a # pass phrase. Note that a kill -HUP will prompt again. A new # certificate can be generated using the genkey(1) command. SSLCertificateFile /etc/ssl/owncloud/owncloud.crt # Server Private Key: # If the key is not combined with the certificate, use this # directive to point at the key file. Keep in mind that if # you've both a RSA and a DSA private key you can configure # both in parallel (to also allow the use of DSA ciphers, etc.) SSLCertificateKeyFile /etc/ssl/owncloud/owncloud.key <Directory /var/www/html/owncloud> AllowOverride All </Directory> </VirtualHost> <VirtualHost *:443> DocumentRoot /usr/share/wordpress #Alias /wordpress /usr/share/wordpress ErrorLog /var/log/httpd/wordpress-error-log # SSL Engine Switch: # Enable/Disable SSL for this virtual host. SSLEngine on # SSL Protocol support: # List the enable protocol levels with which clients will be able to # connect. Disable SSLv2 access by default: SSLProtocol all -SSLv2 # Server Certificate: # Point SSLCertificateFile at a PEM encoded certificate. If # the certificate is encrypted, then you will be prompted for a # pass phrase. Note that a kill -HUP will prompt again. A new # certificate can be generated using the genkey(1) command. SSLCertificateFile /etc/ssl/owncloud/owncloud.crt # Server Private Key: # If the key is not combined with the certificate, use this # directive to point at the key file. Keep in mind that if # you've both a RSA and a DSA private key you can configure # both in parallel (to also allow the use of DSA ciphers, etc.) SSLCertificateKeyFile /etc/ssl/owncloud/owncloud.key<Directory /usr/share/wordpress> # AllowOverride All AllowOverride Options # <IfModule mod_authz_core.c> # # Apache 2.4 # Require local # </IfModule> # <IfModule !mod_authz_core.c> # # Apache 2.2 # Order Deny,Allow # Deny from All # Allow from 127.0.0.1 # Allow from 192.168.0.50 # Allow from ::1 # </IfModule> </Directory> <Directory /usr/share/wordpress/wp-content/plugins/akismet> <FilesMatch ".(php|txt)$"> Order Deny,Allow Deny from all </FilesMatch> </Directory> </VirtualHost>
pingou > Je voudrais faire un serveur personnel qui tourne sous CentOS. Et tu poses la question sur un forum Fedora? --> http://fr.centos.org/forums/
arch777fr Merci Adrien.D pour ta réponse mais le test n'a pas fonctionné... J'ai vu sur le site de Wordpress qu'il y a un plugin pour utiliser SSL mais j'obtiens la même erreur avec ce plugin. Là je suis largué... Je reviens sur la version sans SSL qui fonctionne! Désolé pingou de poster ici mais CentOS et Fedora, c'est la même famille !
pingou > Désolé pingou de poster ici mais CentOS et Fedora, c'est la même famille ! Cousin oui, mais ici con fait du support Fedora et non CentOS