MRBS: Unterschied zwischen den Versionen

Aus Doku-Wiki
Zur Navigation springenZur Suche springen
Zeile 6: Zeile 6:
 
* Webserver einrichten
 
* Webserver einrichten
 
  #---HTTP
 
  #---HTTP
 
+
 
  <VirtualHost 172.20.60.20:80>
 
  <VirtualHost 172.20.60.20:80>
 
     ServerAdmin administrator@example.com
 
     ServerAdmin administrator@example.com

Version vom 22. August 2011, 08:26 Uhr

Links

Installation

  • Pakete für Debian Squeeze
aptitude install apache2 mysql-server libapache2-mod-php5 libapache2-mod-auth-mysql phpmyadmin
  • Webserver einrichten
#---HTTP

<VirtualHost 172.20.60.20:80>
    ServerAdmin administrator@example.com
    ServerName booking.blb-karlsruhe.de
    Redirect permanent / https://booking.blb-karlsruhe.de/
</VirtualHost>

#---SSL 

<VirtualHost 172.20.60.20:443>
    ServerAdmin administrator@example.com
    SSLEngine On
    SSLCertificateFile /etc/apache2/ssl-cert/mrbs.crt.pem
    SSLCertificateKeyFile /etc/apache2/ssl-cert/mrbs.key.op.pem
    SSLCertificateChainFile /etc/apache2/ssl-cert/SSLCertifikateChainFile.pem
    DocumentRoot /var/www/mrbs/htdocs
    ServerName mrbs.example.com
    ServerAlias mrbs.example.com
    ErrorLog  /var/log/apache2/mrbs/error_log
    CustomLog /var/log/apache2/mrbs/access_log common

<Directory />
    AllowOverride None
    Options -Indexes
    <FilesMatch "^\.ht">
      Order deny,allow
      Deny from All
    </FilesMatch>
</Directory>

include /etc/phpmyadmin/apache.conf

</VirtualHost>