Uploaded image for project: 'Jenkins Website'
  1. Jenkins Website
  2. WEBSITE-36

Audit existing apache-bsaed URL redirect rules for site portability

    Details

    • Similar Issues:

      Description

      From today's meeting.

      Basically we need to audit the existing URI redirects and .htaccess rules currently in place to ensure that we get as much of our URI structure captured in the new static version of the site

        Attachments

          Issue Links

            Activity

            Hide
            rtyler R. Tyler Croy added a comment - - edited
            <VirtualHost *:8888 *:443>
                ServerName jenkins-ci.org
            
                SSLEngine on
            
                DocumentRoot /usr/share/drupal6
            
                # compatibility with old package repository locations
                RedirectMatch ^/redhat/(.*) http://pkg.jenkins-ci.org/redhat/$1
                RedirectMatch ^/opensuse/(.*) http://pkg.jenkins-ci.org/opensuse/$1
                RedirectMatch ^/debian/(.*) http://pkg.jenkins-ci.org/debian/$1
            
                # convenient short URLs
                RedirectMatch /issue/(.+)          http://issues.jenkins-ci.org/browse/JENKINS-$1
                RedirectMatch /commit/core/(.+)    http://github.com/jenkinsci/jenkins/commit/$1
                RedirectMatch /commit/(.+)/(.+)    http://github.com/jenkinsci/$1/commit/$2
                RedirectMatch /commit/(.+)         http://fisheye.jenkins-ci.org/changelog/Jenkins/?cs=$1
                RedirectMatch /pull/(.+)/([0-9]+)  https://github.com/jenkinsci/$1/pull/$2
            
                Redirect /maven-site/hudson-core /maven-site/jenkins-core
            
                # https://issues.jenkins-ci.org/browse/INFRA-351
                RedirectMatch ^/maven-hpi-plugin(.*) http://jenkinsci.github.io/maven-hpi-plugin/$1
            
                # pull in some static contents from elsewhere
                Redirect /changelog.html    http://jenkins-ci.org/changelog
                Alias /changelog-old.html    /var/www/jenkins-ci.org/changelog-old.html
                Alias /changelog.css        /var/www/jenkins-ci.org/changelog.css
                Alias /atom.gif            /var/www/jenkins-ci.org/atom.gif
                Alias /podcast              /var/www/jenkins-ci.org/podcast.xml
                Alias /images            /var/www/jenkins-ci.org/images
                Alias /jenkins.jnlp        /var/www/jenkins-ci.org/jenkins.jnlp
                Alias /releases.rss        /var/www/jenkins-ci.org/releases.rss
                Alias /rate            /var/www/rate
                Alias /patron            /var/www/jenkins-ci.org/patron
                Alias /census            /var/www/census
                AliasMatch ^(/images/(rfe|bug)2?.gif)    /var/www/hudson-labs.org/$1
                Alias /maven-site        /var/www/jenkins-ci.org/maven-site
            
                # this is for serving PGP public key over HTTPS
                Alias /jenkins-ci.org.key   /var/www/pkg.jenkins-ci.org/debian/jenkins-ci.org.key
            
                AddType    application/x-java-jnlp-file jnlp
            
                # permalinks
                # - this one is referenced from 1.395.1 "sign post" release
                Redirect /why            http://wiki.jenkins-ci.org/pages/viewpage.action?pageId=53608972
                # baked in the help file to create account on Oracle for JDK downloads
                Redirect /oracleAccountSignup    http://www.oracle.com/webapps/redirect/signon?nexturl=http://jenkins-ci.org/
                # to the donation page
                Redirect /donate        https://wiki.jenkins-ci.org/display/JENKINS/Donation
                # CLA links used in the CLA forms
                Redirect /license        https://wiki.jenkins-ci.org/display/JENKINS/Governance+Document#GovernanceDocument-cla
                Redirect /licenses        https://wiki.jenkins-ci.org/display/JENKINS/Governance+Document#GovernanceDocument-cla
                # used to advertise the project meeting
                Redirect /meetings/        https://wiki.jenkins-ci.org/display/JENKINS/Governance+Meeting+Agenda
                # used from friends of Jenkins plugin to link to the thank you page
                Redirect /friend        https://wiki.jenkins-ci.org/display/JENKINS/Donors
                # used by Gradle JPI plugin to include fragment
                Redirect /gradle-jpi-plugin/latest    https://raw.github.com/jenkinsci/gradle-jpi-plugin/master/install
                # used when encouraging people to subscribe to security advisories
                Redirect /advisories        https://wiki.jenkins-ci.org/display/JENKINS/Security+Advisories
                # used in slides and handouts to refer to survey
                Redirect /survey        http://s.zoomerang.com/s/JenkinsSurvey
                # used by RekeySecretAdminMonitor in Jenkins
                Redirect /rekey            https://wiki.jenkins-ci.org/display/SECURITY/Re-keying
                # persistent Google hangout link
                Redirect /hangout        https://plus.google.com/hangouts/_/event/cjh74ltrnc8a8r2e3dbqlfnie38
            # 50.16.203.43 repo.jenkins-ci.org
                Redirect /pull-request-greeting    https://wiki.jenkins-ci.org/display/JENKINS/Pull+Request+to+Repositories
                # Mailer plugin uses this to redirect to Javamail javadoc page
                Redirect /javamail-properties   https://javamail.java.net/nonav/docs/api/overview-summary.html#overview_description
                # baked in jenkins.war 1.587 / 1.580.1
                Redirect /security-144          https://wiki.jenkins-ci.org/display/JENKINS/Slave+To+Master+Access+Control
                # baked in 1.600 easter egg
                Redirect /100k                  http://jenkins-ci.org/content/jenkins-celebration-day-february-26
            
                <Proxy *>
                    Order allow,deny
                    Allow from all
                </Proxy>
            
                # map to account self-service app
                ProxyPass        /account http://localhost:8523/account
                ProxyPassReverse /account http://localhost:8523/account
            
                # access to /account should be redirected to HTTPS
                RewriteEngine on
                RewriteCond %{HTTPS} ^off$
                RewriteRule ^/account$ https://jenkins-ci.org/account [R=301,L]
            
            
                <Directory />
                    Options FollowSymLinks
                    AllowOverride None
                </Directory>
            
                <Directory /var/www/census>
                    Options +Indexes
                    AuthType Basic
                    AuthName "Census Files"
                    AuthUserFile /etc/apache2/census-passwords
                    Require user jenkins
                </Directory>
            
                <Directory /usr/share/drupal6/>
                    Options +FollowSymLinks
                    AllowOverride All
                    order allow,deny
                    allow from all
                </Directory>
            
                ErrorLog /var/log/apache2/error.log
            
                # Possible values include: debug, info, notice, warn, error, crit,
                # alert, emerg.
                LogLevel warn
            
                CustomLog "|/usr/sbin/rotatelogs /var/log/apache2/jenkins-ci.org/access.log.%Y%m%d%H%M%S 604800" combined
            </VirtualHost>
            
            Show
            rtyler R. Tyler Croy added a comment - - edited <VirtualHost *:8888 *:443> ServerName jenkins-ci.org SSLEngine on DocumentRoot /usr/share/drupal6 # compatibility with old package repository locations RedirectMatch ^/redhat/(.*) http: //pkg.jenkins-ci.org/redhat/$1 RedirectMatch ^/opensuse/(.*) http: //pkg.jenkins-ci.org/opensuse/$1 RedirectMatch ^/debian/(.*) http: //pkg.jenkins-ci.org/debian/$1 # convenient short URLs RedirectMatch /issue/(.+) http: //issues.jenkins-ci.org/browse/JENKINS-$1 RedirectMatch /commit/core/(.+) http: //github.com/jenkinsci/jenkins/commit/$1 RedirectMatch /commit/(.+)/(.+) http: //github.com/jenkinsci/$1/commit/$2 RedirectMatch /commit/(.+) http: //fisheye.jenkins-ci.org/changelog/Jenkins/?cs=$1 RedirectMatch /pull/(.+)/([0-9]+) https: //github.com/jenkinsci/$1/pull/$2 Redirect /maven-site/hudson-core /maven-site/jenkins-core # https: //issues.jenkins-ci.org/browse/INFRA-351 RedirectMatch ^/maven-hpi-plugin(.*) http: //jenkinsci.github.io/maven-hpi-plugin/$1 # pull in some static contents from elsewhere Redirect /changelog.html http: //jenkins-ci.org/changelog Alias /changelog-old.html / var /www/jenkins-ci.org/changelog-old.html Alias /changelog.css / var /www/jenkins-ci.org/changelog.css Alias /atom.gif / var /www/jenkins-ci.org/atom.gif Alias /podcast / var /www/jenkins-ci.org/podcast.xml Alias /images / var /www/jenkins-ci.org/images Alias /jenkins.jnlp / var /www/jenkins-ci.org/jenkins.jnlp Alias /releases.rss / var /www/jenkins-ci.org/releases.rss Alias /rate / var /www/rate Alias /patron / var /www/jenkins-ci.org/patron Alias /census / var /www/census AliasMatch ^(/images/(rfe|bug)2?.gif) / var /www/hudson-labs.org/$1 Alias /maven-site / var /www/jenkins-ci.org/maven-site # this is for serving PGP public key over HTTPS Alias /jenkins-ci.org.key / var /www/pkg.jenkins-ci.org/debian/jenkins-ci.org.key AddType application/x-java-jnlp-file jnlp # permalinks # - this one is referenced from 1.395.1 "sign post" release Redirect /why http: //wiki.jenkins-ci.org/pages/viewpage.action?pageId=53608972 # baked in the help file to create account on Oracle for JDK downloads Redirect /oracleAccountSignup http: //www.oracle.com/webapps/redirect/signon?nexturl=http://jenkins-ci.org/ # to the donation page Redirect /donate https: //wiki.jenkins-ci.org/display/JENKINS/Donation # CLA links used in the CLA forms Redirect /license https: //wiki.jenkins-ci.org/display/JENKINS/Governance+Document#GovernanceDocument-cla Redirect /licenses https: //wiki.jenkins-ci.org/display/JENKINS/Governance+Document#GovernanceDocument-cla # used to advertise the project meeting Redirect /meetings/ https: //wiki.jenkins-ci.org/display/JENKINS/Governance+Meeting+Agenda # used from friends of Jenkins plugin to link to the thank you page Redirect /friend https: //wiki.jenkins-ci.org/display/JENKINS/Donors # used by Gradle JPI plugin to include fragment Redirect /gradle-jpi-plugin/latest https: //raw.github.com/jenkinsci/gradle-jpi-plugin/master/install # used when encouraging people to subscribe to security advisories Redirect /advisories https: //wiki.jenkins-ci.org/display/JENKINS/Security+Advisories # used in slides and handouts to refer to survey Redirect /survey http: //s.zoomerang.com/s/JenkinsSurvey # used by RekeySecretAdminMonitor in Jenkins Redirect /rekey https: //wiki.jenkins-ci.org/display/SECURITY/Re-keying # persistent Google hangout link Redirect /hangout https: //plus.google.com/hangouts/_/event/cjh74ltrnc8a8r2e3dbqlfnie38 # 50.16.203.43 repo.jenkins-ci.org Redirect /pull-request-greeting https: //wiki.jenkins-ci.org/display/JENKINS/Pull+Request+to+Repositories # Mailer plugin uses this to redirect to Javamail javadoc page Redirect /javamail-properties https: //javamail.java.net/nonav/docs/api/overview-summary.html#overview_description # baked in jenkins.war 1.587 / 1.580.1 Redirect /security-144 https: //wiki.jenkins-ci.org/display/JENKINS/Slave+To+Master+Access+Control # baked in 1.600 easter egg Redirect /100k http: //jenkins-ci.org/content/jenkins-celebration-day-february-26 <Proxy *> Order allow,deny Allow from all </Proxy> # map to account self-service app ProxyPass /account http: //localhost:8523/account ProxyPassReverse /account http: //localhost:8523/account # access to /account should be redirected to HTTPS RewriteEngine on RewriteCond %{HTTPS} ^off$ RewriteRule ^/account$ https: //jenkins-ci.org/account [R=301,L] <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory / var /www/census> Options +Indexes AuthType Basic AuthName "Census Files" AuthUserFile /etc/apache2/census-passwords Require user jenkins </Directory> <Directory /usr/share/drupal6/> Options +FollowSymLinks AllowOverride All order allow,deny allow from all </Directory> ErrorLog / var /log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog "|/usr/sbin/rotatelogs / var /log/apache2/jenkins-ci.org/access.log.%Y%m%d%H%M%S 604800" combined </VirtualHost>
            Hide
            rtyler R. Tyler Croy added a comment -

            with WEBSITE-44 we're serving jenkins-ci.org off of cucumber, which means these rewrite rules aren't really all that important.

            This will have more of an impact when we move over to jenkins.io

            Show
            rtyler R. Tyler Croy added a comment - with WEBSITE-44 we're serving jenkins-ci.org off of cucumber, which means these rewrite rules aren't really all that important. This will have more of an impact when we move over to jenkins.io

              People

              • Assignee:
                rtyler R. Tyler Croy
                Reporter:
                rtyler R. Tyler Croy
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: