App on SSL
Posted: Sun Dec 01, 2013 9:45 pm
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.)

Here is the /etc/httpd/conf.d/1016-ocs-inventoryhttp.conf file (I edited my server alias for posting it here.)
I have retyped it several times and even recreated the file to try and fix the problem. Still the same warning. Help please.<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>
