The part of Apache SSL conf for the Documentroot call looks like this
<VirtualHost _default_:80>
ServerName myservername
Redirect / https://mymoodlewebsite.mydomain/
</VirtualHost>
NameVirtualHost *:443
...
<IfModule mod_ssl.c>
<VirtualHost *:443>
...
ServerName myservername
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^myipaddress
RewriteRule /index.php http://myerrordocument.mydomain
RewriteRule ^myipaddress https:\/\/myipaddress
DocumentRoot /mymoodledirectory
....
ServerName myservername
Redirect / https://mymoodlewebsite.mydomain/
</VirtualHost>
NameVirtualHost *:443
...
<IfModule mod_ssl.c>
<VirtualHost *:443>
...
ServerName myservername
RewriteEngine on
RewriteCond %{REMOTE_ADDR} !^myipaddress
RewriteRule /index.php http://myerrordocument.mydomain
RewriteRule ^myipaddress https:\/\/myipaddress
DocumentRoot /mymoodledirectory
....
How do others use a maintenance page, so the admin can still do her maintenace work on the moodle site at the same time?
Cheers,
Monica