On Wednesday, August 7, 2019 at 9:22:16 AM UTC-7, Klaus Thorn wrote:
>
>
>
> On Wednesday, August 7, 2019 at 5:44:29 PM UTC+2, Klaus Thorn wrote:
>>
>> I suspect trac to add the full DocumentRoot of Apache2.4 into the URL. 
>>
>
> Here the apache config:
>
> <VirtualHost *:443>
>     ServerName trac.example.com
>
>     CustomLog /var/log/apache2/trac.access.log timing
>     ErrorLog /var/log/apache2/trac.error.log
>
>     SSLEngine ...
>     <Location "/">
>         AuthName "Trac"
>         AuthLDAPURL  "ldap:..."
>         AuthType basic
>         AuthBasicProvider ldap
>         AuthLDAPGroupAttributeIsDN off
>         AuthLDAPGroupAttribute memberUid
>         Require ldap-group cn=...
>     </Location>
>
>     Alias /trac_static /srv/www/trac/pub/kunden-trac/htdocs/common
>     ScriptAlias / /srv/www/trac/pub/kunden-trac/cgi-bin/trac.fcgi/
>
>     <Directory /srv/www/trac/pub/kunden-trac/cgi-bin/>
>         SetHandler fcgid-script
>         Options ExecCGI
>     </Directory>
> </VirtualHost>
>
>
>  I also added the trac.ini as an attachemnt (because it is long).
>

I'm not sure what the problem is, but the issue is certainly in the Apache 
configuration.

The Alias directive needs to be:
Alias /chrome  /srv/www/trac/pub/kunden-trac/htdocs

See: https://trac.edgewall.org/wiki/TracInstall#MappingStaticResources

Have you tried setting DocumentRoot to /srv/www/trac/pub/kunden-trac?

It seems like trac.base_url isn't being set:
https://trac.edgewall.org/browser/tags/trac-1.2.3/trac/web/main.py?marks=526#L502

You could try something like:
SetEnv trac.base_url https://trac.example.com/

But that would seems to be at best a workaround that is masking a different 
configuration problem.

- Ryan

-- 
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 trac-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/trac-users/804186d9-f273-438d-93e2-b33539e1f88e%40googlegroups.com.

Reply via email to