Here’s what i’m running. installed webmin/virtualmin/usermin… using apache2. the normal default on webmin. i’ve created a virtual server with virtualmin.
the services are all good. everything works. no issues. except when i put my website up
my issue: the server doesn’t see/read my .htaccess file.
with DEFAULT configs and all, here is what i changed: enabled rewrite apache mod in apache2 config. i also went into the virtual server settings and set AllowOverride None to All. it SHOULD be working now. however, its not.
here is my virtual server config:
SuexecUserGroup “#1007” “#1009”
ServerName example.org
ServerAlias www.example.org
ServerAlias webmail.example.org
ServerAlias admin.example.org
DocumentRoot /home/example/public_html
ErrorLog /var/log/virtualmin/example.org_error_log
CustomLog /var/log/virtualmin/example.org_access_log combined
ScriptAlias /cgi-bin/ /home/example/cgi-bin/
DirectoryIndex index.html index.htm index.php index.php4 index.php5
<Directory “/home/example/public_html”>
Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch +ExecCGI
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
AddType application/x-httpd-php .php
AddHandler fcgid-script .php
AddHandler fcgid-script .php5
FCGIWrapper /home/example/fcgi-bin/php5.fcgi .php
FCGIWrapper /home/example/fcgi-bin/php5.fcgi .php5
<Directory /home/example/cgi-bin>
allow from all
AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
Require all granted
RewriteEngine on
RewriteCond %{HTTP_HOST} =webmail.example.org
RewriteRule ^(.) https://example.org:20000/ [R]
RewriteCond %{HTTP_HOST} =admin.example.org
RewriteRule ^(.) https://example.org:10000/ [R]
RemoveHandler .php
RemoveHandler .php5
php_admin_value engine Off
FcgidMaxRequestLen 1073741824
<Location /git>
DAV on
AuthType Basic
AuthName example.org
AuthUserFile /home/example/etc/git.basic.passwd
Require valid-user
Satisfy All
RedirectMatch ^/git$ http://example.org/git/gitweb.cgi
RedirectMatch ^/git/$ http://example.org/git/gitweb.cgi
RewriteEngine off
AddHandler cgi-script .cgi
<Location /git/website.git>
Require user admin
and my .htaccess file inside my website directory
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
(all this does is rewrite all http requests to https to use SSL.)