Advertisement
Guest User

Untitled

a guest
Apr 8th, 2015
275
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. <VirtualHost 128.199.71.60:80>
  2. SuexecUserGroup "#1002" "#1002"
  3. ServerName ahsanshahzad.com
  4. ServerAlias www.ahsanshahzad.com
  5. ServerAlias webmail.ahsanshahzad.com
  6. ServerAlias admin.ahsanshahzad.com
  7. DocumentRoot /home/ahsanshahzad/public_html
  8. ErrorLog /var/log/virtualmin/ahsanshahzad.com_error_log
  9. CustomLog /var/log/virtualmin/ahsanshahzad.com_access_log combined
  10. ScriptAlias /cgi-bin/ /home/ahsanshahzad/cgi-bin/
  11. DirectoryIndex index.html index.htm index.php index.php4 index.php5
  12. <Directory /home/ahsanshahzad/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 .php5
  20. FCGIWrapper /home/ahsanshahzad/fcgi-bin/php5.fcgi .php
  21. FCGIWrapper /home/ahsanshahzad/fcgi-bin/php5.fcgi .php5
  22. </Directory>
  23. <Directory /home/ahsanshahzad/cgi-bin>
  24. allow from all
  25. AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
  26. Require all granted
  27. </Directory>
  28. RewriteEngine on
  29. RewriteCond %{HTTP_HOST} =webmail.ahsanshahzad.com
  30. RewriteRule ^(.*) https://ahsanshahzad.com:20000/ [R]
  31. RewriteCond %{HTTP_HOST} =admin.ahsanshahzad.com
  32. RewriteRule ^(.*) https://ahsanshahzad.com:10000/ [R]
  33. RemoveHandler .php
  34. RemoveHandler .php5
  35. php_admin_value engine Off
  36. IPCCommTimeout 31
  37. FcgidMaxRequestLen 1073741824
  38. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement