Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. <VirtualHost my.server_ip.address:9999>
  2. ServerName _wildcard_.domain.tld
  3. ServerAlias *.domain.tld
  4. # DocumentRoot /home/my_acct/public_html
  5. ServerAdmin webmaster@domain.tld
  6. UseCanonicalName Off
  7. CustomLog /usr/local/apache/domlogs/_wildcard_.domain.tld combined
  8. CustomLog /usr/local/apache/domlogs/_wildcard_.domain.tld-bytes_log "%{%s}t %I .n%{%s}t %O ."
  9.  
  10. ## User my_acct # Needed for Cpanel::ApacheConf
  11. UserDir enabled my_acct
  12. <IfModule mod_suphp.c>
  13. suPHP_UserGroup my_acct my_acct
  14. </IfModule>
  15. <IfModule !mod_disable_suexec.c>
  16. <IfModule !mod_ruid2.c>
  17. SuexecUserGroup my_acct my_acct
  18. </IfModule>
  19. </IfModule>
  20. <IfModule mod_ruid2.c>
  21. RMode config
  22. RUidGid my_acct my_acct
  23. </IfModule>
  24. <IfModule itk.c>
  25. # For more information on MPM ITK, please read:
  26. # http://mpm-itk.sesse.net/
  27. AssignUserID my_acct my_acct
  28. </IfModule>
  29. ScriptAlias /cgi-bin/ /home/my_acct/public_html/cgi-bin/
  30. # To customize this VirtualHost use an include file at the following location
  31. Include "/usr/local/apache/conf/userdata/std/2_2/my_acct/wildcard_safe.domain.tld/*.conf"
  32.  
  33. </VirtualHost>
  34.  
  35. SetEnvIf Host "^(w+).domain.tld" subdomain=$1
  36.  
  37. WSGIApplicationGroup %{GLOBAL}
  38. WSGIPassAuthorization On
  39. WSGIDaemonProcess pyramid_subdomain user=my_acct group=my_acct threads=4
  40. python-path=/home/my_acct/modwsgi/env/lib/python2.6/site-packages
  41.  
  42. WSGIScriptAlias / /home/my_acct/modwsgi/env/pyramidsub_%{ENV:subdomain}.wsgi
  43. WSGIScriptAlias /admin /home/my_acct/modwsgi/env/pyramidsub_%{ENV:subdomain}.wsgi
  44.  
  45. <Directory /home/my_acct/modwsgi/env>
  46. WSGIProcessGroup pyramid_subdomain
  47. Order allow,deny
  48. Allow from all
  49. </Directory>
  50.  
  51. from pyramid.paster import get_app, setup_logging
  52. ini_path = '/home/my_acct/modwsgi/env/MyFirstApp/production_subtest.ini'
  53. setup_logging(ini_path)
  54. application = get_app(ini_path, 'main')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement