1 | #############################################################################
|
2 | ### Begin von: Muss an den Anfang
|
3 |
|
4 | <VirtualHost *:80>
|
5 | ServerName domain.dny.xyz
|
6 | ServerSignature On
|
7 | DocumentRoot /srv/apache2/htdocs/domain.dny.xyz/default/
|
8 | <Directory /srv/apache2/htdocs/domain.dny.xyz/default/>
|
9 | Options -Indexes FollowSymLinks MultiViews
|
10 | AllowOverride None
|
11 | Order allow,deny
|
12 | allow from all
|
13 | RedirectMatch 301 ^/(.*) http://www.domain.dny.xyz/$1
|
14 | </Directory>
|
15 | </VirtualHost>
|
16 |
|
17 | ### Ende von: Muss an den Anfang
|
18 | #############################################################################
|
19 | ### Begin von Subdomains
|
20 |
|
21 | ### Subdomain >>> www.domain.dny.xyz <<<
|
22 | <VirtualHost *:80>
|
23 | ServerName www.domain.dny.xyz
|
24 | ServerSignature On
|
25 | DocumentRoot /srv/apache2/htdocs/domain.dny.xyz/www/
|
26 | <Directory /srv/apache2/htdocs/domain.dny.xyz/www/>
|
27 | Options Indexes FollowSymLinks MultiViews
|
28 | AllowOverride None
|
29 | Order allow,deny
|
30 | allow from all
|
31 | </Directory>
|
32 | </VirtualHost>
|
33 |
|
34 | ### Subdomain >>> phpmyadmin.domain.dny.xyz <<<
|
35 | <VirtualHost *:80>
|
36 | ServerName phpmyadmin.domain.dny.xyz
|
37 | ServerSignature On
|
38 | DocumentRoot /srv/apache2/htdocs/domain.dny.xyz/phpmyadmin/
|
39 | <Directory /srv/apache2/htdocs/domain.dny.xyz/phpmyadmin/>
|
40 | Options -Indexes FollowSymLinks MultiViews
|
41 | AllowOverride None
|
42 |
|
43 | #Order allow,deny
|
44 | #allow from all
|
45 |
|
46 | AuthType Basic
|
47 | AuthName "phpmyadmin.domain.dny.xyz"
|
48 | AuthUserFile /srv/apache2/authfiels/.htpasswd
|
49 | AuthGroupFile /srv/apache2/authfiels/.htgroup
|
50 | require group phpmyadmin
|
51 |
|
52 | </Directory>
|
53 | </VirtualHost>
|
54 |
|
55 | ### Subdomain >>> private.domain.dny.xyz <<<
|
56 | <VirtualHost *:80>
|
57 | ServerName private.domain.dny.xyz
|
58 | ServerSignature On
|
59 | DocumentRoot /srv/apache2/htdocs/domain.dny.xyz/private/
|
60 | <Directory /srv/apache2/htdocs/domain.dny.xyz/private/>
|
61 | Options Indexes FollowSymLinks MultiViews
|
62 | AllowOverride None
|
63 |
|
64 | #Order allow,deny
|
65 | #allow from all
|
66 |
|
67 | AuthType Basic
|
68 | AuthName "private.domain.dny.xyz"
|
69 | AuthUserFile /srv/apache2/authfiels/.htpasswd
|
70 | AuthGroupFile /srv/apache2/authfiels/.htgroup
|
71 | require group private
|
72 |
|
73 | <FilesMatch "\.(?i:avi|mkv|mp4)$">
|
74 | ForceType application/octet-stream
|
75 | Header set Content-Disposition attachment
|
76 | </FilesMatch>
|
77 | </Directory>
|
78 | </VirtualHost>
|
79 |
|
80 | ### Subdomain >>> public.domain.dny.xyz <<<
|
81 | <VirtualHost *:80>
|
82 | ServerName public.domain.dny.xyz
|
83 | ServerSignature On
|
84 | DocumentRoot /srv/apache2/htdocs/domain.dny.xyz/public/
|
85 | <Directory /srv/apache2/htdocs/domain.dny.xyz/public/>
|
86 | Options -Indexes FollowSymLinks MultiViews
|
87 | AllowOverride None
|
88 | Order allow,deny
|
89 | allow from all
|
90 | </Directory>
|
91 | </VirtualHost>
|
92 |
|
93 | ### Ende von: Subdomains
|
94 | #############################################################################
|
95 | ### Begin von: Muss ans Ende
|
96 |
|
97 | <VirtualHost *:80>
|
98 | ServerAlias *.domain.dny.xyz
|
99 | ServerName domain.dny.xyz
|
100 | ServerSignature On
|
101 | DocumentRoot /srv/apache2/htdocs/domain.dny.xyz/default/
|
102 | <Directory /srv/apache2/htdocs/domain.dny.xyz/default/>
|
103 | Options -Indexes FollowSymLinks MultiViews
|
104 | AllowOverride None
|
105 | Order allow,deny
|
106 | allow from all
|
107 | RedirectMatch 301 ^/.* http://www.domain.dny.xyz/
|
108 | </Directory>
|
109 | </VirtualHost>
|
110 |
|
111 | ### Ende von: Muss ans Ende
|
112 | #############################################################################
|