Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. ProxyPassMatch ^/(.*.php(/.*)?)$ fcgi://127.0.0.2:9126/<path>/$1
  2.  
  3. RewriteCond %{REQUEST_FILENAME} -f [OR]
  4. RewriteCond %{REQUEST_FILENAME} -d
  5. RewriteRule ^ - [L]
  6. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  7. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
  8. RewriteRule . index.php [L]
  9.  
  10. ProxyPassMatch ^/(.*.php(/.*)?)$ fcgi://127.0.0.2:9126/<path>/$1
  11.  
  12. <Directory /var/www/yoursiste.com>
  13. Options -Indexes +FollowSymLinks -ExecCGI +MultiViews
  14.  
  15. AllowOverride All
  16.  
  17. <IfModule mod_proxy_fcgi.c>
  18. RewriteEngine On
  19. RewriteBase /
  20. RewriteOptions InheritBefore
  21. RewriteCond %{REQUEST_FILENAME} -f
  22. RewriteRule ^([^.]+.php)$ fcgi://127.0.0.2:9126/var/www/yoursite.com/$1 [L,P]
  23. </IfModule>
  24.  
  25. Order allow,deny
  26. allow from all
  27.  
  28. <IfVersion >= 2.4>
  29. Require all granted
  30. </IfVersion>
  31. </Directory>
  32.  
  33. <IfModule mod_proxy_fcgi.c>
  34. <Proxy fcgi://127.0.0.2:9126>
  35. ProxySet timeout=1800 disablereuse=on
  36. </Proxy>
  37. </IfModule>
  38.  
  39. ProxyPassMatch ^/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes)/.*.php(/.*)?)$ fcgi://127.0.0.1:9000/<path>/$2
  40. ProxyPassMatch ^/([_0-9a-zA-Z-]+/)?(.*.php(/.*)?)$ fcgi://127.0.0.1:9000/<path>/$2
  41. ProxyPassMatch ^/(.*.php(/.*)?)$ fcgi://127.0.0.1:9000/<path>/$1
  42.  
  43. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  44. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement