Code: Select all
<VirtualHost *:80>
Redirect permanent /~[user]/[website] https://www.[mydomain].com:443/~[user]/[website]
</VirtualHost>
<Directory "/volume1/homes/[user]/www/[website]">
AllowOverride FileInfo
</Directory>
<Directory "/volume1/homes/[user]/www/[website]/sites">
AllowOverride None
</Directory>
<Directory "/volume1/homes/[user]/www/[website]/sites/*/documents">
order deny,allow
Deny from all
</Directory>
<Directory "/volume1/homes/[user]/www/[website]/sites/*/edi">
order deny,allow
Deny from all
</Directory>
<Directory "/volume1/homes/[user]/www/[website]/sites/*/era">
order deny,allow
Deny from all
</Directory>
This no longer works. I have tried choosing Apache as my back end server in Web Station>General Settings> and then adding the string to /usr/local/etc/httpd/conf/httpd.conf but then it just disappears when I restart the NAS. I tried adding the string to a custom file here: /usr/local/etc/httpd/sites-enabled/httpd-vhost.conf and that did nothing. How can I get this to work again? Also, what is the command now to restart apache? I am just restarting the NAS for now.