You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

Creating and editing the .htaccess file for the update centre requires SSH access to the NetBeans VM with sudo enabled for your user.

The template for the .htaccess file is below, although it is easiest to copy the file from the previous release folder and find/replace the version numbers. Or find/replace all instances of 21 in the text below with the correct version. The file can be found at /var/www/html/uc/<version>/.htaccess

The file is commented and in three sections for use during release candidate, release and archive stages. Only one line should be active (uncommented) at any point.


# Edit the version numbers and comment / uncomment the relevant lines for beta, release and archive stages.
# Do not delete lines so that this file can be copied as a template for the next release.
# Test locally using eg.
# curl -sLD - https://netbeans.apache.org/nb/updates/21/updates.xml.gz -o /dev/null
# curl -sLD - https://netbeans.apache.org/nb/updates/21/tasks.jar -o /dev/null

# RC stage - redirect to last successful build on ci-builds
RedirectMatch ^/uc/21/(.*)(\?.*)?$ https://ci-builds.apache.org/job/Netbeans/job/netbeans-TLP/job/release210/lastSuccessfulBuild/artifact/dist/netbeans/nbms/$1

# Release state - redirect everything but updates.xml(.gz) to mirrors - updates.xml.gz is a trust anchor and must be served from the same directory as this file.
# RedirectMatch ^/uc/21/((?!(updates\.xml)).*)(\?.*)?$ https://dlcdn.apache.org/netbeans/netbeans/21/nbms/$1

# Archive state - redirect everything to Apache archives once this is no longer the latest version.
# RedirectMatch ^/uc/21/((?!(updates\.xml)).*)(\?.*)?$ https://archive.apache.org/dist/netbeans/netbeans/21/nbms/$1
  • No labels