Tools
Записки программиста, обо всем и ни о чем. Но, наверное, больше профессионального.
2014-03-31
Коклюш
Posted by
Valentin
at
12:30
2
comments
Labels: health
2014-03-28
IDS, IPS, firewall
Posted by
Valentin
at
12:30
0
comments
2014-03-27
Дизайн карты
Posted by
Valentin
at
12:30
0
comments
2014-03-26
День совы
Posted by
Valentin
at
12:30
0
comments
2014-03-25
АДС-М
Posted by
Valentin
at
12:30
0
comments
Labels: health
2014-03-24
Paycheck
Posted by
Valentin
at
12:30
0
comments
2014-03-21
АДС-М
Posted by
Valentin
at
12:30
0
comments
Labels: health
2014-03-20
Milano calibro 9
Posted by
Valentin
at
12:30
0
comments
2014-03-19
Прививки
Posted by
Valentin
at
12:30
0
comments
Labels: health
2014-03-18
Служба переводов
Posted by
Valentin
at
12:30
0
comments
2014-03-17
Chrome + login keyring
Posted by
Valentin
at
12:30
0
comments
2014-03-14
Прививки
Posted by
Valentin
at
12:30
0
comments
Labels: health
2014-03-13
два мешка брюквы
Posted by
Valentin
at
12:30
0
comments
2014-03-12
свой индекс
Posted by
Valentin
at
12:30
0
comments
Labels: Google
2014-03-11
визги
<?php echo 'Привет, мир!'; ?>
<VirtualHost *:80>
ServerName www.allgis.org
ServerAlias www.allgis.org
WSGIScriptAlias "/pages" "/path/to/site/pages/asp.wsgi"
<Directory "/path/to/site/pages">
DirectoryIndex index.html default.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
|
aptitude install libapache2-mod-wsgi a2enmod wsgi
service apache2 restart
nano /path/to/site/pages/asp.wsgi
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
import os, sys
def application(environ, start_response):
""" A very simple WSGI application for tests
http://code.google.com/p/modwsgi/wiki/QuickConfigurationGuide
"""
status = '200 OK'
output = u'Привет Мир! \n environ: \n'.encode('utf-8')
for x in sorted(environ.keys()):
output += "'%s' : '%s' \n" % (x, environ[x])
response_headers = [('Content-type', 'text/plain; charset=utf-8'), ('Content-Length', str(len(output)))]
start_response(status, response_headers)
return [output]
|
nano /path/to/site/pages/asp.wsgi
#!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
import os, sys
def application(environ, start_response):
if sys.modules.get('mywebapppackage', '') == '':
activate_this = environ.get('VIRTENV_ACTIVATE_SCRIPT', "/default/path/to/site/virtualenv/dir/env/bin/activate_this.py")
execfile(activate_this, dict(__file__=activate_this))
from mywebapppackage.flaskappmodule import APP
return APP(environ, start_response)
|
<VirtualHost *:80>
ServerName www.allgis.org
ServerAlias www.allgis.org
WSGIScriptAlias "/pages" "/path/to/site/pages/asp.wsgi"
SetEnv VIRTENV_ACTIVATE_SCRIPT "/path/to/site/pages/venv/bin/activate_this.py"
<Directory "/path/to/site/pages">
DirectoryIndex index.html default.html
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
|
Posted by
Valentin
at
12:30
0
comments
Labels: Apache, HTTP. Apache, python, web-develop
2014-03-10
Обратно UI
Posted by
Valentin
at
12:30
0
comments
Labels: JS, tests, web-browser, web-develop
2014-03-07
UI
Posted by
Valentin
at
12:30
0
comments
Labels: CSS, video, web-develop
2014-03-06
Виртуальная нода
Posted by
Valentin
at
12:30
0
comments
Labels: hiload, virtbox, web-develop
2014-03-05
Yate
Posted by
Valentin
at
12:30
6
comments
Labels: frameworks, JS
2014-03-04
Type hinting with docstrings/comments
Posted by
Valentin
at
12:30
0
comments
2014-03-03
IDS
sk@server1:~$ sudo apt-get update sk@server1:~$ sudo apt-get install psad
Posted by
Valentin
at
12:30
0
comments















