OPML behind OS X Server 5 (Yosemite/El Capitan) w/o SSL

15 views
Skip to first unread message

h4ns...@gmail.com

unread,
Apr 4, 2016, 7:42:56 AM4/4/16
to frontier-user
Hi all,

I finally made OPML to run behind OS X Server 5.

It is a bit different to Dave's solution from back then http://scripting.com/stories/2008/11/19/checklistForReverseProxies.html

Install OPML and OS X Server 5.
Set up your website - just like to two default entries for ports 80 and 443 (SSL), choose your servers IP address (e.g. 1.2.3.4).

Then add the following

    ProxyPass / http://127.0.0.1:5337/
    ProxyPassReverse / http://127.0.0.1:5337/

 to

  /Library/Server/Web/Config/apache2/sites/0000_1.2.3.4._34580_www.example.com.conf
  /Library/Server/Web/Config/apache2/sites/0000_1.2.3.4._34543_www.example.com.conf

and delete the entries

    DocumentRoot "/Library/Server/Web/Data/Sites/www.example.com"
    DirectoryIndex index.html index.php default.html

I tried other ways, but only this worked. In Server 5 everything runs behind a proxy and the config files are located /Library/Server/Web/... So don't bother with the files in /private/etc/apache2/ or the httpd-vhosts.conf in the /extra, because the do not affect the Server.app Apache instance. /Library/Server/Web/Config/apache2/ReadMe.txt has a few infos on the why.

There is another way to integrate applications, but that looked way to complicated for me.

Hans
Reply all
Reply to author
Forward
0 new messages