Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !! this is my httpd.conf !!
- DocumentRoot "/var/www/python"
- <Directory "/var/www/python">
- Options Indexes FollowSymLinks
- <Files ~ "\.py$">
- Options Indexes ExecCGI
- AddHandler cgi-script .py
- </Files>
- AllowOverride None
- Require all granted
- </Directory>
- !!this is my .py file!!
- #!/usr/bin/ python
- import cgitb; cgitb.enable()
- print "Content-Type: text/html;charset=utf-8\n"
- print "Hello World!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement