Dear all,
I've a strange f*ù^! problem I'm struggling with for a while.
When accessing ZoneMinder, I need to put https://myserver.net/zm . I just want to be able to type https://myserver.net. Looks easy but when I change the DocumentRoot to /usr/share/zoneminder/www , I get some strange layout meaning something is not set correctly. What would be the best approach to use my server's root address ?
Cheers,
R.
Redirect /zm alias to server's root
Re: Redirect /zm alias to server's root
If you wan to login using url https://myserver.net
you can create an "index.php" file in the root redirecting pointing to the zm directory.
index.php content:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://myserver.net/zm");
header("Connection: close");
?>
you can create an "index.php" file in the root redirecting pointing to the zm directory.
index.php content:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://myserver.net/zm");
header("Connection: close");
?>
Re: Redirect /zm alias to server's root
Great !
Will try it asap and let you know.
Many thanks,
R.
Will try it asap and let you know.
Many thanks,
R.
Re: Redirect /zm alias to server's root
This worked for me...
To make it survive a reboot, do...
I'm running ZM-1.32.2 on CentOS/Apache so if you're using something different then you may have to alter the paths above.
Code: Select all
mount --bind /usr/share/zoneminder/www /var/www/html
Code: Select all
echo "/usr/share/zoneminder/www /var/www/html auto bind,defaults 0 0" >> /etc/fstab
Re: Redirect /zm alias to server's root
Hello,
I did install the index.php permanent redirect. It works fine !
Cheers,
R.
I did install the index.php permanent redirect. It works fine !
Cheers,
R.