Submitted by PatTzZ on Mon, 12/08/2014 - 18:49 Pro Licensee
Hi!
I would be able to configure, in a template, some options that we find under:
Services / Configure website / Path Directory options / Home/virtualserver/Public_Html
- I want to allow ssl acces only
- I want to setup a redirect to https://my_virtual_domain_name.com on a error code 403
Is it possible somehow to automate it or to achieve the same thing in a template, so, i can have this done automaticaly when i create a virtual server.
Thanks in advance for your help!
Status:
Closed (fixed)
Comments
Submitted by PatTzZ on Mon, 12/08/2014 - 19:09 Pro Licensee Comment #1
Submitted by PatTzZ on Mon, 12/08/2014 - 19:11 Pro Licensee Comment #2
sorry, stupid question. better to just write it in an htacces file.
Submitted by andreychek on Mon, 12/08/2014 - 19:17 Comment #3
Howdy -- yeah, using the .htaccess is my favorite way of doing that.
However, you can also do it in Virtualmin by going into Server Configuration -> Website Redirects. In there, check out the "Enable redirect for" option (if you click that text, you'll see a help popup with additional informaiton).