Advertisement
Guest User

httpd.conf / test.py

a guest
Apr 28th, 2015
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. !! this is my httpd.conf !!
  2. DocumentRoot "/var/www/python"
  3. <Directory "/var/www/python">
  4. Options Indexes FollowSymLinks
  5. <Files ~ "\.py$">
  6. Options Indexes ExecCGI
  7. AddHandler cgi-script .py
  8. </Files>
  9. AllowOverride None
  10. Require all granted
  11. </Directory>
  12.  
  13. !!this is my .py file!!
  14. #!/usr/bin/ python
  15. import cgitb; cgitb.enable()
  16.  
  17. print "Content-Type: text/html;charset=utf-8\n"
  18. print "Hello World!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement