Portál AbcLinuxu, 29. října 2025 11:09
-Macro VH $host $port $dir-
-VirtualHost *:$port-
ServerName $host
ServerAlias www.$host
ServerAdmin webmaster@$host
DocumentRoot $dir/$host/www/
-Directory $dir/$host/www-
Options all -Indexes +FollowSymLinks
AllowOverride All
-/Directory-
#logy
LogLevel error
ErrorLog $dir/$host/log/error.log
CustomLog $dir/$host/log/access.log combined
-/VirtualHost-
-VirtualHost *:$port-
ServerName admin.$host
ServerAlias www.admin.$host
ServerAdmin webmaster@$host
DocumentRoot $dir/$host/postfixadmin/
-/VirtualHost-
-/Macro-
-IfModule mod_ssl.c-
SSLStrictSNIVHostCheck off
-Macro VHssl $host $port $dir-
-VirtualHost *:$port-
ServerName $host
ServerAlias *.$host
ServerAdmin webmaster@$host
DocumentRoot $dir/$host/www
-Directory $dir/$host-
Options all -Indexes +FollowSymLinks
AllowOverride All
-/Directory-
#logy
LogLevel error
ErrorLog $dir/$host/log/error.log
CustomLog $dir/$host/log/access.log combined
#SSL
SSLEngine on
SSLCertificateFile $dir/$host/ssl/$host.crt
SSLCertificateKeyFile $dir/$host/ssl/$host.key
-FilesMatch "\.(cgi|shtml|phtml|php)$"-
SSLOptions +StdEnvVars
-/FilesMatch-
-Directory $dir/$host/www-
SSLOptions +StdEnvVars
-/Directory-
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
-/VirtualHost-
-VirtualHost *:$port-
ServerName admin.$host
ServerAlias *.admin.$host
ServerAdmin webmaster@$host
DocumentRoot $dir/$host/postfixadmin
-Directory $dir/$host-
Options all -Indexes +FollowSymLinks
AllowOverride All
-/Directory-
#logy
LogLevel error
ErrorLog $dir/$host/log/postfixadmin.error.log
CustomLog $dir/$host/log/postfixadmin.access.log combined
#SSL
SSLEngine on
SSLCertificateFile $dir/$host/ssl/admin.$host.crt
SSLCertificateKeyFile $dir/$host/ssl/admin.$host.key
-FilesMatch "\.(cgi|shtml|phtml|php)$"-
SSLOptions +StdEnvVars
-/FilesMatch-
-Directory $dir/$host/postfixadmin-
SSLOptions +StdEnvVars
-/Directory-
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown
-/VirtualHost-
-/Macro-
-/IfModule-
Use VH mojedomena.tld 80 /var/www
Use VHssl mojedomena.tld 443 /var/www
Obsah ports.conf
Listen 80
ServerName mojedomena.tld
-IfModule ssl_module-
Listen 443
-/IfModule-
-IfModule mod_gnutls.c-
Listen 443
-/IfModule-
Obsah mého .htaccess
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Obsah /etc/hosts
ff02::1 ip6-allnodes ff02::2 ip6-allrouters 127.0.0.1 localhost.localdomain localhost mojedomena.tld # Auto-generated hostname. Please do not remove this comment. XXX.XXX.XXX.XXX mojedomena.tld mojedomena ::1 localhostObsah /etc/hostname
mojedomena
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.