6 Replies Latest reply on Mar 18, 2015 12:09 PM by lavendt

    ** NEW ** - Updated Virtual Host for FMS13 guide and tool

    lavendt

      We have released version 2 of our Virtual Host Guide and tool, which supports FileMaker Server 13.0v5 and Yosemite, as well as the Mavericks and Mountain Lion, which is the supported versions by FMI.

       

      News in this version:

      The new guide will work with FileMaker Server 13.0v5 and Yosemite, as well as other supported versions. There are several new tips and tricks included in the “goodies” section.

      The new tool is now completely unlocked and does not use plugin anymore.

      Also new in this version is support for SSL.

       

      You can read more and download from here:

      http://www.datamanix.com/news/files/FMS-virtualhost-guide-tool-v2.html

       

      Feedback is very appreciated.

        • 1. Re: ** NEW ** - Updated Virtual Host for FMS13 guide and tool
          HOnza

          Very helpful! Thanks!


          Major issue:

          The exported file has Mac (CR) line breaks, so the whole document is understood as a single comment line and ignored.

           

          Solution:

          sudo rm /Library/FileMaker\ Server/HTTPServer/conf/extra/httpd-vhosts.conf

          sudo tr '\r' '\n' < ~/Desktop/httpd-vhosts.conf > /Library/FileMaker\ Server/HTTPServer/conf/extra/httpd-vhosts.conf

          sudo chown fmserver /Library/FileMaker\ Server/HTTPServer/conf/extra/httpd-vhosts.conf

          sudo /Library/Filemaker\ Server/HTTPServer/bin/httpdctl graceful


          Minor issue:

          Objects on the layout are misaligned.

          • 2. Re: ** NEW ** - Updated Virtual Host for FMS13 guide and tool
            lavendt

            Hi Honza

             

            Glad you found it helpful.

            V1 was using a plugin to write the file, but this version is native FileMaker and therefore also completely unlocked.

            However, I was totally sure that the output was could be used "as-is" on the server....

            Would you mind sending me your httpd.conf file, so I could look at it ?

             

            Thanks for including Terminal commands to do the fix. If I can't find a way to output correctly from FileMaker, I would like to include these in the guide...

            • 3. Re: ** NEW ** - Updated Virtual Host for FMS13 guide and tool
              HOnza

              It may have something to do with FMS, FMPA, or Apache version.

              Using FileMaker Pro Advanced 13v5 I exported the config file and it created file with CRs used as linebreaks.

              Apache did not recognize them as line breaks, so I had to replace them with LFs.

               

              I found another issue caused by Apache 2.4 described here: AH01630: client denied by server configuration

               

              I had to add the "Require all granted" to the virtual host's directory options to make it work.

               

              I hope this helps.

              • 4. Re: ** NEW ** - Updated Virtual Host for FMS13 guide and tool
                HOnza

                And yet one more issue (and solution): Apache: SSLEngine not allowed here

                 

                I also noticed that when I change the port from 443 to 80 then the SSL config is not removed but the popover button disappears, so I cannot remove it. It might be a good idea to have a script trigger on port number to handle this. ;-)

                • 5. Re: ** NEW ** - Updated Virtual Host for FMS13 guide and tool
                  HOnza

                  In my copy I have added a button named Apply saved Virtual hosts config that performs this AppleScript:

                   

                  do shell script "sed -i `date '+.%Y%m%d%H%M%S'` 's:#Include conf/extra/httpd-vhosts.conf:Include conf/extra/httpd-vhosts.conf:' '/Library/FileMaker Server/HTTPServer/conf/httpd.conf'; rm /Library/FileMaker\\ Server/HTTPServer/conf/extra/httpd-vhosts.conf; tr '\\r' '\\n' < ~/Desktop/httpd-vhosts.conf > /Library/FileMaker\\ Server/HTTPServer/conf/extra/httpd-vhosts.conf; chown fmserver /Library/FileMaker\\ Server/HTTPServer/conf/extra/httpd-vhosts.conf; /Library/Filemaker\\ Server/HTTPServer/bin/httpdctl graceful" with administrator privileges

                   

                  You may want to add it to the next version... ;-)

                  • 6. Re: ** NEW ** - Updated Virtual Host for FMS13 guide and tool
                    lavendt

                    Hi Honza

                     

                    Thank you very much for your feedback. I will definately add your suggestions to a future revision, when I get time to get to this project again.