On 2024/09/10 23:38, Sandro Santilli wrote:
> I've tried setting trac.htdocs_location in trac.ini but I don't
> see it ever used, how could I possibly debug this issue ?
> 
> It's Trac-1.6 served by mod_python
> The env trac.ini also sets base_url if that's possibly related.
> 
> Please include my address whey replying as I'm not always reading the list.
> 
> --strk; 
> 
>   Libre GIS consultant/developer
>   https://strk.kbt.io/services.html
> 

Please explain "not used" and points which you've confirmed.

At least, it works on my test environment.

 1. Set the option in trac.ini:
    [trac]
    htdocs_location = //assets.example.org/htdocs/

 2. Send request to top page using "curl -s http://.../trac";
    The value "//assets.example.org/htdocs/" is used in rendered html like the 
following:

[[[
...
    <link rel="stylesheet"  href="//assets.example.org/htdocs/css/trac.css" 
type="text/css" />
    <link rel="stylesheet"  href="//assets.example.org/htdocs/css/wiki.css" 
type="text/css" />
...
    <script src="//assets.example.org/htdocs/js/jquery.js"></script>
    <script src="//assets.example.org/htdocs/js/babel.js"></script>
    <script src="//assets.example.org/htdocs/js/trac.js"></script>
    <script src="//assets.example.org/htdocs/js/search.js"></script>
    <script src="//assets.example.org/htdocs/js/folding.js"></script>
    <script src="//assets.example.org/htdocs/js/wiki.js"></script>
...
]]]

-- 
Jun Omae <[email protected]> (大前 潤)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/7e23848c-699d-4089-9353-9b6bda954a8a%40gmail.com.

Reply via email to