Changeset View
Changeset View
Standalone View
Standalone View
apache-docs.kde.org.conf
1 | <VirtualHost *:80> | 1 | <VirtualHost *:80> | ||
---|---|---|---|---|---|
2 | ServerAdmin webmaster@kde.org | 2 | ServerAdmin webmaster@kde.org | ||
3 | ServerName docs.kde.org | 3 | ServerName docs.kde.org | ||
4 | DocumentRoot /srv/www/docs.kde.org/html/ | 4 | DocumentRoot /srv/www/docs.kde.org/public | ||
5 | 5 | | |||
6 | ErrorLog ${APACHE_LOG_DIR}/docs.kde.org-error.log | 6 | ErrorLog ${APACHE_LOG_DIR}/docs.kde.org-error.log | ||
7 | CustomLog ${APACHE_LOG_DIR}/docs.kde.org.log combined | 7 | CustomLog ${APACHE_LOG_DIR}/docs.kde.org.log combined | ||
8 | 8 | | |||
9 | Redirect permanent / https://docs.kde.org/ | 9 | Redirect permanent / https://docs.kde.org/ | ||
10 | </VirtualHost> | 10 | </VirtualHost> | ||
11 | 11 | | |||
12 | <VirtualHost *:443> | 12 | <VirtualHost *:443> | ||
13 | ServerAdmin webmaster@kde.org | 13 | ServerAdmin webmaster@kde.org | ||
14 | ServerName docs.kde.org | 14 | ServerName docs.kde.org | ||
15 | DocumentRoot /srv/www/docs.kde.org/html/ | 15 | DocumentRoot /srv/www/docs.kde.org/public | ||
16 | 16 | | |||
17 | ScriptAlias /docsearch/ /usr/lib/cgi-bin/omega/ | 17 | ScriptAlias /docsearch/ /usr/lib/cgi-bin/omega/ | ||
18 | Alias /images/xapian-omega /usr/share/images/xapian-omega | 18 | Alias /images/xapian-omega /usr/share/images/xapian-omega | ||
19 | SetEnv OMEGA_CONFIG_FILE /srv/www/docs.kde.org/omega/omega.conf | 19 | SetEnv OMEGA_CONFIG_FILE /srv/www/docs.kde.org/omega/omega.conf | ||
20 | 20 | | |||
21 | ErrorLog ${APACHE_LOG_DIR}/docs.kde.org-error.log | 21 | ErrorLog ${APACHE_LOG_DIR}/docs.kde.org-error.log | ||
22 | CustomLog ${APACHE_LOG_DIR}/docs.kde.org.log combined | 22 | CustomLog ${APACHE_LOG_DIR}/docs.kde.org.log combined | ||
23 | 23 | | |||
24 | RewriteEngine On | 24 | RewriteEngine On | ||
25 | RewriteRule ^/docs/([^/]*)/?$ /index.php?branch=stable&language=$1 [L,QSA] | | |||
26 | RewriteRule ^/(development|stable|kde3)/common/ - [L] | | |||
27 | RewriteRule ^/development/([^/]*)/?$ /index.php?branch=development&language=$1 [L,QSA] | | |||
28 | RewriteRule ^/development/([^/]*)/([^/]+)/?$ /index.php?branch=development&language=$1&package=$2 [L,QSA] | | |||
29 | RewriteRule ^/development/([^/]*)/([^/]+)/([^/]+)/?$ /index.php?branch=development&language=$1&package=$2&application=$3 [L,QSA] | | |||
30 | RewriteRule ^/development/([^/]*)/([^/]+)/([^/]+)/(.+)$ /index.php?branch=development&language=$1&package=$2&application=$3&path=$4 [L,QSA] | | |||
31 | RewriteRule ^/stable/([^/]*)/?$ /index.php?branch=stable&language=$1 [L,QSA] | | |||
32 | RewriteRule ^/stable/([^/]*)/([^/]+)/?$ /index.php?branch=stable&language=$1&package=$2 [L,QSA] | | |||
33 | RewriteRule ^/stable/([^/]*)/([^/]+)/([^/]+)/?$ /index.php?branch=stable&language=$1&package=$2&application=$3 [L,QSA] | | |||
34 | RewriteRule ^/stable/([^/]*)/([^/]+)/([^/]+)/(.+)$ /index.php?branch=stable&language=$1&package=$2&application=$3&path=$4 [L,QSA] | | |||
35 | RewriteRule ^/kde3/([^/]*)/?$ /index.php?branch=kde3&language=$1 [L,QSA] | | |||
36 | RewriteRule ^/kde3/([^/]*)/([^/]+)/?$ /index.php?branch=kde3&language=$1&package=$2 [L,QSA] | | |||
37 | # Temporary rule for umbrello - remove not later than 6 months after the first Qt5release of Umbrello for Windows | | |||
38 | # or the end of 2018, whatever it happens first. | | |||
39 | RewriteRule ^/stable4/([^/]*)/kdesdk/umbrello/(.+)$ /index.php?branch=development&language=$1&application=umbrello&path=$2 [L,QSA] | | |||
40 | 25 | | |||
41 | <Directory /srv/www/docs.kde.org/> | 26 | <Directory /srv/www/docs.kde.org/public> | ||
42 | Options +SymLinksIfOwnerMatch | | |||
43 | AllowOverride None | 27 | AllowOverride None | ||
44 | Order allow,deny | 28 | # Order allow,deny | ||
45 | Allow from all | 29 | Allow from all | ||
46 | Require all granted | 30 | Require all granted | ||
31 | FallBackRessource /index.php | ||||
47 | </Directory> | 32 | </Directory> | ||
48 | 33 | | |||
49 | <Directory "/usr/lib/cgi-bin/omega"> | 34 | <Directory "/usr/lib/cgi-bin/omega"> | ||
50 | Options +ExecCGI | 35 | Options +ExecCGI | ||
51 | AllowOverride None | 36 | AllowOverride None | ||
52 | Order deny,allow | 37 | # Order deny,allow | ||
53 | Allow from all | 38 | Allow from all | ||
54 | Require all granted | 39 | Require all granted | ||
55 | </Directory> | 40 | </Directory> | ||
56 | 41 | | |||
57 | # Enable SSL | 42 | # Enable SSL | ||
58 | Include /etc/apache2/common/ssl.conf | 43 | Include /etc/apache2/common/ssl.conf | ||
59 | Include /etc/apache2/common/ssl-star-kde-org.conf | 44 | Include /etc/apache2/common/ssl-star-kde-org.conf | ||
60 | # Handle shared Capacity configuration | 45 | # Handle shared Capacity configuration | ||
61 | Include /etc/apache2/common/capacity.conf | 46 | Include /etc/apache2/common/capacity.conf | ||
47 | | ||||
48 | # uncomment the following lines if you install assets as symlinks | ||||
49 | # or run into problems when compiling LESS/Sass/CoffeeScript assets | ||||
50 | <Directory /var/www/docs.carlschwan.eu> | ||||
51 | Options FollowSymlinks | ||||
52 | </Directory> | ||||
62 | </VirtualHost> | 53 | </VirtualHost> |