I simplify the setup, just Werkzeug and mod_proxy. I still get redirects...
here is my apache configuration:
<Location /tryton>
Options FollowSymLinks Indexes
SetHandler wsgi-handler
ProxyPass http://127.0.0.1:8000/
ProxyPassReverse http://127.0.0.1:8000/
</Location>
I tried it with and without the trailing slash after the port number, and got
the same redirect.
Running trytond with the --dev flag, here is the output to the command line as
it starts, and then redirects a request for mysite.com/tryton to mysite
.com/index.html:
Tryton) root@host [/opt/Tryton]# ./bin/trytond --logconf
/opt/Tryton/etc/logs.conf --dev -c /opt/Tryton/etc/trytond.conf
Thu Nov 02 20:41:06 2017] INFO:server:using /opt/Tryton/etc/logs.conf as
logging configuration file
Thu Nov 02 20:41:07 2017]
WARNING:py.warnings:/opt/Tryton/lib/python3.6/site-packages/trytond/modules/__init__.py:143:
DeprecationWarning: This method will be removed in future versions. Use
'parser.read_file()' instead.
module_config.readfp(fp)
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:ir:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:res:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:currency:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:country:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:tests:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:party:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:company:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:account:registering classes
Thu Nov 02 20:41:07 2017] INFO:werkzeug: * Running on http://localhost:8000/
(Press CTRL+C to quit)
Thu Nov 02 20:41:07 2017] INFO:werkzeug: * Restarting with stat
Thu Nov 02 20:41:07 2017] INFO:server:using /opt/Tryton/etc/logs.conf as
logging configuration file
Thu Nov 02 20:41:07 2017]
WARNING:py.warnings:/opt/Tryton/lib/python3.6/site-packages/trytond/modules/__init__.py:143:
DeprecationWarning: This method will be removed in future versions. Use
'parser.read_file()' instead.
module_config.readfp(fp)
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:ir:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:res:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:tests:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:country:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:currency:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:party:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:company:registering classes
Thu Nov 02 20:41:07 2017] INFO:trytond.modules:account:registering classes
Thu Nov 02 20:41:18 2017] INFO:werkzeug:127.0.0.1 - - [02/Nov/2017 20:41:18]
"GET / HTTP/1.1" 302 -
Regards,
Paul
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/0d9d966c-6382-4a94-befe-0fe829692c5a%40googlegroups.com.