Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - schoots

Pages: [1]
1
Zentyal 3.4
Ubuntu Server 13.10
Latest Updates as of Today 5/31/14

I've searched the forums and it doesn't seem like this has been answered.

I am aware this can be done in the Virtual hosts section in Zentyal Admin, but I would prefer doing this through .htaccess

I have a new install of Zentyal and would like to add a .htaccess file to the root of my web server so that when I navigate to a subdomain it redirects to https:
Code: [Select]
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(sub1|sub2|sub3)\. [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

To test that the .htaccess was working I added:
Code: [Select]
deny from all
It doesn't show the error, so I went into the apache2.conf and noticed that the webroot looks like this:
Code: [Select]
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride none
Require all granted
</Directory>

I changed AllowOverride to 'All' and restarted apache and that gives me a 500 error.


Anyone else had this problem? Or ideas on how to fix it?

Pages: [1]