














WordPress VIP includes content delivery and caching. If you already use Akamai for these capabilities, WordPress VIP supports direct integration with it.
After completing the integration steps with Akamai, you can:
You configure integration across three layers: the Akamai platform, the WordPress VIP dashboard and application code, and your public DNS records. After launch, keep your IP address lists current if you restrict origin access to specific proxy ranges.
Akamai configuration covers origin and performance settings.
Origin configuration ensures Akamai correctly forwards requests to WordPress VIP.
convenience-domain.go-vip.net).wpvip.com for this blog). Akamai handles this by passing the incoming host header value requested by the end-user.Configure Akamai’s performance settings to connect properly with WordPress VIP.
Accept header in the cache key for image responses.Akamai should cache aggressively while respecting WordPress VIP headers and logged-in user behavior, keeping dynamic content fresh and keeping private content secure.
Prevent private, user-specific dashboard pages from entering the shared edge cache.
/wp-admin/*, /wp-login.php, and /wp-cron.php.Serve unchanging asset files directly from the nearest edge server for faster load times.
/wp-content/* and /wp-includes/*jpg, jpeg, png, gif, svg, webp
Note: This list is a starting point. You can add more file extensions to this cache rule depending on your site’s needs.
Apply temporary caching to requests that don’t match the other rules. This improves performance for anonymous users, during sudden traffic spikes.
Logged-in users don’t need additional Akamai caching rules: WordPress VIP already sets Cache-Control headers to prevent caching of logged-in sessions.
Once you configure Akamai, move on to WordPress VIP platform configuration. This includes matching the site address in VIP to the site configured in Akamai, verifying requests between Akamai and WordPress VIP, and limiting origin access.
Match the site address between Akamai and WordPress VIP. Set the site address (URL) in your WordPress settings to the exact domain name and path Akamai forwards. For example, if Akamai caches traffic for example.com/blog, set the site address in WordPress VIP to example.com/blog too.
Matching these domains prevents rewrite errors and ensures a stable connection.
After you configure the site address, verify incoming Akamai requests. To log visitor activity accurately and protect the platform, Akamai must pass specific incoming headers to WordPress VIP on every origin request:
<secret><end-user IP>Without these headers, all log entries in VIP only show Akamai IP addresses instead of the actual origin. These headers also allow WordPress VIP DDoS protections to accurately deny unwanted requests.
Follow these steps to configure verification tokens:
X-VIP-Proxy-Verification to the secret keyvip-config/vip-config.php file to accept the headers and map user IP addresses correctly. It makes sure that $_SERVER['REMOTE_ADDR'] accurately reflects the real end-user instead of the Akamai proxy IP.<?php
// vip-config/vip-config.php
$proxy_lib = ABSPATH . '/wp-content/mu-plugins/lib/proxy/ip-forward.php';
if (
! empty( $_SERVER['HTTP_TRUE_CLIENT_IP'] )
&& ! empty( $_SERVER['HTTP_X_VIP_PROXY_VERIFICATION'] )
&& file_exists( $proxy_lib )
) {
require_once $proxy_lib;
// Validates the verification header and sets the client IP correctly.
Automattic\VIP\Proxy\fix_remote_address_with_verification_key(
$_SERVER['HTTP_TRUE_CLIENT_IP'],
$_SERVER['HTTP_X_VIP_PROXY_VERIFICATION']
);
}
Validation tip: Review your live HTTP request logs and inspect the http_x_vip_ip field to confirm that the platform maps the visitor IP address correctly.
WordPress VIP also supports an IP allow-list approach. Keep in mind that IP-based features may behave differently behind a proxy.
Restricting origin access blocks WordPress VIP from accepting requests that don’t come through your reverse proxy. This requires ongoing maintenance to keep IP address ranges current as Akamai’s network changes.
curl -I https://example.com/
# Expect 403 (or block) when hitting VIP directly from a non-allowed IP
# Expect 200 when the request is routed via the proxy
Keep the list updated anytime Akamai egress changes. If you enable mTLS in the next section, you can retain the allow list as defense-in-depth.
# Expect 403 when no client cert is presented to VIP
curl -I https://www.example.com/
# Expect 200 when the proxy (or your test client) presents a valid cert+key
curl -I --cert client.crt --key client.key https://www.example.com/
In this configuration, public visitors continue using standard TLS with Akamai. The mTLS is applied to connections between Akamai and WordPress VIP.
WordPress VIP automatically purges URLs when you publish or update content. If you need to purge manually, purge WordPress VIP before Akamai. This prevents scenarios where Akamai might re-fetch an outdated version from WordPress VIP.
If you use the wp-akamai WordPress plugin, the default behavior doesn’t respect this purge order. You’ll need to modify it to purge WordPress VIP first, following this pseudocode pattern:
on save_post: capture intended Akamai purge
on shutdown:10 (VIP): VIP purges edge
on shutdown:20: run captured Akamai purge
Deploy valid TLS certificates on both the public Akamai edge and the WordPress VIP origin for all mapped domains. WordPress VIP recommends using Let’s Encrypt certificates on the origin side.
To allow Let’s Encrypt automated ACME domain validation to succeed through your proxy, route the /.well-known/acme-challenge/* path directly to WordPress VIP over plain HTTP. Ensure Akamai passes this traffic without redirects or extra parameters so the origin can return a valid HTTP 200 response.
After completing the previous steps, you’re ready for DNS cutover: test first, then decide when to go live and update public DNS records.
Testing: Modify your local computer’s hosts file to map your production domain directly to the new Akamai CNAME. Browse the site locally to verify user logins, cookie handling, edge caching, and purge functionality before changing public records.
Go-Live: When you are ready to shift traffic publicly, follow this sequence:
site-name.edgekey.net).Placing Akamai in front of WordPress VIP creates a layered security model:
Confirm you’ve completed each of these before launch:
The WordPress VIP team will help verify traffic streams, confirm header validation, and join your launch call. Reach out to VIP Support when you’re ready to coordinate.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。