zettelkasten/OneNoteExport/Schnelle_Notizen/Sammel_Infos/39_Sharepoint-Seite im Apache veröffentlicht .md
2023-08-17 19:32:37 +02:00

2.6 KiB

Sharepoint-Seite im Apache veröffentlicht

Donnerstag, 20. Juni 2019

11:06

 

Heute stand ich vor der Aufgabe, dass unsere interne Sharepoint-Seite im Apache veröffentlicht werden sollte. An sich hätte das kein Problem sein sollen -- war es im Endeffekt aber.

Bei uns schaut es schematisch so aus, dass der Apache alle Anfragen anhand des Domain-Namens auf die virtuellen Server weiterreicht bzw. als Proxy fungiert: Internet -> Apache / DMZ -> Virtueller Host / Backend Server.

Anhand des Blog-Eintrags von Todd Klint den Sharepoint-Service so eingerichtet, dass er auf die richtige URL lauscht. Die Konfigurationsdatei des virtuellen Hosts sah dann folgendermaßen aus:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

<VirtualHost *:443>

SSLEngine On

SSLProxyEngine On

SSLCertificateFile "$CERT_FILE"

SSLCertificateKeyFile "$CERT_KEY_FILE"

SSLProxyCACertificateFile "$CERT_CA_FILE"

ProxyRequests Off

ProxyVia On

 

ServerAdmin admin@sps.mydomain.com

DocumentRoot $VHOST_DIR/sps/web

ServerName sps.mydomain.com:443

ErrorLog "|rotatelogs.exe $VHOST_DIR/sps/logs/%Y%m%d_ssl_error.log 86400"

CustomLog "|rotatelogs.exe $VHOST_DIR/sps/logs/%Y%m%d_ssl_access.log 86400" common

 

# AddDefaultCharset ISO

LogLevel debug

ProxyPreserveHost Off

KeepAlive Off

 

ProxyPass /  http://backend-srv:8080/

ProxyPassReverse /  http://backend-srv:8080/

 

<Proxy *>

Order allow,deny

Allow from all

</Proxy>

 

<Directory "$VHOST_DIR/sps/">

Order allow,deny

Allow from all

</Directory>

</VirtualHost>

 

Aus <https://www.schakko.de/2009/10/05/sharepoint-mit-apache-als-reverse-proxy-veroffentlichen/>

 

 

Gute Anleitung :

 

https://thesharepointfarm.com/2014/06/sharepoint-apache-mod_proxy/

 

LetsEncrypt on Debian 9 and Apache

 

https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-debian-9