summaryrefslogtreecommitdiffstats
path: root/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
diff options
context:
space:
mode:
Diffstat (limited to 'server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf')
-rw-r--r--server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf190
1 files changed, 62 insertions, 128 deletions
diff --git a/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf b/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
index f40a8eb..155cf84 100644
--- a/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
+++ b/server/setup/05-service-settings/etc/apache2/sites-available/jogamp_org.conf
@@ -6,8 +6,9 @@
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName jogamp.org
- ServerAlias www.jogamp.org
+ ServerAlias *.jogamp.org
ServerPath /jogamp.org/
+ SuexecUserGroup webrunner webrunner
RewriteEngine On
ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
@@ -32,38 +33,40 @@
Require all granted
</Directory>
- RewriteCond %{HTTP_HOST} ^www.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
-
- #RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- #RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
-
- RewriteCond %{REQUEST_URI} ^/wiki/index.php$
- RewriteCond %{QUERY_STRING} ^title=Special:UserLogin
- RewriteCond %{REQUEST_METHOD} ^GET$
- RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L,NE]
-
- #
- # Due to security concerns, session hijacking .. etc .. the whole
- # bugzilla stream will go over https
- #
- RewriteCond %{REQUEST_URI} ^/bugzilla
- RewriteRule ^/bugzilla/(.*)$ https://%{SERVER_NAME}/bugzilla/$1 [R=301,L,NE]
+ <Directory "/srv/www/jogamp.org/wiki">
+ Options +Indexes +ExecCGI -MultiViews +SymLinksIfOwnerMatch
+ AllowOverride All
+ Require all granted
+ AddHandler fcgid-script .php
+ FcgidWrapper /srv/www/scripts/php7.0-wrapper .php
+ </Directory>
- SetEnv GIT_PROJECT_ROOT /srv/scm
- SetEnv GIT_HTTP_EXPORT_ALL
- ScriptAlias /srv/scm/ /usr/lib/git-core/git-http-backend/
- <Directory "/srv/www/jogamp.org/git">
- DirectoryIndex gitweb.cgi
- AllowOverride all
- #Order allow,deny
- #Allow from all
+ #SetEnv GIT_PROJECT_ROOT /srv/scm
+ #SetEnv GIT_HTTP_EXPORT_ALL
+ #ScriptAlias /srv/scm/ /usr/lib/git-core/git-http-backend/
+ #<Directory "/srv/www/jogamp.org/git">
+ # DirectoryIndex gitweb.cgi
+ # AllowOverride all
+ # #Order allow,deny
+ # #Allow from all
+ # Require all granted
+ # Options ExecCGI
+ # <Files gitweb.cgi>
+ # SetHandler cgi-script
+ # </Files>
+ # SetEnv GITWEB_CONFIG /srv/scm/gitweb.conf
+ #</Directory>
+
+ ScriptAlias /cgit/ "/srv/www/cgit/cgit.cgi/"
+ #RedirectMatch ^/cgit$ /cgit/
+ Alias /cgit-css "/usr/share/cgit/"
+ <Directory "/srv/www/cgit/">
+ AllowOverride None
+ Options ExecCGI FollowSymlinks
Require all granted
- Options ExecCGI
- <Files gitweb.cgi>
- SetHandler cgi-script
- </Files>
- SetEnv GITWEB_CONFIG /srv/scm/gitweb.conf
+ </Directory>
+ <Directory "/srv/www/jogamp.org/git">
+ Include sites-available/gitweb-to-cgit-rel.conf
</Directory>
Alias /icons/ "/srv/www/jogamp.org/icons/"
@@ -78,6 +81,18 @@
#
# Due to security concerns, session hijacking .. etc .. the whole
+ # bugzilla stream will go over https
+ #
+ RewriteCond %{REQUEST_URI} ^/wiki/index.php$
+ RewriteCond %{QUERY_STRING} ^title=Special:UserLogin
+ RewriteCond %{REQUEST_METHOD} ^GET$
+ RewriteRule ^(.*)$ https://%{SERVER_NAME}/$1 [R=301,L,NE]
+
+ RewriteCond %{REQUEST_URI} ^/bugzilla
+ RewriteRule ^/bugzilla/(.*)$ https://%{SERVER_NAME}/bugzilla/$1 [R=301,L,NE]
+
+ #
+ # Due to security concerns, session hijacking .. etc .. the whole
# hudson and bugzilla stream will go over https
#
RewriteCond %{REQUEST_URI} ^/chuck
@@ -123,114 +138,33 @@
#</Proxy>
#ProxyPass /chuck http://localhost:8080/chuck
#ProxyPassReverse /chuck http://localhost:8080/chuck
-</VirtualHost>
-
-<VirtualHost *:80>
- ServerName blog.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
-</VirtualHost>
-<VirtualHost *:80>
- ServerName bugzilla.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ https://jogamp.org/%1/$1 [R=301,L,NE]
-</VirtualHost>
-
-<VirtualHost *:80>
- ServerName wiki.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
-</VirtualHost>
+ RewriteCond %{HTTP_HOST} ^www\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
-<VirtualHost *:80>
- ServerName scm.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
+ RewriteCond %{HTTP_HOST} ^scm\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/git/$1 [R=301,L,NE]
-</VirtualHost>
-<VirtualHost *:80>
- ServerName jogl.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/%1/www/$1 [R=301,L,NE]
-</VirtualHost>
+ RewriteCond %{HTTP_HOST} ^joal\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ http://jogamp.org/joal/www/$1 [R=301,L,NE]
-<VirtualHost *:80>
- ServerName jocl.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/%1/www/$1 [R=301,L,NE]
-</VirtualHost>
+ RewriteCond %{HTTP_HOST} ^jogl\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ http://jogamp.org/jogl/www/$1 [R=301,L,NE]
-<VirtualHost *:80>
- ServerName joal.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/%1/www/$1 [R=301,L,NE]
-</VirtualHost>
+ RewriteCond %{HTTP_HOST} ^jocl\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ http://jogamp.org/jocl/www/$1 [R=301,L,NE]
-<VirtualHost *:80>
- ServerName demos.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
-</VirtualHost>
-
-<VirtualHost *:80>
- ServerName chuck.jogamp.org
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.org-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.org-access.log combined
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
- RewriteRule ^/(.*)$ https://jogamp.org/%1/$1 [R=301,L,NE]
-</VirtualHost>
+ RewriteCond %{HTTP_HOST} ^demos\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ http://jogamp.org/jogl-demos/www/$1 [R=301,L,NE]
-<VirtualHost *:80>
- ServerName jogamp.com
- ServerAlias *.jogamp.com
- ServerPath /jogamp.org/
- ErrorLog ${APACHE_LOG_DIR}/jogamp.com-error.log
- CustomLog ${APACHE_LOG_DIR}/jogamp.com-access.log combined
+ RewriteCond %{HTTP_HOST} ^bugzilla\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ https://jogamp.org/bugzilla/$1 [R=301,L,NE]
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^www.jogamp\.com$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
+ RewriteCond %{HTTP_HOST} ^chuck\.jogamp\.org$ [NC]
+ RewriteRule ^/(.*)$ https://jogamp.org/chuck/$1 [R=301,L,NE]
- RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.com$ [NC]
+ RewriteCond %{HTTP_HOST} ^(.*)\.jogamp\.org$ [NC]
RewriteRule ^/(.*)$ http://jogamp.org/%1/$1 [R=301,L,NE]
-
- RewriteCond %{HTTP_HOST} ^jogamp\.com$ [NC]
- RewriteRule ^/(.*)$ http://jogamp.org/$1 [R=301,L,NE]
</VirtualHost>
#