Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
WordPress and Reverse Proxy
How WordPress can integrate with...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
About Me
Solutions Engineer @ WP Engine
Front End Dev
Agenci...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
What is a Proxy
I make a request
proxy gets what I asked for
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Forward Proxy
client makes request to proxy
proxy gets reque...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Proxy
The cloud
FORWARD PROXY
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Reverse Proxy
client makes request
external proxy
returns ca...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Varnish
The cloud
CACHING DIAGRAMServer
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Why Reverse Proxy?
Not on the same network
custom applicatio...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Reverse Proxy and WordPress
WordPress to handle content
exte...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Enterprise WordPress
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Enterprise WordPress
What makes WordPress enterprise ready?
...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Enterprise WordPress
Who’s Using WordPress in enterprise?
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Enterprise WordPress
Large community
No license costs
Extens...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Enterprise WordPress
No support
Awareness in enterprise mark...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Solutions
Proxy pass from WordPress
Proxy pass from external...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Requirements
Proxy Pass to/from WordPress
Block requests fro...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Whitelist IP
Allow access from only a single IP
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
nginx
PROXY PASS
if URL matches:
fetch content from other se...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
wp-config
define('WP_HOME','http://site.com/subfolder/');
def...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
WordPress Reverse Proxy
The cloud
App 1
App 2site.com/blog
s...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
WordPress Load Balancer
The cloud
App 1
App 2site.com/blog
s...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Simpler Solutions
3rd party DNS level split
Requests will no...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Content Delivery Networks
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
WordPress Load Balancer
The cloud
App 1
App 2site.com/blog
s...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
Subdomains
Simple solution
Create subdomain with your domain...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
WordPress Load Balancer
The cloud
App 1
App 2blog.site.com
s...
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
The Future
Couldn’t we just use the REST API?
Edmund Turbin - Solutions Engineer
edmund.turbin@wpengine.com
@spicecadet
edmundturbin.com
edmund.turbin@wpengine.com
twit...
You’ve finished this document.
Download and read it offline.
Upcoming SlideShare
Working in Harmony: Manchester - Optimize development and content workflows
Next
Upcoming SlideShare
Working in Harmony: Manchester - Optimize development and content workflows
Next
Download to read offline and view in fullscreen.

Share

Reverse proxy and WordPress

Download to read offline

How WordPress can Integrate with Enterprise Websites

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • Be the first to like this

Reverse proxy and WordPress

  1. 1. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com WordPress and Reverse Proxy How WordPress can integrate with enterprise websites
  2. 2. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com About Me Solutions Engineer @ WP Engine Front End Dev Agencies, Publishing, Ad Tech Edmund Turbin
  3. 3. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com What is a Proxy I make a request proxy gets what I asked for
  4. 4. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Forward Proxy client makes request to proxy proxy gets request from server proxy returns request caches request Intermediary assocated with the client
  5. 5. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Proxy The cloud FORWARD PROXY
  6. 6. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Reverse Proxy client makes request external proxy returns cached request or, gets request from server Intermediary assocated with the server
  7. 7. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Varnish The cloud CACHING DIAGRAMServer
  8. 8. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Why Reverse Proxy? Not on the same network custom application Legacy system transition Users restricted to system by role Two systems on the same domain
  9. 9. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Reverse Proxy and WordPress WordPress to handle content external system to integrate seamlessly same domain users will not be able to tell they’re on two systems How does this apply to WordPress?
  10. 10. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Enterprise WordPress
  11. 11. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Enterprise WordPress What makes WordPress enterprise ready? Scalability Security Complex Integrations Multilingual Support SSO / Access Control
  12. 12. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Enterprise WordPress Who’s Using WordPress in enterprise?
  13. 13. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Enterprise WordPress Large community No license costs Extensible - Many integrations Stable, actively maintained, trusted Simple for users, content creators What are the benefits?
  14. 14. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Enterprise WordPress No support Awareness in enterprise market What are the challenges?
  15. 15. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Solutions Proxy pass from WordPress Proxy pass from external website CDN based solution Subdomains
  16. 16. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Requirements Proxy Pass to/from WordPress Block requests from other servers Update links to reflect site structure wp-config.php plugin
  17. 17. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Whitelist IP Allow access from only a single IP
  18. 18. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com nginx PROXY PASS if URL matches: fetch content from other server location /some/site { proxy_pass http://127.0.0.1; }
  19. 19. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com wp-config define('WP_HOME','http://site.com/subfolder/'); define('WP_SITEURL','http://site.com/subfolder/'); $_SERVER['REQUEST_URI'] = '/subfolder' . $_SERVER['REQUEST_URI']; $_SERVER['SCRIPT_NAME'] = '/subfolder' . $_SERVER['SCRIPT_NAME']; $_SERVER['PHP_SELF'] = '/subfolder' . $_SERVER['PHP_SELF'];
  20. 20. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com WordPress Reverse Proxy The cloud App 1 App 2site.com/blog site.com/app site.com REVERSE PROXY 1
  21. 21. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com WordPress Load Balancer The cloud App 1 App 2site.com/blog site.com/app site.com REVERSE PROXY 2
  22. 22. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Simpler Solutions 3rd party DNS level split Requests will not pass through additional infrastructure If issues arise, troubleshooting is narrowed down
  23. 23. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Content Delivery Networks
  24. 24. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com WordPress Load Balancer The cloud App 1 App 2site.com/blog site.com/app site.com REVERSE PROXY 3 CDN
  25. 25. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com Subdomains Simple solution Create subdomain with your domain registrar Forward the subdomain to new site Mask the domain so that the original URL displays
  26. 26. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com WordPress Load Balancer The cloud App 1 App 2blog.site.com site.com/app site.com REVERSE PROXY 4
  27. 27. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com The Future Couldn’t we just use the REST API?
  28. 28. Edmund Turbin - Solutions Engineer edmund.turbin@wpengine.com @spicecadet edmundturbin.com edmund.turbin@wpengine.com twitter: web: email:

How WordPress can Integrate with Enterprise Websites

Views

Total views

7,028

On Slideshare

0

From embeds

0

Number of embeds

1,193

Actions

Downloads

15

Shares

0

Comments

0

Likes

0

×