This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
wiki:os:debian:apache2 [2012/10/03 21:33] root vytvořeno |
wiki:os:debian:apache2 [2014/12/26 18:31] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Apache2 ====== | ====== Apache2 ====== | ||
| - | ===== Apache2 + SSL ===== | ||
| - | ># **apt-get install apache2 ssl-cert openssl** | + | |
| - | ># **mkdir / | + | * [[wiki: |
| - | ># **openssl req $@ -new -x509 -days 365 -nodes -out / | + | |
| - | ># **chmod 600 / | + | |
| - | * / | ||
| - | |||
| - | <file | / | ||
| - | NameVirtualHost *:443 | ||
| - | < | ||
| - | ServerAdmin webmaster@domain.cz | ||
| - | ServerName localhost | ||
| - | # ServerAlias *.localhost.localdomain | ||
| - | |||
| - | SSLEngine On | ||
| - | SSLCertificateFile / | ||
| - | |||
| - | DocumentRoot /var/www/ | ||
| - | < | ||
| - | Options FollowSymLinks | ||
| - | AllowOverride All | ||
| - | </ | ||
| - | < | ||
| - | Options Indexes FollowSymLinks MultiViews | ||
| - | AllowOverride All | ||
| - | Order allow,deny | ||
| - | Allow from all | ||
| - | </ | ||
| - | |||
| - | LogLevel warn | ||
| - | ErrorLog / | ||
| - | CustomLog / | ||
| - | |||
| - | </ | ||
| - | </ | ||
| - | |||
| - | ># **ln -s / | ||
| - | ># **a2enmod ssl** | ||
| - | ># **a2enmod rewrite** | ||
| - | ># **/ | ||