我在端口443上为我的网站配置了ssl ..我在端口80上有相同的站点没有http ..问题是htaccess在端口80上工作正常(没有ssl)但不适用于https(端口443) )
这是我的apache2配置
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /home/SiteDir/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /home/SiteDir/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<Directory /home/SiteDir/mobile/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
#other SSL Code
</VirtualHost>
</IfModule>