Apache2 configuration api access not working

Hi, due to my first post is blocked somehow. I try it again.
I run graylog with docker-compose and can access to graylog over dynamic ip in the web. But I’m struggeling to send log files via REST API.

here are my configs:
docker-compose.yml:

version: '3'
services:
  # MongoDB
  mongo:
    image: mongo:4
    volumes:
      - mongo_data:/data/db
    networks:
      - graylog-net

  # Elasticsearch
  elasticsearch:
    image: docker.elastic.co/elasticsearch/elasticsearch:7.10.0
    environment:
      - "discovery.type=single-node"
    volumes:
      - elasticsearch_data:/usr/share/elasticsearch/data
    networks:
      - graylog-net

  # Graylog
  graylog:
    image: graylog/graylog:4.1
    environment:
      - GRAYLOG_PASSWORD_SECRET=somepasswordpepper
      - GRAYLOG_ROOT_PASSWORD_SHA2=c0938bdb75472a87d7a9b2651badc86ceaa05541e004beee7400c892057>
      - GRAYLOG_HTTP_EXTERNAL_URI=http://10.0.1.10:9000/
      - GRAYLOG_WEB_ENDPOINT_URI=https://logs.zuselli-server.ddns.net:9000/api
      - GRAYLOG_HTTP_PUBLISH_URI=https://logs.zuselli-server.ddns.net:9000/
      - GRAYLOG_TRUSTED_PROXIES=10.0.1.4/32
      - GRAYLOG_HTTP_ENABLE=true
    depends_on:
      - mongo
      - elasticsearch
    ports:
      - "9000:9000"
      - "5140:5140"
      - "5140:5140/udp"     
      - "12201:12201"
      - "12201:12201/udp"
    networks:
      - graylog-net

networks:
  graylog-net:
    driver: bridge

volumes:
  mongo_data:
  elasticsearch_data:

and my apache2 config:

<IfModule mod_ssl.c>
 <VirtualHost *:443>
        ServerAdmin admin@example.com
        ServerName logs.zuselli-server.ddns.net
        ServerAlias logs.zuselli-server.ddns.net

        # Module laden (falls nciht schon woanders geschehen)
        LoadModule proxy_module modules/mod_proxy.so
        LoadModule proxy_http_module modules/mod_proxy_http.so

        ProxyRequests Off

         # keine Spezialitäten, balancer, etc.: Stupides *
        <Proxy *>
                Require all granted
        </Proxy>

        #ProxyPass / http://localhost:8080/
        <Location />
 #               ProxyPreserveHost On
#               RequestHeader set X-Graylog-Server-URL "https://logs.zuselli-server.ddns.net/"
                ProxyPass http://10.0.1.10:9000/
#               ProxyPass https://logs.zuselli-server.ddns.net:9000/
                ProxyPassReverse http://10.0.1.10:9000/
        </Location>
     # Uncomment the line below if your site uses SSL.
     SSLProxyEngine On

        RewriteEngine on

# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

   RewriteCond %{HTTPS} !=on
   RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R=301,L]
   


SSLCertificateFile /etc/letsencrypt/live/cloud.zuselli-server.ddns.net/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/cloud.zuselli-server.ddns.net/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

why I cant access REST API?
Thanks for helping me

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.