Django, Apache2, Sublime Text 3 build system and developing process.

At first be sure that you are using this path to run pure apache: http://trianglesis.org.ua/django-python-3-4-wamp-apache-2-4-23-pycharm This topic for those who wants to develop ON THE FLY with python and django and do not want to manually restart dev server each time when code changes AND you don’t like built in python web-server and want to run your dev site as itShort Read more —>

Django + Python 3.4 + WAMP Apache 2.4.23 + Pycharm

Finally worked instance for hosting DEV site code on python and ability to resolve is as «on live» web server just on my laptop. A lot of different configurations changed but this is one working for me, and maybe can help you also. Better use EVERYTHING 32 bit for Window, you will suffer if you try to find some neededShort Read more —>

Django static files

How to find where def. static stores? [root@test smm_py]# python3 manage.py findstatic css/base.css admin/js/core.js No matching file found for ‘css/base.css’. Found ‘admin/js/core.js’ here: /usr/local/lib/python3.4/site-packages/django/contrib/admin/static/admin/js/core.js Then move it into the folder you need. Then update django’s.conf file: Alias /static/ «/var/www/smm_tools/site/» And check the settings.py: 103 # Static files (CSS, JavaScript, Images) 104 # https://docs.djangoproject.com/en/1.8/howto/static-files/ 105 106 STATIC_URL = ‘/static/’ https://docs.djangoproject.com/en/1.8/howto/static-files/  

Django + apache2 + mod_wsgi

This is conf file to allow apache run Django applications. # Web site at /var/www/smm_tools # Python scripts at /var/www/smm_tools/smm_py #LoadModule wsgi_module /usr/lib64/httpd/modules/mod_wsgi.so <VirtualHost *:80> ServerName smm.trianglesis.org.ua ServerAlias www.smm.trianglesis.org.ua ServerAdmin it@trianglesis.org.ua DocumentRoot /var/www/smm_tools/ ErrorLog «|/usr/sbin/rotatelogs /var/log/smm_tools/cargo.error.%Y-%m-%d.log 86400» CustomLog «|/usr/sbin/rotatelogs /var/log/smm_tools/cargo.access.%Y-%m-%d.log 86400» combined ServerSignature On Alias /css/ «/var/www/smm_tools/site/css» Alias /js/ «/var/www/smm_tools/site/js/» Alias /templates/ «var/www/smm_tools/site/templates/» Alias /fonts/ «/var/www/smm_tools/fonts/» #WSGIScriptAlias / /var/www/smm_tools/smm_tools.wsgi #WSGIPythonPathShort Read more —>

Allow Apache run python scripts

This is a simple ex. to allow apache run .py # Python site at /var/www/py_site LoadModule wsgi_module /usr/lib64/httpd/modules/mod_wsgi.so <VirtualHost *:80> ServerName test.trianglesis.org.ua ServerAlias www.trianglesis.org.ua ServerAdmin test@test.com DocumentRoot /var/www/py_site/ <Directory /var/www/py_site> Order allow,deny Require all granted Allow from all </Directory> <Directory /var/www/py_site/cgi-bin> Options +ExecCGI Require all granted Allow from all Options +ExecCGI AddHandler cgi-script .cgi .pl .py AddHandler cgi-script .py </Directory>Short Read more —>

addm 10 apache

Решил поставить себе триалку ADDM по работе, как водится прокинул проксю через вебсервер: И на тебе, половина линков дает ошибку 400: Bad Post Request 140512108713728 2015-01-20 10:22:18,684 ui.web.portal.SecurePage.AjaxKnowledgeManagementRequests WARNING Bad POST request to http://192.168.1.30/ui/AjaxKnowledgeManagementRequests from http://addm.trianglesis.org.ua/ui/DiscoveryKnowledgeManagement 140512203122432 2015-01-20 10:22:21,273 ui.web.portal.SecurePage.AjaxKnowledgeManagementRequests WARNING Bad POST request to http://192.168.1.30/ui/AjaxKnowledgeManagementRequests from http://addm.trianglesis.org.ua/ui/DiscoveryKnowledgeManagement 140512161163008 2015-01-20 10:22:27,441 ui.web.portal.SecurePage.DiscoveryKnowledgeManagement WARNING Bad POST request to http://192.168.1.30/ui/DiscoveryKnowledgeManagement from http://addm.trianglesis.org.ua/ui/DiscoveryKnowledgeManagementShort Read more —>

Как заставить Apache ранить Redmine

HowTo configure Apache to run Redmine Читаем официальный гайд, и далее я буду его разжовывать. 09/03/2014 В общем, бред это оказался, бред сумасшедшего. В итоге я просто скачал turnkey и все равно протрахался с ним двое суток, обновляя редмайн до последней версии. Всяко лучше, чем пилить этот проклятый апач — поверьте!

How to Serve Multiple Domains Using Virtual Hosts

Снова себе напоминалка себе, забыл про вирт. хосты. На мульти доменном сервере всегда нужно делать разводку по именам виртуальных хостов, вот код, чтобы не забыть: NameVirtualHost *:80 VirtualHost *:80 ServerName vh1.example.com DocumentRoot /var/www/vhosts/vh1 /VirtualHost VirtualHost *:80 ServerName vh2.example.com DocumentRoot /var/www/vhosts/vh2 /VirtualHost Источник: How to Serve Multiple Domains Using Virtual Hosts | Knowledge Center | Rackspace Hosting.