How do I get zm to be https instead of http???
How do I get zm to be https instead of http???
I have been beating myself sore looking for how
I just spent an hour typing long cryptic commands to make ssl keys and certs only to get hung in the middle and not be sure I was doing the right thing anyway
the are no posts in the forums about changing the zoneminder server to https
is that because it does not work?
I just spent an hour typing long cryptic commands to make ssl keys and certs only to get hung in the middle and not be sure I was doing the right thing anyway
the are no posts in the forums about changing the zoneminder server to https
is that because it does not work?
good start
I am digging through it now
I have installed the mod-ssl , found it to give a cryptic error
needed access to zmbox so I uninstalled mod-ssl thinking I would get back regular access
nope
now I am forbbiden
not asking you to solve apache issues, just giving an update on my regress
thanks for your support
I have installed the mod-ssl , found it to give a cryptic error
needed access to zmbox so I uninstalled mod-ssl thinking I would get back regular access
nope
now I am forbbiden
not asking you to solve apache issues, just giving an update on my regress
thanks for your support
ok is it zm now or still apache?
I can see the directory and all the files
but I dont get the zoneminder interface
I can click on index.php but all that happens is my browser asks me if I want to download the file
what have I broken?
but I dont get the zoneminder interface
I can click on index.php but all that happens is my browser asks me if I want to download the file
what have I broken?
No
I did not back up httpd.conf
Yes
That was stupid
I normally would.
I guess fate had scheduled a reminder for me of why.
I could see nothing in the error log
but I did find that the mod_php line had been erased
I can only think that the mod_ssl pkg overwrote httpd.conf because I certainly did not delete the loadmodule directive for php
anyway, after putting
LoadModule php5 extramodules/mod_php5.so
back in /etc/httpd/conf/httpd.conf and restarting apache, everything was back to normal http access
I think https setup is too secure for me
I did not back up httpd.conf
Yes
That was stupid
I normally would.
I guess fate had scheduled a reminder for me of why.
I could see nothing in the error log
but I did find that the mod_php line had been erased
I can only think that the mod_ssl pkg overwrote httpd.conf because I certainly did not delete the loadmodule directive for php
anyway, after putting
LoadModule php5 extramodules/mod_php5.so
back in /etc/httpd/conf/httpd.conf and restarting apache, everything was back to normal http access
I think https setup is too secure for me
You can simply setup a virtual host and redirect all requests from http://<servername> to https://<server name>. ZM should be listening on both 80 and 443. I am using CentOS 5.2. Look at your httpd.conf file in /etc/httpd/conf/httpd.conf. You will see a section at the end like this
### Section 3: Virtual Hosts
#
# Setup Virtual host for port 80 to redirect to 443. SSL.conf loads mod_ssl
# defines the https virtual host
#
#NameVirtualHost *:80
#
#<VirtualHost *:80>
# ServerName <FQDN>
# ServerAlias <server name>
# Redirect / https://<server name>
By FQDN I mean servername.domain.name. This will setup a virtual host listening on port 80. When the request comes in it redirects it to http://<server name>. Also note that I do not run any other services on this box so I am free to use both 80 and 443. If you serve other sites make sure to setup a virtual host for that as well. If you need more information check the links below.
Virtual Hosts
http://httpd.apache.org/docs/2.2/vhosts/
Redirects
http://httpd.apache.org/docs/2.2/rewrite/
Hope this helps.
### Section 3: Virtual Hosts
#
# Setup Virtual host for port 80 to redirect to 443. SSL.conf loads mod_ssl
# defines the https virtual host
#
#NameVirtualHost *:80
#
#<VirtualHost *:80>
# ServerName <FQDN>
# ServerAlias <server name>
# Redirect / https://<server name>
By FQDN I mean servername.domain.name. This will setup a virtual host listening on port 80. When the request comes in it redirects it to http://<server name>. Also note that I do not run any other services on this box so I am free to use both 80 and 443. If you serve other sites make sure to setup a virtual host for that as well. If you need more information check the links below.
Virtual Hosts
http://httpd.apache.org/docs/2.2/vhosts/
Redirects
http://httpd.apache.org/docs/2.2/rewrite/
Hope this helps.
Question:
when you access the box locally can you open http://<zoneminder ip> and https://<zoneminder ip>?
If you can, all you do is created the virtual host I mentioned above all requests from the outside to port 7355 will go to zm port 80 which will then be redirected to https://<zoneminder ip>. If I am not understanding your setup explain it in more detail so I don't have to guess. As for now I understand your setup to be <internet>----> <firewall:7355> ----> ZM box.
when you access the box locally can you open http://<zoneminder ip> and https://<zoneminder ip>?
If you can, all you do is created the virtual host I mentioned above all requests from the outside to port 7355 will go to zm port 80 which will then be redirected to https://<zoneminder ip>. If I am not understanding your setup explain it in more detail so I don't have to guess. As for now I understand your setup to be <internet>----> <firewall:7355> ----> ZM box.
ahhthrowgood wrote:Question:
when you access the box locally can you open http://<zoneminder> and https://<zoneminder>?
If you can, all you do is created the virtual host I mentioned above all requests from the outside to port 7355 will go to zm port 80 which will then be redirected to https://<zoneminder>. If I am not understanding your setup explain it in more detail so I don't have to guess. As for now I understand your setup to be <internet>----> <firewall> ----> ZM box.
I see now, I will try that
I have been studying apache to solve other dilemas as well
I have learned how to use it to allow access to my Mythtv box through the same single port using a reverse proxy
Now that I have more knowledge of httpd.conf I can grok what you are saying.
I will reinstall mod_ssl and try it out
let you know......
Re: How do I get zm to be https instead of http???
This took me a while to work out but THIS digitalocean walkthrough on SSL certs and redirection was exactly what I needed to point my http://FQDN to https://FQDN/zm (or http://IP to https://IP/zm if you don't have a LOCAL_DNS running).
Under the "HTTPS" section, the only change I made was:
Redirect "/" "https://your_domain_or_IP/"
to
Redirect "/" "https://your_domain_or_IP/zm"
Hope this helps.
Under the "HTTPS" section, the only change I made was:
Redirect "/" "https://your_domain_or_IP/"
to
Redirect "/" "https://your_domain_or_IP/zm"
Hope this helps.