我最近把webserver从我哥哥(我有sudo)设置的ubuntuserver移到了我自己创build的rasbianserver。 在另一台服务器上,多function视图可以直接使用,但是在raspbian上,它似乎并不起作用,它似乎也可以在那里使用。
我正在尝试做的是当我在地址字段中inputmy.doma.in/mobile时findmy.doma.in/mobile.php。
我正在使用与以前相同的可用站点文件,该文件看起来像这样:
<VirtualHost *:80> ServerName my.doma.in ServerAdmin [email protected] DocumentRoot /home/christian/www/do <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /home/christian/www/do> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all </Directory> ErrorLog ${APACHE_LOG_DIR}/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /doc/ "/usr/share/doc/" <Directory "/usr/share/doc/"> Options Indexes MultiViews FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.0/255.0.0.0 ::1/128 </Directory>
从我读过的各个地方一边googling这个问题,我发现协商模块必须启用,所以我试图启用它。
sudo a2enmod negotiation
给我这个结果
Module negotiation already enabled
我已经通读了/etc/apache2/apache2.conf,并没有发现任何特别的东西,似乎在帮助我,但是请不要问我是否应该发布它。
有关如何通过使Multiviews正常工作来解决这个问题的任何想法?
也许这可以帮助: http : //www.directadmin.com/forum/showthread.php? t=24683&p=126158# post126158
由于我的文档根目录上的文件夹权限,我以前也有类似的问题。 尝试在/ home / christian / www / do上将chmod设置为755