Guest User

Untitled

a guest
Nov 17th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. <VirtualHost 97.107.137.168:80>
  2. SuexecUserGroup "#1001" "#1000"
  3. ServerName wp.nycweb.io
  4. ServerAlias www.wp.nycweb.io
  5. ServerAlias webmail.wp.nycweb.io
  6. ServerAlias admin.wp.nycweb.io
  7. DocumentRoot /home/wp/public_html
  8. ErrorLog /var/log/virtualmin/wp.nycweb.io_error_log
  9. CustomLog /var/log/virtualmin/wp.nycweb.io_access_log combined
  10. ScriptAlias /cgi-bin/ /home/wp/cgi-bin/
  11. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  12. <Directory /home/wp/public_html>
  13. Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
  14. allow from all
  15. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
  16. Require all granted
  17. AddType application/x-httpd-php .php
  18. AddHandler fcgid-script .php
  19. AddHandler fcgid-script .php7.0
  20. AddHandler fcgid-script .php7.1
  21. FCGIWrapper /home/wp/fcgi-bin/php7.1.fcgi .php
  22. FCGIWrapper /home/wp/fcgi-bin/php7.0.fcgi .php7.0
  23. FCGIWrapper /home/wp/fcgi-bin/php7.1.fcgi .php7.1
  24. </Directory>
  25. <Directory /home/wp/cgi-bin>
  26. allow from all
  27. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
  28. Require all granted
  29. </Directory>
  30. RewriteEngine on
  31. RewriteCond %{HTTP_HOST} =webmail.wp.nycweb.io
  32. RewriteRule ^(.*) https://wp.nycweb.io:20000/ [R]
  33. RewriteCond %{HTTP_HOST} =admin.wp.nycweb.io
  34. RewriteRule ^(.*) https://wp.nycweb.io:10000/ [R]
  35. RemoveHandler .php
  36. RemoveHandler .php7.0
  37. RemoveHandler .php7.1
  38. php_admin_value engine Off
  39. FcgidMaxRequestLen 1073741824
  40. </VirtualHost>
Add Comment
Please, Sign In to add comment