Hello,
And thank you for your reply

I followed your instructions and moved the file
/etc/apache2/conf.d/SOGo.conf to /etc/apache2/conf-available/SOGo.conf

root@webmail: mv /etc/apache2/conf.d/SOGo.conf 
/etc/apache2/conf-available/SOGo.conf

Then I did the following command:
root@webmail:/etc/apache2/conf-available# a2enconf SOGo.conf
I checked that the synbolic link was made in :

/etc/apache2/conf-enable/
lrwxrwxrwx 1 root root root 27 oct. 30 12:02 SOGo.conf -> 
../conf-available/SOGo.conf

I restarted Apache2
root@webmail:/etc/apache2/conf-enabled# systemctl restart apache2

Then I went to the ip address 192.168.1.10/SOGO

But then I get a black screen with a 501 error.

I give you the configuration of ../conf-available/SOGo.conf
 Alias /SOGo.woa/WebServerResources/ \
      /usr/lib/GNUstep/SOGo/WebServerResources/
Alias /SOGo/WebServerResources/ \
      /usr/lib/GNUstep/SOGo/WebServerResources/

<Directory /usr/lib/GNUstep/SOGo/>
    AllowOverride None

    <IfVersion < 2.4>
        Order deny,allow
        Allow from all
    </IfVersion>
    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>

    # Explicitly allow caching of static content to avoid browser specific 
behavior.
    # A resource's URL MUST change in order to have the client load the new 
version.
    <IfModule expires_module>
      ExpiresActive On
      ExpiresDefault "access plus 1 year"
    </IfModule>
</Directory>

# Don't send the Referer header for cross-origin requests
Header always set Referrer-Policy "same-origin"

<Location /SOGo>
  # Don't cache dynamic content
  Header set Cache-Control "max-age=0, no-cache, no-store"
</Location>

## Uncomment the following to enable proxy-side authentication, you will then
## need to set the "SOGoTrustProxyAuthentication" SOGo user default to YES and
## adjust the "x-webobjects-remote-user" proxy header in the "Proxy" section
## below.
#
## For full proxy-side authentication:
#<Location /SOGo>
#  AuthType XXX
#  Require valid-user
#  SetEnv proxy-nokeepalive 1
#  Allow from all
#</Location>
#
## For proxy-side authentication only for CardDAV and GroupDAV from external
## clients:
#<Location /SOGo/dav>
#  AuthType XXX
#  Require valid-user
#  SetEnv proxy-nokeepalive 1
#  Allow from all
#</Location>
And in the file /etc/sogo/sogo.conf



<VirtualHost *:80>
   Servername localhost
   #DocumentRoot /usr/lib/GNUstep/SOGo/WebServerResources/
   ErrorLog /var/log/apache2/sogo_error.log
   Customlog /var/log/apache2/sogo_access.log combined
   ServerSignature Off

   Alias /SOGo.woa/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/
   Alias /SOGo/WebServerResources/ /usr/lib/GNUstep/SOGo/WebServerResources/
   AliasMatch /SOGo/so/ControlPanel/Products/(.*)/Resources/(.*) 
/usr/lib/GNUstep/SOGo/$1.SOGo/Resources/$2

   <Directory /usr/lib/GNUstep/SOGo/>
        AllowOverride None
#       Order deny,allow
#       Allow from all
        Require all granted
   </Directory>

   <LocationMatch 
"^/SOGo/so/ControlPanel/Products/.*UI/Resources/.*\.(jpg|png|gif|css|js)">
     SetHandler default-handler
   </LocationMatch>

   ProxyRequests Off
   SetEnv proxy-nokeepalive 1
   ProxyPreserveHost On
   ProxyPass /SOGo http://127.0.0.1:20000/SOGo retry=0
   <Proxy http://127.0.0.1:20000/SOGo>
     RequestHeader set "x-webobjects-server-port" "80"
     RequestHeader set "x-webobjects-server-name" "localhost"
     RequestHeader set "x-webobjects-server-url" "http://localhost";
     RequestHeader set "x-webobjects-server-protocol" "HTTP/1.0"
     RequestHeader set "x-webobjects-remote-host" %{REMOTE_HOST}e 
env=REMOTE_HOST
     AddDefaultCharset UTF-8
     Order allow,deny
     Allow from all
   </Proxy>
   ## We use mod_rewrite to pass remote address to the SOGo proxy.
   # The remote address will appear in SOGo's log files and in the X-Forward
   # header of emails.
   RewriteEngine On
   RewriteRule ^/SOGo/(.*)$ /SOGo/$1 [env=REMOTE_HOST:%{REMOTE_ADDR},PT]
   Redirect permanent /index.html http://webmail.davenet.fr/SOGo
</virtualhost>

Any ideas?

Thanks and best regards

Alain25


Le Dimanche, Octobre 29, 2023 11:13 CET, "Markus Winkler" (m...@irmawi.de) 
<users@sogo.nu> a écrit:
 Please see above. ;-) You try to enable a config file that (following your
description) is currently not existing within /etc/apache2/conf-available.

So, summarized I would suggest:

- mv /etc/apache2/conf-enabled/SOGo.conf /etc/apache2/conf-available

- check if /etc/apache2/conf-available/SOGo.conf has the correct content

- sudo a2enconf SOGo.conf

- just to be sure: check if there's now a symlink
/etc/apache2/conf-enabled/SOGo.conf which points to
/etc/apache2/conf-available/SOGo.conf

- sudo systemctl restart apache2

> Then I try to go to WebUI of Sogo via firefox 192.168.1.10/SOGO

If this isn't only a typo ...

> But I get a 404 error.

... the correct URL is http(s)://192.168.1.10/SOGo
-------------------------------------------------^

But even if you only use http(s)://192.168.1.10/ Apache should redirect to
the correct URL shown above.

HTH and regards,
Markus

 

Reply via email to