Page 1 of 1

App on SSL

Posted: Sun Dec 01, 2013 9:45 pm
by rdagijones
I am trying to get ocs inventory ng to run on ssl. I have followed https://wiki.amahi.org/index.php/Secure_App_Access but am now getting a "Syntax error on line 12 of /etc/httpd/conf.d/1016-ocs-inventoryhttp.conf: </VirtualHost> without matching <VirtualHost> section" warning when I try to restart httpd

Here is the /etc/httpd/conf.d/1016-ocs-inventoryhttp.conf file (I edited my server alias for posting it here.)
<VirtualHost *:80>
ServerName ocs-inventory
ServerAlias ocs-inventory.myhdarealname.com
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} {L,R}

ExpiresDefault "access plus 10 years"

AddOutputFilterByType DEFLATE text/html text/plain text/xml

</VirtualHost>
I have retyped it several times and even recreated the file to try and fix the problem. Still the same warning. Help please. :?

Re: App on SSL

Posted: Mon Dec 02, 2013 6:17 am
by bigfoot65
Possible the syntax has changed in Fedora 19. The tutorial you followed I do not believe has been tested in Fedora 19. Might need to Google it.

We had noticed when working on Amahi 7 that the apache .conf files were a bit different than with Fedora 14. If you by change figure it out, please update the wiki accordingly.

Re: App on SSL

Posted: Mon Dec 02, 2013 9:57 am
by rdagijones
I am actually still using Fedora 14 and Amahi 6.1.0-1. Given that information what steps should I take?

Re: App on SSL

Posted: Mon Dec 02, 2013 10:28 am
by bigfoot65
What is in the wiki was written for Fedora 14. If it's not working then I am unsure why. It could be anything. You might double check the steps. Other than that, not much I can offer for assistance.