ok. if i run tracd -r --port 8000 /var/www/trac and open
http://example.com:8000/trac/ all links like
http://example.com:8000/trac/timeline work fine, but when i use uwsgi on
9090 http://example.com:9090/trac/timeline "No handler matched request to
/trac/timeline". wsgi file generate with trac-admin deploy.
#!/home/trac/.virtualenvs/envtrac/bin/python
# -*- coding: utf-8 -*-
import os
def application(environ, start_request):
if not 'trac.env_parent_dir' in environ:
environ.setdefault('trac.env_path', '/var/www/trac')
if 'PYTHON_EGG_CACHE' in environ:
os.environ['PYTHON_EGG_CACHE'] = environ['PYTHON_EGG_CACHE']
elif 'trac.env_path' in environ:
os.environ['PYTHON_EGG_CACHE'] = \
os.path.join(environ['trac.env_path'], '.egg-cache')
elif 'trac.env_parent_dir' in environ:
os.environ['PYTHON_EGG_CACHE'] = \
os.path.join(environ['trac.env_parent_dir'], '.egg-cache')
from trac.web.main import dispatch_request
return dispatch_request(environ, start_request)
i think i need receive some parameter over environ, but what it i don't
know.
my uwsgi config
http = :9090
plugins = python
uid = trac
chmod-socket = 770
chown-socket = trac:www-data
virtualenv = /home/trac/.virtualenvs/envtrac
chdir = /var/www/trac/static/cgi-bin
socket = /run/%n.sock
module = trac_wsgi:application
processes = 2
master = 1
пятница, 18 марта 2016 г., 12:48:10 UTC+2 пользователь RjOllos написал:
>
>
>
>
> From: Рома Слєпчик
> Sent: Friday, March 18, 3:42 AM
> Subject: [Trac] Re: move trac from root / to custom location
> To: Trac Users
>
> trac run on https//example.com and it work fine. I want move all trac
> links to https//example.com/trac/, becose on https//example.com i have
> zabbix and otrs. I don't want use new subdomain for trac.
> for example
> https//example.com/roadmap i want https//example.com/trac/roadmap
> https//example.com/timeline i want https//example.com/trac/timeline
> https//example.com/browser i want https//example.com/trac/browser
> and etc.
>
> You haven't answered the question I posed I last message, so I can't help
> you.
>
>
--
You received this message because you are subscribed to the Google Groups "Trac
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.